Commit 06cb260546ac95491e7f2e0ee61185ebb76c673e
1 parent
65a46f04
预售活动还未开始的bug优化~~
Showing
1 changed file
with
11 additions
and
1 deletions
packageC/pages/presell/goodsInfo/goodsInfo.js
| ... | ... | @@ -2707,7 +2707,8 @@ Page({ |
| 2707 | 2707 | if (!user_id) scene += "_0"; |
| 2708 | 2708 | scene += "_" + getApp().globalData.room_id; |
| 2709 | 2709 | } |
| 2710 | - | |
| 2710 | + | |
| 2711 | + | |
| 2711 | 2712 | ///二微码 |
| 2712 | 2713 | var path3 = os.url + "/api/wx/open/app/user/getWeAppEwm/" + |
| 2713 | 2714 | os.stoid + "?sceneValue=" + scene + "&pageValue=packageC/pages/presell/goodsInfo/goodsInfo"; |
| ... | ... | @@ -3913,6 +3914,15 @@ Page({ |
| 3913 | 3914 | gnext=0; |
| 3914 | 3915 | return false; |
| 3915 | 3916 | } |
| 3917 | + | |
| 3918 | + if (act_data.start_time > ut.gettimestamp()) { | |
| 3919 | + wx.showToast({title:"活动还未开始", icon: 'none', duration: 3000}); | |
| 3920 | + setTimeout(function () { | |
| 3921 | + ut.wx_back(); | |
| 3922 | + }, 2000) | |
| 3923 | + gnext=0; | |
| 3924 | + return false; | |
| 3925 | + } | |
| 3916 | 3926 | |
| 3917 | 3927 | th.setData({ |
| 3918 | 3928 | presellForm: res.data.data, | ... | ... |