| | |
| | | let extend = {shareId:shareId} |
| | | param.extend = JSON.stringify(extend) |
| | | addPrizeNum(param); |
| | | } |
| | | |
| | | let param2 = { |
| | | addType:"USER_STAY_TIME", |
| | | extend:"", |
| | | } |
| | | addPrizeNum(param2); |
| | | } |
| | | }, |
| | | async onLoad(option) { |
| | | if(option.shareId){ |
| | | this.actionParam.shareId = option.shareId; |
| | | this.actionParam.joinType = 'SHARE' |
| | | console.log('触发onLoad') |
| | | uni.setStorage({ |
| | | key: 'shareId', |
| | | data: option.shareId, |
| | | success: function () { |
| | | console.log('缓存shareId成功'); |
| | | } |
| | | }); |
| | | } |
| | | const shareId = uni.getStorageSync("shareId"); |
| | | if(shareId){ |
| | | let param = { |
| | | addType:"SHARE_USER_REGISTRY", |
| | | extend:"", |
| | | } |
| | | let extend = {shareId:shareId} |
| | | param.extend = JSON.stringify(extend) |
| | | addPrizeNum(param); |
| | | } |
| | | this.actionParam.pageParams = JSON.stringify(option) |
| | | |