// 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: null }, mclick: { type: Boolean, value: true } }, methods: { lookItem: function(e){ util.navigateTo('/pages/article/detail/index?id=' + this.data.item.id) }, lookFactory: function(){ if(!this.data.mclick){ return } util.navigateTo(`/pages/agent/factory/index?id=${this.data.item.millPaperId}`) } } })