Commit ee797370 authored by youjie's avatar youjie

no message

parent bd56b369
...@@ -140,9 +140,7 @@ ...@@ -140,9 +140,7 @@
</template> </template>
<template v-else> <template v-else>
<template>{{ getformatDateStr(itemCancella.FromDate) }} <template>{{ getformatDateStr(itemCancella.FromDate) }}
<template v-if="index1!=(roomRateDetails.CancellationPolicyList.length-1)">- <template v-if="index1!=(roomRateDetails.CancellationPolicyList.length-1)">-{{ getformatDateStr(roomRateDetails.CancellationPolicyList[index1+1].FromDate) }}之间</template>
{{ getformatDateStr(roomRateDetails.CancellationPolicyList[index1+1].FromDate) }}
之间</template>
取消,收费 {{DanWei}}{{getPrice(itemCancella.Amount)}};</template> 取消,收费 {{DanWei}}{{getPrice(itemCancella.Amount)}};</template>
</template> </template>
</template> </template>
...@@ -307,6 +305,9 @@ ...@@ -307,6 +305,9 @@
RatePlanList: null, RatePlanList: null,
HotelMealTypes: [], HotelMealTypes: [],
customer: {}, customer: {},
remainingTime: 10, // 初始倒计时时间(秒)
timerId: null, // 定时器ID
isRunning: false, // 状态标识(防止重复启动)
}; };
}, },
created() { created() {
...@@ -519,6 +520,8 @@ ...@@ -519,6 +520,8 @@
uni.hideLoading(); uni.hideLoading();
var tempData = res.data var tempData = res.data
this.orderData = tempData; this.orderData = tempData;
this.orderData.directOrder.CreateTime = this.$utils.formatDate(new Date(tempData.directOrder.CreateTime), 'yyyy-MM-dd hh:mm')
if (tempData.parmResult && tempData.parmResult.Success) { if (tempData.parmResult && tempData.parmResult.Success) {
this.RatePlanList = tempData.parmResult.Success.BookingDetails.Hotel.RatePlanList this.RatePlanList = tempData.parmResult.Success.BookingDetails.Hotel.RatePlanList
this.DanWei = tempData.parmResult.Success.BookingDetails.Hotel.RatePlanList[0].Currency this.DanWei = tempData.parmResult.Success.BookingDetails.Hotel.RatePlanList[0].Currency
...@@ -539,6 +542,18 @@ ...@@ -539,6 +542,18 @@
} }
); );
}, },
startCountdown() {
if (this.isRunning) return;
this.isRunning = true;
this.timerId = setInterval(() => {
this.remainingTime--;
if (this.remainingTime <= 0) {
clearInterval(this.timerId);
this.isRunning = false;
this.submitCancel = false; // 时间耗尽回调
}
}, 1000);
},
//未付款是初始化预定房型,餐型等, //未付款是初始化预定房型,餐型等,
initBookHotel() { initBookHotel() {
var cMsg = { var cMsg = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment