52 lines
1014 B
JavaScript
52 lines
1014 B
JavaScript
// var app = getApp();
|
||
Component({
|
||
properties: {
|
||
commentInfo: {
|
||
type: null
|
||
},
|
||
type: {
|
||
type: null
|
||
},
|
||
score: {
|
||
type: null
|
||
},
|
||
total: {
|
||
type: null
|
||
},
|
||
storeid: {
|
||
type: null
|
||
}
|
||
},
|
||
data: {
|
||
|
||
}, // 私有数据,可用于模板渲染
|
||
|
||
lifetimes: {
|
||
// 生命周期函数,可以为函数,或一个在methods段中定义的方法名
|
||
attached() {},
|
||
moved() {},
|
||
detached() {}
|
||
},
|
||
|
||
// 生命周期函数,可以为函数,或一个在methods段中定义的方法名
|
||
attached() {}, // 此处attached的声明会被lifetimes字段中的声明覆盖
|
||
ready() {},
|
||
|
||
pageLifetimes: {
|
||
// 组件所在页面的生命周期函数
|
||
show() {},
|
||
hide() {},
|
||
resize() {}
|
||
},
|
||
|
||
methods: {
|
||
gotoCommentList() {
|
||
if (this.data.type == 2) {
|
||
wx.navigateTo({
|
||
url: '/packageC/o2o/o2oStore/o2oStore?store_id=' + this.data.storeid + '&fromHome=1&activeType=comment'
|
||
});
|
||
}
|
||
}
|
||
}
|
||
});
|