You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
600 B
25 lines
600 B
// 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}`)
|
|
}
|
|
}
|
|
})
|