|
@@ -69,8 +69,8 @@
|
|
</u-form-item>
|
|
</u-form-item>
|
|
</u-form>
|
|
</u-form>
|
|
</view>
|
|
</view>
|
|
- <view v-if="fromExtend" class="extend-tip">
|
|
|
|
- <u-text :text="extendTip" align="center"></u-text>
|
|
|
|
|
|
+ <view class="end-time-tip">
|
|
|
|
+ <u-text :text="endTimeTip" align="center"></u-text>
|
|
</view>
|
|
</view>
|
|
<view class="btn-area">
|
|
<view class="btn-area">
|
|
<button v-if="fromExtend == true" class="btn" hover-class="btn-hover" @click="showCalendar">续住</button>
|
|
<button v-if="fromExtend == true" class="btn" hover-class="btn-hover" @click="showCalendar">续住</button>
|
|
@@ -130,7 +130,6 @@
|
|
endTimePickerShow: false,
|
|
endTimePickerShow: false,
|
|
maxDate: 0,
|
|
maxDate: 0,
|
|
oldEndTime: '',
|
|
oldEndTime: '',
|
|
- extendTip: '',
|
|
|
|
needAuthPay: false,
|
|
needAuthPay: false,
|
|
breakfastNum: 0,
|
|
breakfastNum: 0,
|
|
orderId: '',
|
|
orderId: '',
|
|
@@ -144,6 +143,15 @@
|
|
...mapState('m_business', ['currentHotel']),
|
|
...mapState('m_business', ['currentHotel']),
|
|
breakfastNumText() {
|
|
breakfastNumText() {
|
|
return this.breakfastNum ? `含${this.breakfastNum}早` : '不含早'
|
|
return this.breakfastNum ? `含${this.breakfastNum}早` : '不含早'
|
|
|
|
+ },
|
|
|
|
+ endTimeTip() {
|
|
|
|
+ let text
|
|
|
|
+ if (this.fromExtend) {
|
|
|
|
+ text = '续住'
|
|
|
|
+ } else {
|
|
|
|
+ text = '退房'
|
|
|
|
+ }
|
|
|
|
+ return '请在 ' + this.currentHotel.checkoutTime + ' 前办理' + text + ',逾期请至前台办理'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -169,7 +177,7 @@
|
|
})
|
|
})
|
|
}, 1000)
|
|
}, 1000)
|
|
} else {
|
|
} else {
|
|
- uni.$showMsg('退房办理失败')
|
|
|
|
|
|
+ uni.$showMsg('退房失败,请至前台办理')
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async queryCanExtend() {
|
|
async queryCanExtend() {
|
|
@@ -407,11 +415,10 @@
|
|
},
|
|
},
|
|
async onLoad(options) {
|
|
async onLoad(options) {
|
|
await this.getCheckinInfo()
|
|
await this.getCheckinInfo()
|
|
- await this.queryCanExtend()
|
|
|
|
this.fromExtend = options.fromExtend == 'true'
|
|
this.fromExtend = options.fromExtend == 'true'
|
|
- },
|
|
|
|
- onShow() {
|
|
|
|
- this.extendTip = '请在 ' + this.currentHotel.checkoutTime + ' 前办理续住,逾期请至前台办理'
|
|
|
|
|
|
+ if (this.fromExtend) {
|
|
|
|
+ await this.queryCanExtend()
|
|
|
|
+ }
|
|
},
|
|
},
|
|
// #ifdef MP-WEIXIN
|
|
// #ifdef MP-WEIXIN
|
|
onShareAppMessage(info) {
|
|
onShareAppMessage(info) {
|
|
@@ -563,7 +570,7 @@
|
|
margin-top: 40%;
|
|
margin-top: 40%;
|
|
}
|
|
}
|
|
|
|
|
|
- .extend-tip {
|
|
|
|
|
|
+ .end-time-tip {
|
|
transform: translateY(-100rpx);
|
|
transform: translateY(-100rpx);
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|