Commit ee797370 authored by youjie's avatar youjie

no message

parent bd56b369
......@@ -140,9 +140,7 @@
</template>
<template v-else>
<template>{{ getformatDateStr(itemCancella.FromDate) }}
<template v-if="index1!=(roomRateDetails.CancellationPolicyList.length-1)">-
{{ getformatDateStr(roomRateDetails.CancellationPolicyList[index1+1].FromDate) }}
之间</template>
<template v-if="index1!=(roomRateDetails.CancellationPolicyList.length-1)">-{{ getformatDateStr(roomRateDetails.CancellationPolicyList[index1+1].FromDate) }}之间</template>
取消,收费 {{DanWei}}{{getPrice(itemCancella.Amount)}};</template>
</template>
</template>
......@@ -307,6 +305,9 @@
RatePlanList: null,
HotelMealTypes: [],
customer: {},
remainingTime: 10, // 初始倒计时时间(秒)
timerId: null, // 定时器ID
isRunning: false, // 状态标识(防止重复启动)
};
},
created() {
......@@ -519,6 +520,8 @@
uni.hideLoading();
var tempData = res.data
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) {
this.RatePlanList = tempData.parmResult.Success.BookingDetails.Hotel.RatePlanList
this.DanWei = tempData.parmResult.Success.BookingDetails.Hotel.RatePlanList[0].Currency
......@@ -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() {
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