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
348487be
authored
2024-08-12 17:12:15 +0800
by
杨炀
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
afb2ff46
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
123 additions
and
2 deletions
src/apiPc/common.js
src/routerPc/en.js
src/viewsPc/booking/ticketSearch.vue
vite.config.js
src/apiPc/common.js
View file @
348487b
...
...
@@ -162,4 +162,11 @@ export function queryScheduleSingle(qy) {
})
}
export
function
queryTicket
(
qy
)
{
return
request
({
url
:
`/ota/orderCustomer/getOrderCustomerListByCard`
,
method
:
'get'
,
params
:
qy
})
}
...
...
src/routerPc/en.js
View file @
348487b
...
...
@@ -61,6 +61,12 @@ export const constantRoutes = [
hidden
:
true
},
{
path
:
'/ticketSearch'
,
component
:
()
=>
import
(
'@/viewsPc/booking/ticketSearch'
),
name
:
'ticketSearch'
,
meta
:
{
title
:
'票务订单查询'
}
},
{
path
:
'/index'
,
redirect
:
'/'
},
...
...
src/viewsPc/booking/ticketSearch.vue
0 → 100644
View file @
348487b
<
template
>
<div>
<div
class=
"pd20"
>
<el-form>
<el-form-item>
<el-input
type=
"text"
size=
"large"
placeholder=
"请输入证件号查询"
v-model=
"query.idCard"
clearable
@
keyup
.
enter=
"search"
@
clear=
"search"
/>
</el-form-item>
</el-form>
<div
class=
"list"
>
<div
class=
"nowteamItem "
v-for=
"(n,i) in list"
:key=
"i"
>
<div
class=
"p9 f12"
>
订单编号:
{{
n
.
id
}}
</div>
<div>
{{
n
.
ticketName
}}
</div>
<div>
场次:
{{
n
.
ticketTypeName
}}
</div>
<div>
票型:
{{
language
==
0
?
n
.
typeName
:
n
.
typeNameEn
}}
<el-tag
v-if=
"n.discount == 1"
>
优惠
</el-tag>
</div>
<div>
<!-- 观看人:-->
<div>
<div
class=
"customer"
>
<div
class=
"name"
>
{{
n
.
name
}}
<span
class=
"fr fwb text-warning"
v-if=
"language==0&&n.discount == 0"
>
¥
{{
n
.
price
}}
</span>
<span
class=
"fr fwb text-warning"
v-if=
"language==1&&n.discount == 0"
>
€
{{
n
.
priceEn
}}
</span>
<span
class=
"fr fwb text-warning"
v-if=
"language==0&&n.discount == 1"
>
¥
{{
n
.
rebatePrice
}}
</span>
<span
class=
"fr fwb text-warning"
v-if=
"language==1&&n.discount == 1"
>
€
{{
n
.
rebatePriceEn
}}
</span>
</div>
<p>
<label
v-if=
"n.idcType == 0"
>
身份证:
</label>
<label
v-if=
"n.idcType == 1"
>
护照:
</label>
<label
v-if=
"n.idcType == 2"
>
其他:
</label>
<span
v-html=
"n.idCard"
></span>
</p>
</div>
</div>
</div>
</div>
</div>
<div
style=
"height: 100px"
></div>
<el-empty
v-if=
"list.length==0"
/>
</div>
<div
class=
"fixed-bottom"
>
<el-button
@
click=
"search"
v-loading=
"loading"
round
type=
"primary"
class=
"btn-lineG"
>
查询
</el-button>
</div>
</div>
</
template
>
<
script
setup
>
import
{
queryTicket
}
from
"@/apiPc/common"
;
import
{
ElMessage
}
from
"element-plus"
;
import
{
useStorage
}
from
"@vueuse/core/index"
;
const
language
=
useStorage
(
'language'
,
0
)
const
form
=
ref
({})
const
list
=
ref
([])
const
query
=
ref
({
status
:
1
})
const
loading
=
ref
(
false
)
function
search
()
{
if
(
!
query
.
value
.
idCard
){
ElMessage
.
warning
(
'请输入证件号'
)
return
}
loading
.
value
=
true
queryTicket
(
query
.
value
).
then
(
res
=>
{
list
.
value
=
res
.
data
for
(
let
bill
of
list
.
value
){
// p.idCard = p.idCard.substring(0,4)+'****'+p.idCard.substring(8,p.idCard.length)
const
pattern
=
new
RegExp
(
query
.
value
.
idCard
,
'gi'
)
bill
.
idCard
=
bill
.
idCard
.
replace
(
pattern
,
`<span class="highlight">$&</span>`
)
}
loading
.
value
=
false
})
}
</
script
>
<
style
scoped
lang=
"scss"
>
.highlight
{
background
:
yellow
;}
.fixed-bottom
{
position
:
fixed
;
bottom
:
30px
;
padding
:
0
30px
;
width
:
100%
;
.btn-lineG{
display
:
block
;
width
:
100%
;
font-size
:
18px
;
line-height
:
2
;
height
:
auto
;
border-radius
:
50px
;
}
}
.list
{
.nowteamItem
{
line-height
:
1.6
;
font-size
:
16px
;
width
:
100%
;
border
:
1px
solid
#c8c5ff
;
margin-top
:
20px
;
position
:
relative
;
border-radius
:
4px
;
padding
:
10px
15px
;
background
:
#FFFFFF
;
box-sizing
:
border-box
;
&>div{
flex-wrap
:
nowrap
;
white-space
:
nowrap
;
}
.p9
{
color
:
#999
;}
.f12
{
font-size
:
14px
}
.customer
{
margin
:
10px
0
0px
;
background
:
#f1f0ff
;
padding
:
4px
12px
;
border-radius
:
4px
;
.name{
font-size
:
17px
}
p
{
margin
:
0
;
label{
color
:
#666
;
font-weight
:
normal
;}
}
}
}
}
</
style
>
vite.config.js
View file @
348487b
...
...
@@ -81,9 +81,9 @@ export default defineConfig(({ mode, command }) => {
rewrite
:
(
p
)
=>
p
.
replace
(
/^
\/
dev-api
\/
ztx-webSite/
,
''
)
},
'/dev-api'
:
{
//
target: 'http://192.168.1.118:8081/',
target
:
'http://192.168.1.118:8081/'
,
// target: 'http://192.168.1.131:8081/',
target
:
'https://jijin.wtwuxicenter.com/stage-api'
,
//
target: 'https://jijin.wtwuxicenter.com/stage-api',
// target: 'http://124.70.181.90:1880/stage-api',
// target: 'https://wdsfwuxicenter.com/stage-api/',
changeOrigin
:
true
,
...
...
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