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
a18c214c
authored
2024-05-22 11:12:16 +0800
by
杨炀
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge commit '
d84293f4
' into order
2 parents
4886ba68
d84293f4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
src/viewsPc/seat/order-detail.vue
src/viewsPc/seat/order-list.vue
src/viewsPc/seat/utils/request.js
src/viewsPc/seat/order-detail.vue
View file @
a18c214
...
...
@@ -294,15 +294,14 @@ detail.fetchData();
</div>
<div
v-else
>
<!-- v-if="detail.data?.state == 1 && detail.data?.isRefund" -->
<!-- v-if="detail.data?.state == 1 && detail.data?.isRefund" -->
<div
class=
"btn_box"
>
<div
v-if=
"detail.data?.state == 1 && detail.data?.isRefund"
class=
"btn_box"
>
<div
class=
"can_pay"
@
click=
"detail.cancelOrder()"
>
取消购票
</div>
<div
class=
"pay"
@
click=
"detail.comeBack()"
>
再来一单
</div>
</div>
<
!--
<
div
v-else
class=
"btn_box"
>
<div
v-else
class=
"btn_box"
>
<div
class=
"pay_dis"
>
请联系工作人员
</div>
</div>
-->
</div>
</div>
</div>
<div
v-if=
"detail.data?.state == 0"
class=
"tip"
>
...
...
src/viewsPc/seat/order-list.vue
View file @
a18c214
...
...
@@ -36,6 +36,7 @@ const status = reactive({
bgColor
:
"#DDDDDD"
,
},
4
:
{
txt
:
'退款中'
,
color
:
"#F740A6"
,
bgColor
:
"#FFE2F2"
,
},
...
...
src/viewsPc/seat/utils/request.js
View file @
a18c214
...
...
@@ -5,6 +5,9 @@ import axios from 'axios/dist/axios'
import
{
getToken
}
from
"./local-store"
;
import
{
ElMessage
}
from
"element-plus"
;
import
{
useStorage
}
from
"@vueuse/core/index"
;
const
language
=
useStorage
(
"language"
,
0
);
const
baseURL
=
"https://radv4.gitliuyi.top/ticket"
;
//"http://book.xiaojinyu.games"; // 这里填入你的基础 API URL
const
timeout
=
15000
;
// 请求超时时间
...
...
@@ -20,9 +23,11 @@ const http = axios.create({
http
.
interceptors
.
request
.
use
(
(
config
)
=>
{
// 在发送请求之前做些什么
if
(
language
.
value
==
1
)
config
.
headers
.
Language
=
"en-us"
;
const
TOKEN
=
getToken
();
if
(
TOKEN
)
config
.
headers
.
Authorization
=
TOKEN
;
if
(
config
.
method
==
"get"
)
config
.
params
=
config
.
data
;
console
.
log
(
"config"
,
config
);
return
config
;
},
(
error
)
=>
{
...
...
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