|
@@ -24,20 +24,20 @@ Page({
|
|
|
todayIsSigned: false,
|
|
|
notUseNum: 0,
|
|
|
signInId: '',
|
|
|
+ channelId: '',
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
* 生命周期函数--监听页面加载
|
|
|
*/
|
|
|
onLoad: function (options) {
|
|
|
- if(options && options.scene) {
|
|
|
- const scene = decodeURIComponent(options.scene)
|
|
|
- let index = scene.indexOf("/")
|
|
|
- const signInId =scene.substring(0,index);
|
|
|
+ console.log(options)
|
|
|
+ if(options && options.signId) {
|
|
|
this.setData({
|
|
|
- signInId: signInId,
|
|
|
+ signInId: options.signId,
|
|
|
+ channelId: options.channelId,
|
|
|
})
|
|
|
- console.log(signInId) //abcd
|
|
|
+ console.log(options.signId) //abcd
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -68,6 +68,7 @@ Page({
|
|
|
module: 'signin',
|
|
|
action: 'visit',
|
|
|
businessId: res.data.id,
|
|
|
+ department: this.data.channelId,
|
|
|
})
|
|
|
|
|
|
}
|
|
@@ -211,6 +212,7 @@ Page({
|
|
|
module: 'signin',
|
|
|
action: 'click',
|
|
|
businessId: this.data.activity.id,
|
|
|
+ department: this.data.channelId,
|
|
|
})
|
|
|
},
|
|
|
|