Commit 06cb260546ac95491e7f2e0ee61185ebb76c673e

Authored by yvan.ni
1 parent 65a46f04

预售活动还未开始的bug优化~~

packageC/pages/presell/goodsInfo/goodsInfo.js
@@ -2707,7 +2707,8 @@ Page({ @@ -2707,7 +2707,8 @@ Page({
2707 if (!user_id) scene += "_0"; 2707 if (!user_id) scene += "_0";
2708 scene += "_" + getApp().globalData.room_id; 2708 scene += "_" + getApp().globalData.room_id;
2709 } 2709 }
2710 - 2710 +
  2711 +
2711 ///二微码 2712 ///二微码
2712 var path3 = os.url + "/api/wx/open/app/user/getWeAppEwm/" + 2713 var path3 = os.url + "/api/wx/open/app/user/getWeAppEwm/" +
2713 os.stoid + "?sceneValue=" + scene + "&pageValue=packageC/pages/presell/goodsInfo/goodsInfo"; 2714 os.stoid + "?sceneValue=" + scene + "&pageValue=packageC/pages/presell/goodsInfo/goodsInfo";
@@ -3913,6 +3914,15 @@ Page({ @@ -3913,6 +3914,15 @@ Page({
3913 gnext=0; 3914 gnext=0;
3914 return false; 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 th.setData({ 3927 th.setData({
3918 presellForm: res.data.data, 3928 presellForm: res.data.data,