Commit 18a7d0bd2aafce5a66fb43efff39ffdab7d8e884
1 parent
3c4ab13c
优惠券显示零售价
Showing
4 changed files
with
47 additions
and
3 deletions
packageC/pages/presell/cart/cart.wxml
packageC/pages/presell/cart/cart2.wxml
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 | 11 | \ No newline at end of file | ... | ... |
packageE/pages/cart/cart_wk/cart_wk.js
| ... | ... | @@ -2276,7 +2276,41 @@ Page({ |
| 2276 | 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 | ... | ... |