|
@@ -23,12 +23,22 @@ Page({
|
|
lastSignInNode: { pos: 7, text: '星期天' },
|
|
lastSignInNode: { pos: 7, text: '星期天' },
|
|
todayIsSigned: false,
|
|
todayIsSigned: false,
|
|
notUseNum: 0,
|
|
notUseNum: 0,
|
|
|
|
+ signInId: '',
|
|
},
|
|
},
|
|
|
|
|
|
/**
|
|
/**
|
|
* 生命周期函数--监听页面加载
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
*/
|
|
onLoad: function (options) {
|
|
onLoad: function (options) {
|
|
|
|
+ if(options && options.scene) {
|
|
|
|
+ const scene = decodeURIComponent(options.scene)
|
|
|
|
+ let index = scene.indexOf("/")
|
|
|
|
+ const signInId =scene.substring(0,index);
|
|
|
|
+ this.setData({
|
|
|
|
+ signInId: signInId,
|
|
|
|
+ })
|
|
|
|
+ console.log(signInId) //abcd
|
|
|
|
+ }
|
|
},
|
|
},
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -43,7 +53,11 @@ Page({
|
|
},
|
|
},
|
|
|
|
|
|
startLoadActivityData() {
|
|
startLoadActivityData() {
|
|
- SignIn.getActivityData(getMobileCache()).then(res => {
|
|
|
|
|
|
+ let data = {
|
|
|
|
+ signInId: this.data.signInId,
|
|
|
|
+ mobile: getMobileCache(),
|
|
|
|
+ }
|
|
|
|
+ SignIn.getActivityData(data).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.setData({
|
|
this.setData({
|
|
activity: res.data
|
|
activity: res.data
|