Commit 7e76240b by 谢中龙

提交代码,定额券

parent 279554d3
......@@ -105,7 +105,7 @@ Component({
this.setData({
newConponOrderList
}, () => {
// this.hidePopup()
this.hidePopup();
})
},
hidePopup: function () { // 隐藏弹出框
......
......@@ -12,8 +12,8 @@
</view>
<view class="modal-info" wx:if="{{newConponOrderList.length}}">
<block wx:for="{{newConponOrderList}}" wx:key="{{index}}" wx:for-item="item">
<block wx:for="{{item.couponDTOS}}" wx:key="{{index}}" wx:for-item="coupon">
<block wx:for="{{newConponOrderList}}" wx:key="*this" wx:for-item="item">
<block wx:for="{{item.couponDTOS}}" wx:key="*this" wx:for-item="coupon">
<view
class="coupon-list"
data-id="{{coupon.id}}"
......@@ -39,7 +39,7 @@
</view>
<view class="right-info">
<view class="coupon-title">{{coupon.title}}</view>
<view wx:for="{{coupon.newNotice}}" wx:key="{{index}}" wx:for-item="notice">
<view wx:for="{{coupon.newNotice}}" wx:key="*this" wx:for-item="notice">
<text class='coupon-time'>{{notice.label}}</text>
<text class='coupon-desc wpl'>{{notice.value}}</text>
</view>
......
......@@ -220,6 +220,7 @@ wxService.page({
},
// select 传过来
updateCoupon(e) {
console.log(e)
// faceAmount 抵用多少钱(分) 1 抵用券 2 折扣券 3 定额券
if (!e.detail) {
this.setData({
......@@ -260,7 +261,16 @@ wxService.page({
currentCoupon: `${couponDiscount} 元`
});
}
else if(type == 3){ //定额券
this.setData({
defalutCoupon: true,
defalutCouponId: finCouponId ? '' : defalutCouponId,
[finCouponName]: finCouponId,
haveCoupon: true,
currentCoupon: `${couponDiscount} 元`
})
}
// 实付款
this.setPayPrice();
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment