Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
12c0a74b
Commit
12c0a74b
authored
Jan 12, 2023
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
5d36bc0f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
6 deletions
+33
-6
OrderPreview.vue
src/components/scenicSpot/Singleticket/OrderPreview.vue
+3
-0
SingleticketList.vue
src/components/scenicSpot/Singleticket/SingleticketList.vue
+30
-6
No files found.
src/components/scenicSpot/Singleticket/OrderPreview.vue
View file @
12c0a74b
...
...
@@ -526,6 +526,9 @@
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
Success
(
'下单成功'
);
this
.
$router
.
push
({
path
:
"/SingleticketOrderList"
,
});
}
else
{
this
.
Error
(
'下单失败'
)
}
...
...
src/components/scenicSpot/Singleticket/SingleticketList.vue
View file @
12c0a74b
...
...
@@ -162,7 +162,7 @@
<button
class=
"hollowFixedBtn"
type=
"button"
@
click=
"getList()"
>
{{
$t
(
'pub.searchBtn'
)
}}
</button>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"$t('fnc.qhpaiban')"
placement=
"top-end"
>
<i
v-if=
"ViewType==1"
class=
"iconfont icon-biaoge"
@
click=
"ViewType=2,
msg.pageSize=18,
getList()"
></i>
<i
v-if=
"ViewType==1"
class=
"iconfont icon-biaoge"
@
click=
"ViewType=2,getList()"
></i>
<i
v-if=
"ViewType==2"
class=
"iconfont icon-icon-ssan"
@
click=
"ViewType=1,msg.pageSize=10,getList()"
></i>
</el-tooltip>
<!--
<button
class=
"normalBtn"
type=
"button"
...
...
@@ -209,7 +209,7 @@
<div
v-else
class=
"listtwo-card"
>
<el-row
:gutter=
"30"
class=
"card-form"
>
<template
v-for=
"(x,index) in tableData"
>
<el-col
:
span=
"5
"
class=
"listtwo-col"
>
<el-col
:
xl=
"6"
:lg=
"6"
:md=
"8"
:sm=
"12"
:xs=
"24
"
class=
"listtwo-col"
>
<div
class=
"listtwo-form"
>
<div>
<el-image
v-if=
"x.PicPathList"
class=
"listtwo-img"
:src=
"x.PicPathList[0]"
>
...
...
@@ -264,20 +264,20 @@
total
:
0
,
msg
:
{
pageIndex
:
1
,
pageSize
:
1
8
,
pageSize
:
1
6
,
QCountry
:
'651'
,
QProvince
:
0
,
QCity
:
0
,
QDistrict
:
0
,
Name
:
''
,
OpenTime
:
this
.
getBeforeDate
(
-
1
,
new
Date
().
Format
(
"yyyy-MM-dd"
)),
OpenTime
:
this
.
getBeforeDate
(
0
,
new
Date
().
Format
(
"yyyy-MM-dd"
)),
StartPrice
:
''
,
EndPrice
:
''
,
},
ViewType
:
2
,
beforeCheck
:
{
disabledDate
:
time
=>
{
let
endTime
=
new
Date
(
this
.
getBeforeDate
(
-
1
,
new
Date
().
Format
(
"yyyy-MM-dd"
)));
let
endTime
=
new
Date
(
this
.
getBeforeDate
(
0
,
new
Date
().
Format
(
"yyyy-MM-dd"
)));
return
time
&&
endTime
.
getTime
()
>=
time
.
getTime
();
}
},
...
...
@@ -285,6 +285,30 @@
showDetails
:
false
,
};
},
watch
:
{
document
:
{
handler
:
function
(
val
,
oldVal
)
{
var
clientWidth
=
document
.
body
.
clientWidth
;
var
w
=
clientWidth
;
//设置table的屏幕宽度
this
.
tableWidth
=
w
;
if
(
this
.
ViewType
==
1
)
return
if
(
this
.
tableWidth
>=
1920
){
this
.
msg
.
pageSize
=
16
}
else
if
(
this
.
tableWidth
>=
1200
){
this
.
msg
.
pageSize
=
16
}
else
if
(
this
.
tableWidth
>=
992
){
this
.
msg
.
pageSize
=
12
}
else
if
(
this
.
tableWidth
>=
768
){
this
.
msg
.
pageSize
=
12
}
else
if
(
this
.
tableWidth
<
768
){
this
.
msg
.
pageSize
=
10
}
this
.
getList
()
},
deep
:
true
},
},
methods
:
{
toPreviewOrderHandler
(
id
){
this
.
$router
.
push
({
...
...
@@ -367,7 +391,7 @@
var
clientWidth
=
document
.
body
.
clientWidth
;
var
w
=
clientWidth
;
//设置table的
行高
//设置table的
屏幕宽度
this
.
tableWidth
=
w
;
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment