纸通宝小程序
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.
 

26 lines
540 B

const app = getApp()
Component({
options: {
addGlobalClass: true,
multipleSlots: true
},
properties: {
item: { type: Object, value: null }
},
data: {
kg: app.globalData.kg
},
lifetimes: {
// 生命周期函数,可以为函数,或一个在methods段中定义的方法名
attached: function () {
this.setData({ kg: app.globalData.kg })
}
},
methods: {
lookItem: function (e) {
wx.navigateTo({ url: '/submodel/pages/paper/detail/index?id=' + this.data.item.id })
}
}
})