Commit bfa390d1414d23ce15cf0acde0251a5aad67f087
1 parent
0a553133
签到失败刷新页面
Showing
1 changed file
with
16 additions
and
1 deletions
packageA/pages/checkin/checkin.js
| @@ -251,7 +251,7 @@ Page({ | @@ -251,7 +251,7 @@ Page({ | ||
| 251 | if(this.data.td_cked) return false; | 251 | if(this.data.td_cked) return false; |
| 252 | if(this.data.cking) return false; | 252 | if(this.data.cking) return false; |
| 253 | this.setData({cking:1}); | 253 | this.setData({cking:1}); |
| 254 | - | 254 | + |
| 255 | const self = this; | 255 | const self = this; |
| 256 | getApp().request.get("/api/weshop/users/getServerTime", { | 256 | getApp().request.get("/api/weshop/users/getServerTime", { |
| 257 | success: function (res) { | 257 | success: function (res) { |
| @@ -316,6 +316,11 @@ Page({ | @@ -316,6 +316,11 @@ Page({ | ||
| 316 | }); | 316 | }); |
| 317 | } else { | 317 | } else { |
| 318 | getApp().showWarning(res2.data.msg); | 318 | getApp().showWarning(res2.data.msg); |
| 319 | + setTimeout(()=>{ | ||
| 320 | + wx.reLaunch({ | ||
| 321 | + url: '/packageA/pages/checkin/checkin', | ||
| 322 | + }) | ||
| 323 | + },2000) | ||
| 319 | } | 324 | } |
| 320 | 325 | ||
| 321 | 326 | ||
| @@ -330,6 +335,11 @@ Page({ | @@ -330,6 +335,11 @@ Page({ | ||
| 330 | } else { | 335 | } else { |
| 331 | self.setData({cking:0}); | 336 | self.setData({cking:0}); |
| 332 | getApp().showWarning(res.data.msg); | 337 | getApp().showWarning(res.data.msg); |
| 338 | + setTimeout(()=>{ | ||
| 339 | + wx.reLaunch({ | ||
| 340 | + url: '/packageA/pages/checkin/checkin', | ||
| 341 | + }) | ||
| 342 | + },2000) | ||
| 333 | } | 343 | } |
| 334 | } | 344 | } |
| 335 | }) | 345 | }) |
| @@ -391,6 +401,11 @@ Page({ | @@ -391,6 +401,11 @@ Page({ | ||
| 391 | }); | 401 | }); |
| 392 | } else { | 402 | } else { |
| 393 | getApp().showWarning(res.data.msg); | 403 | getApp().showWarning(res.data.msg); |
| 404 | + setTimeout(()=>{ | ||
| 405 | + wx.reLaunch({ | ||
| 406 | + url: '/packageA/pages/checkin/checkin', | ||
| 407 | + }) | ||
| 408 | + },2000) | ||
| 394 | } | 409 | } |
| 395 | 410 | ||
| 396 | }) | 411 | }) |