|
@@ -38,6 +38,7 @@ Page({
|
|
popBgPic: '',
|
|
popBgPic: '',
|
|
boxBgPic: '',
|
|
boxBgPic: '',
|
|
bgColor: '',
|
|
bgColor: '',
|
|
|
|
+ channelId: '',
|
|
},
|
|
},
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -54,6 +55,7 @@ Page({
|
|
* 生命周期函数--监听页面加载
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
*/
|
|
onLoad: function (options) {
|
|
onLoad: function (options) {
|
|
|
|
+ console.log(options)
|
|
Object.assign(this, Common)
|
|
Object.assign(this, Common)
|
|
if (!options.id) {
|
|
if (!options.id) {
|
|
this.popMessage ('入参错误');
|
|
this.popMessage ('入参错误');
|
|
@@ -63,7 +65,8 @@ Page({
|
|
return
|
|
return
|
|
}
|
|
}
|
|
this.setData({
|
|
this.setData({
|
|
- isLogin: getMobileCache() != ''
|
|
|
|
|
|
+ isLogin: getMobileCache() != '',
|
|
|
|
+ channelId: options.channelId,
|
|
})
|
|
})
|
|
this.data.activityId = options.id
|
|
this.data.activityId = options.id
|
|
this.loadActivity()
|
|
this.loadActivity()
|
|
@@ -75,6 +78,7 @@ Page({
|
|
module: 'luckdraw',
|
|
module: 'luckdraw',
|
|
action: 'visit',
|
|
action: 'visit',
|
|
businessId: this.data.activityId,
|
|
businessId: this.data.activityId,
|
|
|
|
+ department: this.data.channelId,
|
|
})
|
|
})
|
|
},
|
|
},
|
|
loadActivity: function() {
|
|
loadActivity: function() {
|
|
@@ -235,7 +239,8 @@ Page({
|
|
Statistics.done({
|
|
Statistics.done({
|
|
module: 'luckdraw',
|
|
module: 'luckdraw',
|
|
action: 'click',
|
|
action: 'click',
|
|
- businessId: this.data.activityId
|
|
|
|
|
|
+ businessId: this.data.activityId,
|
|
|
|
+ department: this.data.channelId,
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
|