修改预约文本显示的问题
This commit is contained in:
@ -177,7 +177,7 @@
|
|||||||
: 'cg-info-time-normal'
|
: 'cg-info-time-normal'
|
||||||
]" >
|
]" >
|
||||||
<template v-if="item3.price > 0 && item3.status == 0">¥{{ item3.price }}</template>
|
<template v-if="item3.price > 0 && item3.status == 0">¥{{ item3.price }}</template>
|
||||||
<template v-if="item3.status == 1">已约</template>
|
<template v-else-if="item3.status == 1">已约</template>
|
||||||
<template v-else>免费</template>
|
<template v-else>免费</template>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -226,7 +226,7 @@
|
|||||||
<image style="width: 14rpx;height: 8rpx;margin-left: 10rpx;" src="@/static/icon/down.png" mode=""></image>
|
<image style="width: 14rpx;height: 8rpx;margin-left: 10rpx;" src="@/static/icon/down.png" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="price-btn" @tap="toReserve">立即预约</view>
|
<view class="price-btn" @tap="toReserve">{{ typeId == 1 ? '立即预约' : '立即支付' }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -533,7 +533,8 @@ export default {
|
|||||||
// 保留2位小数,不四舍五入
|
// 保留2位小数,不四舍五入
|
||||||
totalPrice = Number(totalPrice.toFixed(2));
|
totalPrice = Number(totalPrice.toFixed(2));
|
||||||
totalLightPrice = Number(totalLightPrice.toFixed(2));
|
totalLightPrice = Number(totalLightPrice.toFixed(2));
|
||||||
const total = Number((totalPrice + totalLightPrice).toFixed(2));
|
// const total = Number((totalPrice + totalLightPrice).toFixed(2)); 2025-12-30要求显示灯光费用,但是不显示在总价中
|
||||||
|
const total = Number((totalPrice - 0).toFixed(2));
|
||||||
|
|
||||||
this.selectedReserveTime = room_list;
|
this.selectedReserveTime = room_list;
|
||||||
|
|
||||||
@ -543,7 +544,7 @@ export default {
|
|||||||
cdf: {
|
cdf: {
|
||||||
nums: this.countSelectedTime,
|
nums: this.countSelectedTime,
|
||||||
price: 0,
|
price: 0,
|
||||||
total: totalPrice
|
total: Number((totalPrice - totalLightPrice).toFixed(2))
|
||||||
},
|
},
|
||||||
dgf: {
|
dgf: {
|
||||||
nums: this.countSelectedTime,
|
nums: this.countSelectedTime,
|
||||||
|
|||||||
Reference in New Issue
Block a user