Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨炀
/
dance-pc
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
40888057
authored
2025-05-28 12:29:46 +0800
by
杨炀
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
b1d60319
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
src/viewsPc/booking/pay.vue
src/viewsPc/booking/travelDetail.vue
src/viewsPc/booking/pay.vue
View file @
4088805
...
...
@@ -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
)
{
...
...
src/viewsPc/booking/travelDetail.vue
View file @
4088805
...
...
@@ -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
)
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment