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
bda7af21
authored
2024-06-04 10:01:34 +0800
by
杨炀
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge commit '
c12af2e4
' into dev
2 parents
ebbb2bbe
c12af2e4
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
54 additions
and
16 deletions
.env.development
.env.staging
src/viewsPc/booking/component/dailog.vue
src/viewsPc/booking/pay.vue
src/viewsPc/seat/utils/request.js
vite.config.js
.env.development
View file @
bda7af2
...
...
@@ -17,3 +17,5 @@ VITE_APP_MONITRO_ADMIN = 'http://localhost:9090/admin/login'
VITE_APP_XXL_JOB_ADMIN = 'http://localhost:9100/xxl-job-admin'
VITE_APP_SOCKET_URL='http://192.168.1.133:8088'
VITE_TICKET_BASE_API = 'ticket'
...
...
.env.staging
View file @
bda7af2
...
...
@@ -19,4 +19,6 @@ VITE_APP_BASE_API = '/stage-api'
# 是否在打包时开启压缩,支持 gzip 和 brotli
VITE_BUILD_COMPRESS = gzip
VITE_APP_SOCKET_URL='http://192.168.1.133:8088'
\ No newline at end of file
VITE_APP_SOCKET_URL='http://192.168.1.133:8088'
VITE_TICKET_BASE_API = 'https://ticketh5.wdsfwuxicenter.com/ticket'
...
...
src/viewsPc/booking/component/dailog.vue
View file @
bda7af2
<
template
>
<div>
<el-dialog
v-model=
"show"
title=
"详情"
:close-on-click-modal=
"true"
width=
"800px"
>
<div
v-html=
"content"
>
v-model=
"show"
:title=
"language==0?'详情':'Details'"
:close-on-click-modal=
"true"
width=
"80%"
>
<div
class=
"box-Dialog"
>
<div
v-html=
"content"
/>
</div>
</el-dialog>
</div>
...
...
@@ -10,6 +11,9 @@
<
script
setup
>
import
{
ref
}
from
'vue'
import
{
useStorage
}
from
"@vueuse/core/index"
;
const
language
=
useStorage
(
'language'
,
0
)
const
show
=
ref
(
false
)
const
content
=
ref
()
...
...
@@ -24,5 +28,11 @@ defineExpose({
</
script
>
<
style
lang=
"scss"
scoped
>
.box-Dialog
{
display
:
flex
;
justify-content
:
center
;
//
overflow
:
hidden
;
overflow-x
:
scroll
;
overflow-y
:
hidden
;
}
</
style
>
...
...
src/viewsPc/booking/pay.vue
View file @
bda7af2
...
...
@@ -66,17 +66,19 @@
<span
style=
"margin-left: 40px"
>
{{
language
==
0
?
'工作室电话'
:
'Studio phone number'
}}
:
{{
formInfo
.
contact
}}
</span>
</el-col>
<el-col>
{{
language
==
0
?
'套餐说明'
:
'Package Description'
}}
:
{{
formInfo
.
introduction
}}
</el-col>
<el-col>
<div
v-if=
"language == 0"
>
套餐详情:
<span
v-html=
"form.details"
></span>
</div>
<div
v-else
>
Package details:
<span
v-html=
"form.detailsEn"
></span>
<div
class=
"esp_3 s"
@
click=
"handleView()"
>
{{
language
==
0
?
'套餐说明'
:
'Package Description'
}}
:
{{
formInfo
.
introduction
}}
</div>
<!--
{{
language
==
0
?
'套餐详情'
:
'Package details'
}}
:
{{
language
==
0
?
form
.
details
:
form
.
detailsEn
}}
-->
</el-col>
<!--
<el-col>
-->
<!--
<div
v-if=
"language == 0"
>
-->
<!-- 套餐详情:
<span
v-html=
"form.details"
></span>
-->
<!--
</div>
-->
<!--
<div
v-else
>
-->
<!-- Package details:
<span
v-html=
"form.detailsEn"
></span>
-->
<!--
</div>
-->
<!--<!–
{{
language
==
0
?
'套餐详情'
:
'Package details'
}}
:
{{
language
==
0
?
form
.
details
:
form
.
detailsEn
}}
–>
-->
<!--
</el-col>
-->
</el-row>
</div>
</div>
...
...
@@ -366,6 +368,7 @@
</
template
>
</el-result>
</div>
<Dialog
ref=
"DialogRef"
/>
</div>
</template>
...
...
@@ -375,8 +378,10 @@ import {getCurrentInstance, ref} from 'vue'
import
{
onMounted
}
from
"@vue/runtime-core"
import
{
useRoute
,
useRouter
}
from
"vue-router"
import
*
as
booking
from
"@/apiPc/booking"
import
Dialog
from
'@/viewsPc/booking/component/dailog.vue'
import
MatchInfoRow
from
"@/viewsPc/match/components/matchInfo-row"
;
const
{
proxy
}
=
getCurrentInstance
()
const
route
=
useRoute
()
const
router
=
useRouter
()
...
...
@@ -654,6 +659,12 @@ function exportPdf() {
}
// 套餐详情
function
handleView
(){
console
.
log
(
form
.
value
)
proxy
.
$refs
[
'DialogRef'
].
open
(
language
.
value
==
0
?
form
.
value
.
details
:
form
.
value
.
detailsEn
)
}
</
script
>
<
style
scoped
lang=
"scss"
>
...
...
src/viewsPc/seat/utils/request.js
View file @
bda7af2
...
...
@@ -7,8 +7,11 @@ import { ElMessage } from "element-plus";
import
{
useStorage
}
from
"@vueuse/core/index"
;
const
language
=
useStorage
(
"language"
,
0
);
const
baseURL
=
import
.
meta
.
env
.
VITE_TICKET_BASE_API
// const baseURL = VITE_TICKET_BASE_API; //"http://book.xiaojinyu.games"; // 这里填入你的基础 API URL
// const baseURL = "ticket"; //"http://book.xiaojinyu.games"; // 这里填入你的基础 API URL
const
baseURL
=
"https://ticketh5.wdsfwuxicenter.com/ticket"
;
//"http://book.xiaojinyu.games"; // 这里填入你的基础 API URL
const
timeout
=
15000
;
// 请求超时时间
const
http
=
axios
.
create
({
...
...
vite.config.js
View file @
bda7af2
...
...
@@ -82,10 +82,20 @@ export default defineConfig(({ mode, command }) => {
rewrite
:
(
p
)
=>
p
.
replace
(
/^
\/
dev-api
\/
ztx-webSite/
,
''
)
},
'/dev-api'
:
{
// target: 'http://192.168.1.118:8081/',
target
:
'https://jijin.wtwuxicenter.com/stage-api'
,
target
:
'http://192.168.1.118:8081/'
,
// target: 'http://192.168.1.131:8081/',
// target: 'https://jijin.wtwuxicenter.com/stage-api',
// target: 'https://wdsfwuxicenter.com/stage-api/',
changeOrigin
:
true
,
rewrite
:
(
p
)
=>
p
.
replace
(
/^
\/
dev-api/
,
''
)
},
'/ticket'
:
{
target
:
'http://192.168.1.118:8098/'
,
// target: 'http://192.168.1.131:8081/',
// target: 'https://jijin.wtwuxicenter.com/stage-api',
// target: 'https://wdsfwuxicenter.com/stage-api/',
changeOrigin
:
true
,
rewrite
:
(
p
)
=>
p
.
replace
(
/^
\/
ticket/
,
''
)
}
}
},
...
...
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