Commit cc9ae3919440c0fc2ad1e1d3091dba3f7fb1fec3
1 parent
cf9755a0
购物车车的优化
Showing
2 changed files
with
5 additions
and
9 deletions
pages/cart/cart/cart.js
... | ... | @@ -2048,17 +2048,11 @@ Page({ |
2048 | 2048 | }); |
2049 | 2049 | //要先处理了,再来判断要不要显示凑单 |
2050 | 2050 | th.doCheckAll(async function () { |
2051 | - if (a.prom_type == 3) { | |
2052 | - e.data.duo_zp_num_arr = {}; | |
2053 | - if (!a.selected) { | |
2054 | - await e.check_prom_activity(pitems); | |
2055 | - } | |
2051 | + th.data.duo_zp_num_arr={}; | |
2056 | 2052 | //判断商品是不是优惠活动 |
2057 | 2053 | for (var i in e.data.requestData) { |
2058 | - if (!a.selected && i == pitems) continue; | |
2059 | 2054 | await e.check_prom_activity(i); |
2060 | 2055 | } |
2061 | - } | |
2062 | 2056 | |
2063 | 2057 | }); |
2064 | 2058 | } else { |
... | ... | @@ -3976,6 +3970,7 @@ Page({ |
3976 | 3970 | this.setData({ |
3977 | 3971 | [gift_text]: null, |
3978 | 3972 | }) |
3973 | + | |
3979 | 3974 | return false; |
3980 | 3975 | } |
3981 | 3976 | //-- 循环判断活动 -- |
... | ... | @@ -4704,6 +4699,7 @@ Page({ |
4704 | 4699 | th.data.change_act = 1; |
4705 | 4700 | |
4706 | 4701 | th.doCheckAll(async function () { |
4702 | + th.data.duo_zp_num_arr={}; | |
4707 | 4703 | for (var i in th.data.requestData) { |
4708 | 4704 | await th.check_prom_activity(i) |
4709 | 4705 | } | ... | ... |
pages/goods/goodsList/goodsList.wxml
... | ... | @@ -7,11 +7,11 @@ |
7 | 7 | <view class="fs30 ellipsis-1" style="padding: 20rpx 30rpx"> |
8 | 8 | 满{{item.condition}}<text space="{{true}}" wx:if="{{item.prom_type==0}}">元 </text> <text space="{{true}}" wx:else>件 </text> |
9 | 9 | <text space="{{true}}" wx:if="{{item.content.is_money && item.content.is_money!='0'}}">减{{item.content.money}}元 </text> |
10 | - <text space="{{true}}" wx:if="{{item.content.past && item.content.past!='0'}}">包邮</text> | |
10 | + <text space="{{true}}" wx:if="{{item.content.past && item.content.past!='0'}}">包邮 </text> | |
11 | 11 | <text space="{{true}}" wx:if="{{item.content.is_sale && item.content.is_sale!='0'}}">打{{item.content.sale}}折 </text> |
12 | 12 | <text space="{{true}}" wx:if="{{item.content.is_int && item.content.is_int!='0'}}">送{{item.content.int}}积分 </text> |
13 | 13 | <text space="{{true}}" wx:if="{{item.content.is_coupon && item.content.is_coupon!='0'}}">送{{item.content.coupon}}元优惠券 </text> |
14 | - <text space="{{true}}" wx:if="{{item.content.is_gift && item.content.is_gift!='0'}}">送{{item.content.gift_name}} </text> | |
14 | + <text space="{{true}}" wx:if="{{item.content.is_gift && item.content.is_gift!='0'}}">送{{item.content.zp_mode==1?'多赠品':item.content.gift_name}} </text> | |
15 | 15 | <text space="{{true}}" wx:if="{{item.content.is_libao && item.content.is_libao!='0'}}">送{{item.content.lb_name}} </text> |
16 | 16 | </view> |
17 | 17 | </block> | ... | ... |