Commit 97cc154c7630f4e9f22603f93114980e606db8be
1 parent
dcc00988
转盘海报修改
Showing
1 changed file
with
13 additions
and
20 deletions
packageB/pages/luckactivity/luckinfo/luckinfo.js
| @@ -218,6 +218,7 @@ let imgDraw = { | @@ -218,6 +218,7 @@ let imgDraw = { | ||
| 218 | Page({ | 218 | Page({ |
| 219 | data: { | 219 | data: { |
| 220 | imgDraw: imgDraw, | 220 | imgDraw: imgDraw, |
| 221 | + | ||
| 221 | start: false, | 222 | start: false, |
| 222 | list: null, | 223 | list: null, |
| 223 | isLoading: false, // 检测是否已经发送请求,防止重复发送请求 | 224 | isLoading: false, // 检测是否已经发送请求,防止重复发送请求 |
| @@ -257,21 +258,11 @@ Page({ | @@ -257,21 +258,11 @@ Page({ | ||
| 257 | }, | 258 | }, |
| 258 | 259 | ||
| 259 | onLoad(options) { | 260 | onLoad(options) { |
| 260 | - // wx.showLoading(); | ||
| 261 | - // this.setData({ | ||
| 262 | - // showMask2: true, | ||
| 263 | - // }); | ||
| 264 | - // console.log('imghost+++++', imghost); | ||
| 265 | self = this; | 261 | self = this; |
| 266 | let first_leader = null; | 262 | let first_leader = null; |
| 267 | this.data.options = options; | 263 | this.data.options = options; |
| 268 | 264 | ||
| 269 | 265 | ||
| 270 | - // this.setData({ | ||
| 271 | - // options, | ||
| 272 | - // imghost, | ||
| 273 | - // }); | ||
| 274 | - // console.log('this data', this.data.imghost); | ||
| 275 | wx.setNavigationBarTitle({ | 266 | wx.setNavigationBarTitle({ |
| 276 | title: options.title, | 267 | title: options.title, |
| 277 | }); | 268 | }); |
| @@ -303,11 +294,7 @@ Page({ | @@ -303,11 +294,7 @@ Page({ | ||
| 303 | } | 294 | } |
| 304 | }) | 295 | }) |
| 305 | }; | 296 | }; |
| 306 | - | ||
| 307 | - | ||
| 308 | - | ||
| 309 | - | ||
| 310 | - | 297 | + |
| 311 | }, | 298 | }, |
| 312 | 299 | ||
| 313 | onShow() { | 300 | onShow() { |
| @@ -775,7 +762,6 @@ Page({ | @@ -775,7 +762,6 @@ Page({ | ||
| 775 | // 根据lbtype指定奖品类别图标 | 762 | // 根据lbtype指定奖品类别图标 |
| 776 | prizeSrc(lbtype) { | 763 | prizeSrc(lbtype) { |
| 777 | let src = ''; | 764 | let src = ''; |
| 778 | - // let imghost = this.data.imghost; | ||
| 779 | switch(lbtype) { | 765 | switch(lbtype) { |
| 780 | case 1: { //积分 | 766 | case 1: { //积分 |
| 781 | src = imghost + 'miniapp/images/luckDraw/jf.png'; | 767 | src = imghost + 'miniapp/images/luckDraw/jf.png'; |
| @@ -1313,11 +1299,18 @@ Page({ | @@ -1313,11 +1299,18 @@ Page({ | ||
| 1313 | }, | 1299 | }, |
| 1314 | 1300 | ||
| 1315 | showPoster() { | 1301 | showPoster() { |
| 1316 | - this.setData({ | ||
| 1317 | - hiddenCanvas: true, | ||
| 1318 | - showMask: true, | ||
| 1319 | - showPoster: true, | 1302 | + wx.showLoading({ |
| 1303 | + title: '生成海报中', | ||
| 1320 | }); | 1304 | }); |
| 1305 | + setTimeout(function() { | ||
| 1306 | + self.setData({ | ||
| 1307 | + hiddenCanvas: true, | ||
| 1308 | + showMask: true, | ||
| 1309 | + showPoster: true, | ||
| 1310 | + }); | ||
| 1311 | + wx.hideLoading(); | ||
| 1312 | + }, 3000) | ||
| 1313 | + | ||
| 1321 | 1314 | ||
| 1322 | }, | 1315 | }, |
| 1323 | 1316 |