Commit 0ec67832a1a78225f6beb83cdeaa7b4eda421047
1 parent
12432bfb
优惠券优化使用零售价
Showing
4 changed files
with
22 additions
and
6 deletions
packageD/pages/user/coupons/coupons.wxml
... | ... | @@ -37,7 +37,7 @@ |
37 | 37 | </view> |
38 | 38 | <view class="c-info arrow-down {{detail.isShowDetails ? 'active':''}}" bindtap="clickDetails" data-index="{{idx}}"> |
39 | 39 | <!--<text class="{{detail.isShowDetails ? '':'ellipsis-1x'}}">使用说明: 包邮券,全场通用,满 {{detail.condition}}元使用{{detail.title?',不包邮地区:'+detail.title:''}}</text>--> |
40 | - <text class="{{detail.isShowDetails ? '':'ellipsis-1x'}}"><text style="margin-right: 15rpx">使用说明:</text>{{filter.showtypeName(detail.type)}}【消费满{{time.toFix(detail.condition,2)}}元可用】</text> | |
40 | + <text class="{{detail.isShowDetails ? '':'ellipsis-1x'}}"><text style="margin-right: 15rpx">使用说明:</text>{{filter.showtypeName(detail.type)}}【消费满{{time.toFix(detail.condition,2)}}元可用】 </text> | |
41 | 41 | </view> |
42 | 42 | </block> |
43 | 43 | |
... | ... | @@ -66,8 +66,10 @@ |
66 | 66 | </view> |
67 | 67 | </view> |
68 | 68 | <view class="c-info arrow-down {{detail.isShowDetails ? 'active':''}}" bindtap="clickDetails" data-index="{{idx}}"> |
69 | - <view class="{{detail.isShowDetails ? '':'ellipsis-1x'}}" wx:if="{{detail.Remark1!=''}}"><text style="margin-right: 15rpx">使用说明:</text>{{filter.getNum(detail.Sum)}}元优惠券,{{(detail.UseObjectID==null || detail.UseObjectID=='')?"全场通用":"仅限"+(detail.UseObjectName)+"使用"}},满 {{detail.BuySum==null || detail.BuySum==''?filter.getNum(0):filter.getNum(detail.BuySum)}}元使用 {{detail.region_list_name==null || detail.region_list_name==''?"":",不包邮地区:"+region_list_name}};{{detail.Remark1}};活动名称:{{detail.ActName}}、活动编号:{{detail.ActNo}}、使用场景:{{ (detail.UseRange && detail.UseRange !=0) ? (detail.UseRange==1 ? '仅线下可用' : '仅线上可用') :'通用'}}</view> | |
70 | - <view class="{{detail.isShowDetails ? '':'ellipsis-1x'}}" wx:else><text style="margin-right: 15rpx">使用说明:</text> {{filter.getNum(detail.Sum)}}元优惠券,{{(detail.UseObjectID==null || detail.UseObjectID=='')?"全场通用":"仅限"+(detail.UseObjectName)+"使用"}},满 {{detail.BuySum==null || detail.BuySum==''?filter.getNum(0):filter.getNum(detail.BuySum)}}元使用 {{detail.region_list_name==null || detail.region_list_name==''?"":",不包邮地区:"+region_list_name}};活动名称:{{detail.ActName}}、活动编号:{{detail.ActNo}}、使用场景:{{(detail.UseRange && detail.UseRange !=0) ? (detail.UseRange==1 ? '仅线下可用' : '仅线上可用') :'通用'}}</view> | |
69 | + <view class="{{detail.isShowDetails ? '':'ellipsis-1x'}}" wx:if="{{detail.Remark1!=''}}"> | |
70 | + <text style="margin-right: 15rpx">使用说明:</text>{{filter.getNum(detail.Sum)}}元优惠券,{{(detail.UseObjectID==null || detail.UseObjectID=='')?"全场通用":"仅限"+(detail.UseObjectName)+"使用"}},满 {{detail.BuySum==null || detail.BuySum==''?filter.getNum(0):filter.getNum(detail.BuySum)}}元使用 {{detail.region_list_name==null || detail.region_list_name==''?"":",不包邮地区:"+region_list_name}};{{detail.Remark1}};活动名称:{{detail.ActName}}、活动编号:{{detail.ActNo}}、使用场景:{{ (detail.UseRange && detail.UseRange !=0) ? (detail.UseRange==1 ? '仅线下可用' : '仅线上可用') :'通用'}} 取价规则:<block wx:if="{{detail.FactPriceType>0}}">零售价</block> <block wx:else >实收价</block></view> | |
71 | + <view class="{{detail.isShowDetails ? '':'ellipsis-1x'}}" wx:else> | |
72 | + <text style="margin-right: 15rpx">使用说明:</text> {{filter.getNum(detail.Sum)}}元优惠券,{{(detail.UseObjectID==null || detail.UseObjectID=='')?"全场通用":"仅限"+(detail.UseObjectName)+"使用"}},满 {{detail.BuySum==null || detail.BuySum==''?filter.getNum(0):filter.getNum(detail.BuySum)}}元使用 {{detail.region_list_name==null || detail.region_list_name==''?"":",不包邮地区:"+region_list_name}};活动名称:{{detail.ActName}}、活动编号:{{detail.ActNo}}、使用场景:{{(detail.UseRange && detail.UseRange !=0) ? (detail.UseRange==1 ? '仅线下可用' : '仅线上可用') :'通用'}} 取价规则:<block wx:if="{{detail.FactPriceType>0}}">零售价</block> <block wx:else>实收价</block></view> | |
71 | 73 | </view> |
72 | 74 | </block> |
73 | 75 | </view> | ... | ... |
packageE/pages/cart/cart2/cart2.js
... | ... | @@ -9270,7 +9270,6 @@ Page({ |
9270 | 9270 | var cx_prom_group = this.data.cartlist[idx].show_can_cx[gd_key].act_arr; |
9271 | 9271 | |
9272 | 9272 | var cx_arr = []; |
9273 | - | |
9274 | 9273 | for (var h = 0; h < cx_prom_group.length; h++) { |
9275 | 9274 | cx_prom_group[h].act.sele = 0; |
9276 | 9275 | //-- 看有没有选中的活动 -- |
... | ... | @@ -9302,11 +9301,16 @@ Page({ |
9302 | 9301 | |
9303 | 9302 | //-- 切换活动的时候,让订单促销参与不选中 -- |
9304 | 9303 | let tt_wd = "can_use_ord_prom[" + pk + "]"; |
9304 | + | |
9305 | + let using_quan =this.data.using_quan; | |
9306 | + using_quan[pk]={}; | |
9307 | + | |
9305 | 9308 | th.setData({ |
9306 | 9309 | send_lb: {}, |
9307 | 9310 | month_lb: {}, |
9308 | 9311 | send_gf: {}, |
9309 | - [tt_wd]: 0 | |
9312 | + [tt_wd]: 0, | |
9313 | + using_quan:using_quan | |
9310 | 9314 | }) |
9311 | 9315 | |
9312 | 9316 | th.data.prom_goods_map = {}; | ... | ... |
packageE/pages/cart/cart2/cart2.wxml
packageE/pages/cart/cart2/remark_part_qj.wxml
0 → 100644
1 | +<view class="xc-buttom " wx:if="{{item.is_open==1}}" > | |
2 | + <view style="padding:10rpx"> | |
3 | + <text class="five-level-word explain-coupon" wx:if="{{item.Remark}}">{{util.format(item.Remark)}}</text> | |
4 | + <text class="five-level-word explain-coupon" wx:else> | |
5 | + <block wx:if="{{item.UseObjectName}}">仅{{item.UseObjectName}}使用</block> | |
6 | + <block wx:else>全场通用</block> | |
7 | + </text> | |
8 | + <text class="five-level-word explain-coupon">取价规则:<block wx:if="{{item.FactPriceType>0}}">零售价</block><block wx:wx:else="{{item.FactPriceType>0}}">实收价</block></text> | |
9 | + </view> | |
10 | +</view> | |
0 | 11 | \ No newline at end of file | ... | ... |