Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
jijin
/
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
1457e7cf
authored
2024-05-20 22:13:35 +0800
by
yyx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
bb980684
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
15 deletions
src/viewsPc/seat/confirm-order.vue
src/viewsPc/seat/order-list.vue
src/viewsPc/seat/ticket-detail.vue
src/viewsPc/seat/confirm-order.vue
View file @
1457e7c
...
...
@@ -23,7 +23,7 @@ const startCheckSuccessListener = (orderSn, actId) => {
// 支付成功
payment
.
showCodeDialog
=
false
;
ElMessage
({
type
:
"success"
,
message
:
"支付成功"
});
router
.
push
({
router
.
replace
({
path
:
"/seat/order"
,
});
}
else
{
...
...
src/viewsPc/seat/order-list.vue
View file @
1457e7c
<
script
setup
>
import
{
setToken
,
getToken
}
from
"./utils/local-store.js"
;
import
{
getOrderList
,
immediatePay
,
cancelPay
}
from
"./api/index.js"
;
import
qrCodeDialog
from
"./components/qrCodeDialog.vue"
;
import
{
ElMessageBox
,
ElMessage
}
from
"element-plus"
;
...
...
@@ -55,7 +56,6 @@ const order = reactive({
fetchData
()
{
getOrderList
({
pageNo
:
order
.
pageNo
,
pageSize
:
order
.
pageSize
}).
then
(
(
res
)
=>
{
// TODO: 后期优化
order
.
noPay
=
res
.
data
.
lists
.
find
((
it
)
=>
it
.
state
==
0
);
order
.
data
=
res
.
data
.
lists
;
order
.
total
=
res
.
data
.
count
;
...
...
@@ -129,7 +129,7 @@ const order = reactive({
totalTime
-=
1000
;
// console.log(totalTime)
}
else
{
clearInterval
(
timer
);
// 停止调用函数
clearInterval
(
order
.
timer
);
// 停止调用函数
}
},
1000
);
}
...
...
@@ -145,6 +145,10 @@ watch(
}
);
onUnmounted
(()
=>
{
clearInterval
(
order
.
timer
);
});
order
.
fetchData
();
</
script
>
...
...
src/viewsPc/seat/ticket-detail.vue
View file @
1457e7c
...
...
@@ -227,23 +227,13 @@ watch(
<div
class=
"time"
>
时间:
{{
detail
.
data
?.
startTime
?
dayjs
(
detail
.
data
?.
startTime
).
format
(
"YYYY.MM.DD"
)
:
""
}}
{{
detail
.
data
?.
startTime
?
dayjs
(
detail
.
data
?.
startTime
).
format
(
"ddd"
)
?
dayjs
(
detail
.
data
?.
startTime
).
format
(
"YYYY.MM.DD ddd"
)
:
""
}}
—
{{
detail
.
data
?.
endTime
?
dayjs
(
detail
.
data
?.
endTime
).
format
(
"YYYY.MM.DD"
)
:
""
}}
{{
detail
.
data
?.
endTime
?
dayjs
(
detail
.
data
?.
endTime
).
format
(
"ddd"
)
?
dayjs
(
detail
.
data
?.
endTime
).
format
(
"YYYY.MM.DD ddd"
)
:
""
}}
</div>
...
...
@@ -480,6 +470,7 @@ watch(
.bottom
{
padding
:
50px
;
margin-top
:
30px
;
margin-bottom
:
30px
;
.title
{
padding
:
20px
30px
;
background
:
linear-gradient
(
270deg
,
#493ceb
0%
,
#8623fc
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