Commit 18a7d0bd2aafce5a66fb43efff39ffdab7d8e884
1 parent
3c4ab13c
优惠券显示零售价
Showing
4 changed files
with
47 additions
and
3 deletions
packageC/pages/presell/cart/cart.wxml
@@ -527,7 +527,7 @@ | @@ -527,7 +527,7 @@ | ||
527 | </view> | 527 | </view> |
528 | </view> | 528 | </view> |
529 | <!-- 打开是说明 --> | 529 | <!-- 打开是说明 --> |
530 | - <include src="remark_part.wxml"/> | 530 | + <include src="remark_part_qj.wxml"/> |
531 | </view> | 531 | </view> |
532 | <!-- 包邮券的显示,立即购买 --> | 532 | <!-- 包邮券的显示,立即购买 --> |
533 | <block wx:if="{{exp_type==0}}"> | 533 | <block wx:if="{{exp_type==0}}"> |
packageC/pages/presell/cart/cart2.wxml
@@ -356,7 +356,7 @@ | @@ -356,7 +356,7 @@ | ||
356 | </view> | 356 | </view> |
357 | </view> | 357 | </view> |
358 | <!-- 打开是说明 --> | 358 | <!-- 打开是说明 --> |
359 | - <include src="remark_part.wxml" /> | 359 | + <include src="remark_part_qj.wxml" /> |
360 | </view> | 360 | </view> |
361 | <!-- 包邮券的显示,立即购买 --> | 361 | <!-- 包邮券的显示,立即购买 --> |
362 | <block wx:if="{{bn_exp_type==0}}"> | 362 | <block wx:if="{{bn_exp_type==0}}"> |
packageC/pages/presell/cart/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:else="{{item.FactPriceType>0}}">实收价</block></text> | ||
9 | + </view> | ||
10 | +</view> | ||
0 | \ No newline at end of file | 11 | \ No newline at end of file |
packageE/pages/cart/cart_wk/cart_wk.js
@@ -2276,7 +2276,41 @@ Page({ | @@ -2276,7 +2276,41 @@ Page({ | ||
2276 | }catch(error){ | 2276 | }catch(error){ |
2277 | 2277 | ||
2278 | } | 2278 | } |
2279 | - } | 2279 | + }, |
2280 | + | ||
2281 | + //点击打开优惠券使用说明 | ||
2282 | + clik_coupons: function (e) { | ||
2283 | + var ind = e.currentTarget.dataset.idx; | ||
2284 | + var is_open = this.data.selected_quan_list[ind].is_open; | ||
2285 | + | ||
2286 | + if (is_open == 1) is_open = 0; | ||
2287 | + else is_open = 1; | ||
2288 | + | ||
2289 | + var txt = "selected_quan_list[" + ind + "].is_open" | ||
2290 | + var obj = {}; | ||
2291 | + obj[txt] = is_open; | ||
2292 | + | ||
2293 | + this.setData(obj); | ||
2294 | + this.setData({ disabled: 1 }) | ||
2295 | + }, | ||
2296 | + | ||
2297 | + clik_coupons3: function (e) { | ||
2298 | + var ind = e.currentTarget.dataset.idx; | ||
2299 | + var is_open = this.data.city_coupon_list[ind].is_open; | ||
2300 | + | ||
2301 | + if (is_open == 1) is_open = 0; | ||
2302 | + else is_open = 1; | ||
2303 | + | ||
2304 | + var txt = "city_coupon_list[" + ind + "].is_open" | ||
2305 | + var obj = {}; | ||
2306 | + obj[txt] = is_open; | ||
2307 | + | ||
2308 | + this.setData(obj); | ||
2309 | + this.setData({ disabled: 1 }) | ||
2310 | + }, | ||
2311 | + | ||
2312 | + | ||
2313 | + | ||
2280 | 2314 | ||
2281 | 2315 | ||
2282 | 2316 |