Commit 290fa64d authored by jiangjiantao's avatar jiangjiantao

bugfixed

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