Commit 1a90aa6e64ec4494b6cd9c29d2f1a2ed49b2b1c4

Authored by vking
1 parent dc4ec6ef

master-activity

... ... @@ -16,6 +16,21 @@ Page({
*/
onLoad: function (options) {
this.options=options
let sys=wx.getSystemInfoSync();
if("wxwork"==sys.environment){
console.log('wxwork run pack-activity',options)
App.Task.GetTaskByOpenid({
...options
}).then(res=>{
this.options.id=options.aid
if(res.ret==200){
util.toast('恭喜获得红包','none')
setTimeout(()=>{
this.GetTaskInfos()
},300)
}
})
}
},
/**
... ...
... ... @@ -28,7 +28,7 @@
"appid": "wxd3dc4206c76f14fc",
"projectname": "c%E7%AB%AF%E9%A2%84%E5%AE%9A",
"isGameTourist": false,
"simulatorType": "wechat",
"simulatorType": "qywx_simulator_plugin",
"simulatorPluginLibVersion": {
"qywx_simulator_plugin": "2.4.0"
},
... ...