Commit 290fa64d authored by jiangjiantao's avatar jiangjiantao

bugfixed

parent 081e8e35
......@@ -238,7 +238,7 @@
<view class="coupon-top">
<view class="coupon-back-container" onTap="convertCouponClose" a:if="{{discCouponState == 1}}">
<image class="coupon-back-icon" mode="aspectFit" src="/images/icon_back.png"/>
<text class="coupon-back-text">返回</text>
<text class="coupon-back-text" onTap="couponBack">返回</text>
</view>
<view class="coupon-title" a:if="{{discCouponState == 1}}">优惠券</view>
<view></view>
......
......@@ -883,7 +883,6 @@ Page({
let quantitytemp = item.quantity
item.quantity = quantitytemp - 1
newGoods.push(item);
}
} else {
newGoods.push(item);
......@@ -923,6 +922,9 @@ Page({
})
pricetemp = this.fen2Yuan(pricetemp)
if(pricetemp < this.data.discCouponPrice){
this.setData({ discCouponPrice: 0 })
}
this.setData({ totalQuantity: quantitytemp, totalPrice: pricetemp })
//数据同步到前屏
this.sendGoodInfoToFront()
......
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