纸通宝商家版本的小程序,原生微信开发。
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.
 

20 lines
481 B

Component({
options: {
addGlobalClass: true,
multipleSlots: true
},
properties: {
item: { type: Object, value: null },
type: { type: Number, value: 0 }
},
methods: {
lookItem: function(){
console.log(this.data.type)
if(Number(this.data.type) == 1) {
wx.redirectTo({ url: `/pages/process/station-info/index?id=${this.data.item.id}` })
} else {
wx.navigateTo({ url: `/pages/process/station-info/index?id=${this.data.item.id}` })
}
}
}
})