Showing
2 changed files
with
16 additions
and
1 deletions
| @@ -16,6 +16,21 @@ Page({ | @@ -16,6 +16,21 @@ Page({ | ||
| 16 | */ | 16 | */ |
| 17 | onLoad: function (options) { | 17 | onLoad: function (options) { |
| 18 | this.options=options | 18 | this.options=options |
| 19 | + let sys=wx.getSystemInfoSync(); | ||
| 20 | + if("wxwork"==sys.environment){ | ||
| 21 | + console.log('wxwork run pack-activity',options) | ||
| 22 | + App.Task.GetTaskByOpenid({ | ||
| 23 | + ...options | ||
| 24 | + }).then(res=>{ | ||
| 25 | + this.options.id=options.aid | ||
| 26 | + if(res.ret==200){ | ||
| 27 | + util.toast('恭喜获得红包','none') | ||
| 28 | + setTimeout(()=>{ | ||
| 29 | + this.GetTaskInfos() | ||
| 30 | + },300) | ||
| 31 | + } | ||
| 32 | + }) | ||
| 33 | + } | ||
| 19 | }, | 34 | }, |
| 20 | 35 | ||
| 21 | /** | 36 | /** |
| @@ -28,7 +28,7 @@ | @@ -28,7 +28,7 @@ | ||
| 28 | "appid": "wxd3dc4206c76f14fc", | 28 | "appid": "wxd3dc4206c76f14fc", |
| 29 | "projectname": "c%E7%AB%AF%E9%A2%84%E5%AE%9A", | 29 | "projectname": "c%E7%AB%AF%E9%A2%84%E5%AE%9A", |
| 30 | "isGameTourist": false, | 30 | "isGameTourist": false, |
| 31 | - "simulatorType": "wechat", | 31 | + "simulatorType": "qywx_simulator_plugin", |
| 32 | "simulatorPluginLibVersion": { | 32 | "simulatorPluginLibVersion": { |
| 33 | "qywx_simulator_plugin": "2.4.0" | 33 | "qywx_simulator_plugin": "2.4.0" |
| 34 | }, | 34 | }, |
-
Please register or login to post a comment