Commit 5d566ccba5d95bbbf017cde082468877a652f3be

Authored by yvan.ni
2 parents ad422e94 c5f945f6

Merge branch 'dev' of http://git.vipzhuang.cn/wxd/MShopWeApp into dev

packageB/pages/zuhegou/preindex/index.wxml
... ... @@ -6,7 +6,7 @@
6 6 <text class="iconfont icon-arrow_right"></text>
7 7 </view>
8 8 </view>
9   - <view wx:if="{{djs}}" class="countdown-container">距结束还剩
  9 + <view wx:if="{{djs}}" class="countdown-container">距开始还剩
10 10 <text wx:if="{{djs.day}}">{{djs.day}}天</text>
11 11 <text class="num-box">{{djs.hou}}</text>
12 12 :
... ...
pages/cart/cart2/cart2.js
... ... @@ -976,6 +976,12 @@ Page({
976 976 if (gg.prom_type == 5) {
977 977 t.data.data.prom_id = gg.prom_id;
978 978 t.data.data.prom_type = 5;
  979 +
  980 + // console.log('xxxxxxxxxxxxxxxxxx', gg.is_coupon)
  981 + th.is_coupon = gg.is_coupon;
  982 + th.setData({
  983 + is_coupon: gg.is_coupon
  984 + });
979 985 if (gg.room_id) {
980 986 t.data.data.room_id = gg.room_id;
981 987 }
... ... @@ -1050,6 +1056,9 @@ Page({
1050 1056 th.calculatePrice2();
1051 1057 th.get_cart_quan();
1052 1058 });
  1059 +
  1060 +
  1061 +
1053 1062 } else {
1054 1063 //计算价格
1055 1064 th.calculatePrice2();
... ... @@ -3263,7 +3272,7 @@ Page({
3263 3272 else {
3264 3273 using_quan[th.data.selected_quan_pick] = {is_nouse_red: 1};
3265 3274 }
3266   - this.setData({using_quan: using_quan, is_coupon: 2222});
  3275 + this.setData({using_quan: using_quan, is_coupon: th.is_coupon});
3267 3276 return;
3268 3277 }
3269 3278  
... ... @@ -3329,7 +3338,7 @@ Page({
3329 3338 else {
3330 3339 using_quan[th.data.selected_quan_pick] = {is_nouse_red: 1};
3331 3340 }
3332   - this.setData({using_quan: using_quan, is_coupon: 2222});
  3341 + this.setData({using_quan: using_quan, is_coupon: th.is_coupon});
3333 3342 return;
3334 3343 }
3335 3344  
... ...