// pages/stock/index.js const util = require('../../../utils/util') Component({ options: { addGlobalClass: true, multipleSlots: true }, properties: { item: { type: Object, value: null }, keyword: { type: String, value: '第二轮' }, mclick: { type: Boolean, value: true } }, methods: { onFlodTap: function(){ this.setData({ unflod: !this.data.unflod }) }, onAttentionChange: function(){ }, lookItem: function(e){ util.navigateTo('/pages/article/detail/index?id=' + this.data.item.id) } } })