|
|
@@ -120,10 +120,13 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="flex-row justify-between">
|
|
|
- <view>
|
|
|
- <text class="key">金额:</text>
|
|
|
- <text class="projectMoney">¥{{item.servicePrice}}</text>
|
|
|
+ <view v-if="item.discountAmount > 0">
|
|
|
+ <text class="projectMoney">¥{{item.payAmount}}</text>
|
|
|
+ <text class="lineMoney">¥{{item.servicePrice}}</text>
|
|
|
</view>
|
|
|
+ <view v-else>
|
|
|
+ <text class="projectMoney">¥{{item.servicePrice}}</text>
|
|
|
+ </view>
|
|
|
|
|
|
<view class="flex-row" v-if="item.status === 1" @click="appeal(item.orderServiceId)">
|
|
|
<u-icon name="/static/order/ud17.png" color="#93D21A" size="18"></u-icon>
|
|
|
@@ -137,12 +140,13 @@
|
|
|
<view class="bottomHeight"></view>
|
|
|
|
|
|
<view class="bottom1 flex-col">
|
|
|
- <text class="allMoney">合计价格:¥{{allPrice}}</text>
|
|
|
+ <text class="allMoney"></text>
|
|
|
<view class="bottomBtn flex-row justify-between">
|
|
|
<view class=" flex-row">
|
|
|
- <text class="unpaid">待支付</text>
|
|
|
+ <text class="unpaid">合计</text>
|
|
|
<text class="preferentialPrice">¥{{allPrice}}</text>
|
|
|
- <text class="originalPrice">¥{{allPrice}}</text>
|
|
|
+ <text class="unpaid">已优惠</text>
|
|
|
+ <text class="originalPrice">¥{{totalDiscount}}</text>
|
|
|
<!-- <text class="priceDetail">价格明细</text>-->
|
|
|
</view>
|
|
|
|
|
|
@@ -265,6 +269,7 @@ export default {
|
|
|
tabIndex: 3,
|
|
|
order:{},
|
|
|
allPrice:0,
|
|
|
+ totalDiscount:0,
|
|
|
appealId:'',
|
|
|
appealReason:'',
|
|
|
orderId:'',
|
|
|
@@ -411,14 +416,17 @@ export default {
|
|
|
|
|
|
if (item.status === 1 || item.status === 4){
|
|
|
this.allPrice = 0
|
|
|
+ this.totalDiscount = 0;
|
|
|
item.tick = !item.tick
|
|
|
this.$set(this.order.child,index,item)
|
|
|
this.order.child.forEach(i=>{
|
|
|
if (i.tick){
|
|
|
- this.allPrice += i.servicePrice *1
|
|
|
+ this.totalDiscount += i.discountAmount * 1;
|
|
|
+ this.allPrice += i.payAmount *1;
|
|
|
}
|
|
|
})
|
|
|
this.allPrice = this.allPrice.toFixed(2)
|
|
|
+ this.totalDiscount = this.totalDiscount.toFixed(2)
|
|
|
}
|
|
|
},
|
|
|
|