40888057 by 杨炀

no message

1 parent b1d60319
......@@ -772,6 +772,15 @@ function startforGetData() {
startforGetData()
}
})
} else if (type.value == 'travel') {
getTravelOrderInfo().then(res => {
if (form.value.payDate) {
if (handle) {
clearTimeout(handle)
handle = null
}
}
})
} else {
getData().then(res => {
if (form.value.payDate) {
......
......@@ -126,10 +126,11 @@
<div class="text-center mt30">
<el-button
style="color: #fff" :disabled="btnDisable" size="large"
style="color: #fff" size="large"
class="w200px btn-lineG" :class="{'forbid':!(!hotTime[0])}" round @click="goOrder"
>
{{ language==0?'立即预订':'BOOK NOW' }}
<span v-if="btnDisable">{{ language==0?'不在预定时间内':'OUT OF ORDER TIME' }}</span>
<span v-else>{{ language==0?'立即预订':'BOOK NOW' }}</span>
</el-button>
</div>
</el-card>
......@@ -191,6 +192,7 @@ function dateChange() {
}
function selectDate(date) {
query.value.currentDate = date
currentDate1.value = currentDate.value = dayjs(date).toDate()
console.log(date)
}
......@@ -209,7 +211,10 @@ const btnDisable = computed(() => {
})
function goOrder(room) {
function goOrder() {
if(btnDisable.value){
return
}
ElMessageBox.confirm(language.value == 0 ? `你当前选择的出行日期为${dayjs(currentDate.value).format('YYYY-MM-DD')}是否确定?` : `Your current check-in time is ${dayjs(currentDate.value).format('YYYY-MM-DD')} Are you sure?`, { type: 'warning' }).then({}).then(() => {
checkOrderPay(6).then(res => {
if (res.data == -100) {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!