Commit 1c5bc09d by 赵雅纹

Merge branch 'dev_7.1.0' into fixbug-ZYW

parents 4389293d f9e5ef22
...@@ -25,7 +25,8 @@ wxService.page({ ...@@ -25,7 +25,8 @@ wxService.page({
orderPrice: null, // 订单金额 orderPrice: null, // 订单金额
orderInitPrice: 0, orderInitPrice: 0,
plusMemberPrice: 0, // plus 默认价 plusMemberPrice: 0, // plus 默认价
plusMemberName:'' plusMemberName:'',
defalutCoupon: ''
}, },
/** /**
...@@ -283,6 +284,7 @@ wxService.page({ ...@@ -283,6 +284,7 @@ wxService.page({
wx.hideLoading() wx.hideLoading()
this.setData({ this.setData({
currentOrderList: data, currentOrderList: data,
defalutCoupon: data && data.couponDiscountPreviews && data.couponDiscountPreviews[0].couponDiscount,
orderInitPrice: data.amount orderInitPrice: data.amount
},()=>{ },()=>{
// 实付款 // 实付款
......
...@@ -122,9 +122,10 @@ ...@@ -122,9 +122,10 @@
</view> </view>
<view class="coupon"> <view class="coupon">
<view> <view>
<text class="price-label">优惠券</text> <text class="price-label">优惠券{{defalutCoupon}}</text>
<view class="select-coupon" bindtap="selectCoupon"> <view class="select-coupon" bindtap="selectCoupon">
<text class="{{haveCoupon ? 'coupon-price' : 'no-coupon'}}"> {{currentCoupon ? '-' : '无可用优惠券'}} {{currentCoupon}}</text> <text class="coupon-price"> -{{currentCoupon ? currentCoupon : defalutCoupon}}{{defalutCoupon?'元': ''}}</text>
<!--<text class="{{haveCoupon ? 'coupon-price' : 'no-coupon'}}"> -{{currentCoupon ? currentCoupon : defalutCoupon}}</text>-->
<image class="arrow-right" src="/assets/imgs/7_1_0/arrow-right.png" /> <image class="arrow-right" src="/assets/imgs/7_1_0/arrow-right.png" />
</view> </view>
</view> </view>
......
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