Commit 35ffed71e5e80d4a57530d692bd4b2b402c5b8e0

Authored by yvan.ni
1 parent e3c9b84b

测试返回的优化

packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.js
@@ -2982,7 +2982,7 @@ Page({ @@ -2982,7 +2982,7 @@ Page({
2982 th.setData({ all_pick_list: e.data.data.pageData }); 2982 th.setData({ all_pick_list: e.data.data.pageData });
2983 2983
2984 //--获取线下库存,而且不是新的门店规则, 同时是普通购买的时候,或者同时不能是活动,秒杀,拼团,积分购-- 2984 //--获取线下库存,而且不是新的门店规则, 同时是普通购买的时候,或者同时不能是活动,秒杀,拼团,积分购--
2985 - if (th.data.sales_rules >= 2 && !th.data.is_newsales_rules && ((th.data.prom_type != 1 && th.data.prom_type != 6 && th.data.prom_type != 4) || is_normal == 1)) { 2985 + if (th.data.sales_rules >= 2 && !th.data.is_newsales_rules && ((th.data.prom_type != 9 && th.data.prom_type != 1 && th.data.prom_type != 6 && th.data.prom_type != 4) || is_normal == 1)) {
2986 setTimeout(function () { 2986 setTimeout(function () {
2987 th.deal_pickup_dline(e); 2987 th.deal_pickup_dline(e);
2988 }, 800) 2988 }, 800)
@@ -4190,7 +4190,9 @@ Page({ @@ -4190,7 +4190,9 @@ Page({
4190 // } 4190 // }
4191 // } 4191 // }
4192 // }); 4192 // });
4193 - th.get_sto(1); 4193 +
  4194 + th.data.prom_type=9;
  4195 + th.get_sto();
4194 th.setData({ 4196 th.setData({
4195 is_normal: 0, 4197 is_normal: 0,
4196 openSpecModal_pt: 1 4198 openSpecModal_pt: 1
pages/goods/categoryList/categoryList.wxml
@@ -47,7 +47,7 @@ @@ -47,7 +47,7 @@
47 <image wx:if="{{bitem.imgtype==1}}" class='n_img' src='{{bitem.logo}}'></image> 47 <image wx:if="{{bitem.imgtype==1}}" class='n_img' src='{{bitem.logo}}'></image>
48 <image wx:else class='n_img' src='{{iurl}}{{bitem.logo}}'></image> 48 <image wx:else class='n_img' src='{{iurl}}{{bitem.logo}}'></image>
49 49
50 - <view class='nation_box'> 50 + <view class='nation_box' style="margin-left:-130rpx">
51 <view class='nt_1'><text class="nt_1_t">{{bitem.name}}</text></view> 51 <view class='nt_1'><text class="nt_1_t">{{bitem.name}}</text></view>
52 <view class='nt_2'>{{bitem.enname}}</view> 52 <view class='nt_2'>{{bitem.enname}}</view>
53 </view> 53 </view>
pages/goods/goodsInfo/goodsInfo.js
@@ -3108,11 +3108,11 @@ Page({ @@ -3108,11 +3108,11 @@ Page({
3108 }) 3108 })
3109 3109
3110 } 3110 }
3111 - this.sele_spec_chech_activity(); 3111 + this.sele_spec_chech_activity(nor);
3112 }, 3112 },
3113 3113
3114 //选择了不同的规格的时候要判断是不是有活动正在进行中 3114 //选择了不同的规格的时候要判断是不是有活动正在进行中
3115 - async sele_spec_chech_activity() { 3115 + async sele_spec_chech_activity(nor) {
3116 //---如果是活动的时候--- 3116 //---如果是活动的时候---
3117 var prom = null, 3117 var prom = null,
3118 goodsinfo = this.data.sele_g, 3118 goodsinfo = this.data.sele_g,
@@ -3208,6 +3208,9 @@ Page({ @@ -3208,6 +3208,9 @@ Page({
3208 return false; 3208 return false;
3209 } 3209 }
3210 } 3210 }
  3211 +
  3212 + if(nor) return false;
  3213 +
3211 //---设置普通商品--- 3214 //---设置普通商品---
3212 th.setData({ 3215 th.setData({
3213 prom_type: 0, 3216 prom_type: 0,