|
@@ -16,13 +16,13 @@
|
|
|
|
|
|
</view>
|
|
|
|
|
|
- <view v-if="data.coupon.length !== 0" class="flex padding-tb align-center justify-between">
|
|
|
+ <view v-if="data.coupon.length !== 0" class="flex padding-tb align-center justify-between" @click="to_discountCard">
|
|
|
<div class="flex align-center discountLeft">
|
|
|
<div class="discountPic"></div>
|
|
|
<text class="text-lg text-red ">{{ data.coupon.name }}</text>
|
|
|
</div>
|
|
|
<!-- <div class="betweenBox"></div> -->
|
|
|
- <div class="flex align-center" @click="to_discountCard">
|
|
|
+ <div class="flex align-center">
|
|
|
<text class="text-lg text-red">-¥{{data.reduce - isReduce + add_price}} </text>
|
|
|
<text class="text-gray rightArrow" :class="'cuIcon-right'"></text>
|
|
|
</div>
|
|
@@ -173,7 +173,7 @@ export default {
|
|
|
pay.$on('cardInfo',res =>{
|
|
|
$this.data.coupon = res
|
|
|
$this.data.reduce = res.reduce
|
|
|
- $this.data.total_price = $this.data.price-res.reduce
|
|
|
+ $this.data.total_price = Math.round(($this.data.price-res.reduce)*100)/100
|
|
|
|
|
|
if($this.checked==true){
|
|
|
if($this.data.coupon.discount){ //打折券
|