no message
Showing
2 changed files
with
17 additions
and
3 deletions
| ... | @@ -772,6 +772,15 @@ function startforGetData() { | ... | @@ -772,6 +772,15 @@ function startforGetData() { |
| 772 | startforGetData() | 772 | startforGetData() |
| 773 | } | 773 | } |
| 774 | }) | 774 | }) |
| 775 | } else if (type.value == 'travel') { | ||
| 776 | getTravelOrderInfo().then(res => { | ||
| 777 | if (form.value.payDate) { | ||
| 778 | if (handle) { | ||
| 779 | clearTimeout(handle) | ||
| 780 | handle = null | ||
| 781 | } | ||
| 782 | } | ||
| 783 | }) | ||
| 775 | } else { | 784 | } else { |
| 776 | getData().then(res => { | 785 | getData().then(res => { |
| 777 | if (form.value.payDate) { | 786 | if (form.value.payDate) { | ... | ... |
| ... | @@ -126,10 +126,11 @@ | ... | @@ -126,10 +126,11 @@ |
| 126 | 126 | ||
| 127 | <div class="text-center mt30"> | 127 | <div class="text-center mt30"> |
| 128 | <el-button | 128 | <el-button |
| 129 | style="color: #fff" :disabled="btnDisable" size="large" | 129 | style="color: #fff" size="large" |
| 130 | class="w200px btn-lineG" :class="{'forbid':!(!hotTime[0])}" round @click="goOrder" | 130 | class="w200px btn-lineG" :class="{'forbid':!(!hotTime[0])}" round @click="goOrder" |
| 131 | > | 131 | > |
| 132 | {{ language==0?'立即预订':'BOOK NOW' }} | 132 | <span v-if="btnDisable">{{ language==0?'不在预定时间内':'OUT OF ORDER TIME' }}</span> |
| 133 | <span v-else>{{ language==0?'立即预订':'BOOK NOW' }}</span> | ||
| 133 | </el-button> | 134 | </el-button> |
| 134 | </div> | 135 | </div> |
| 135 | </el-card> | 136 | </el-card> |
| ... | @@ -191,6 +192,7 @@ function dateChange() { | ... | @@ -191,6 +192,7 @@ function dateChange() { |
| 191 | } | 192 | } |
| 192 | 193 | ||
| 193 | function selectDate(date) { | 194 | function selectDate(date) { |
| 195 | query.value.currentDate = date | ||
| 194 | currentDate1.value = currentDate.value = dayjs(date).toDate() | 196 | currentDate1.value = currentDate.value = dayjs(date).toDate() |
| 195 | console.log(date) | 197 | console.log(date) |
| 196 | } | 198 | } |
| ... | @@ -209,7 +211,10 @@ const btnDisable = computed(() => { | ... | @@ -209,7 +211,10 @@ const btnDisable = computed(() => { |
| 209 | }) | 211 | }) |
| 210 | 212 | ||
| 211 | 213 | ||
| 212 | function goOrder(room) { | 214 | function goOrder() { |
| 215 | if(btnDisable.value){ | ||
| 216 | return | ||
| 217 | } | ||
| 213 | 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(() => { | 218 | 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(() => { |
| 214 | checkOrderPay(6).then(res => { | 219 | checkOrderPay(6).then(res => { |
| 215 | if (res.data == -100) { | 220 | if (res.data == -100) { | ... | ... |
-
Please register or sign in to post a comment