|
|
@@ -87,7 +87,7 @@
|
|
|
<view class="box_value">
|
|
|
{{ roomCount }}间{{ info.nightNum }}晚 共
|
|
|
<text>¥</text>
|
|
|
- <span>{{ roomCount * info.item.price * info.nightNum }}</span>
|
|
|
+ <span>{{ totalPrice }}</span>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -95,7 +95,7 @@
|
|
|
<view class="all">
|
|
|
<view class="all_title">
|
|
|
<text>房费</text>
|
|
|
- <text class="mr_30">¥{{ roomCount * info.item.price * info.nightNum }}</text>
|
|
|
+ <text class="mr_30">¥{{ totalPrice }}</text>
|
|
|
</view>
|
|
|
|
|
|
<view class="all_box">
|
|
|
@@ -111,7 +111,7 @@
|
|
|
<view class="foot">
|
|
|
<view class="foot_left">
|
|
|
<text>¥</text>
|
|
|
- {{ roomCount * info.item.price * info.nightNum }}
|
|
|
+ {{ totalPrice }}
|
|
|
</view>
|
|
|
<view class="foot_right" @click="goPagePay">提交订单</view>
|
|
|
</view>
|
|
|
@@ -139,6 +139,14 @@ export default {
|
|
|
this.info = JSON.parse(options.info)
|
|
|
uni.$on('change', this.change)
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ // 总费用
|
|
|
+ totalPrice() {
|
|
|
+ if (this.info.item) {
|
|
|
+ return (this.roomCount * this.info.item.price * this.info.nightNum).toFixed(2)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
change(e) {
|
|
|
this.clientName = e.name
|