Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Athena
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
华国豪
Athena
Commits
75a8781e
Commit
75a8781e
authored
May 16, 2019
by
huangyuanyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
3620f990
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
299 additions
and
46 deletions
+299
-46
localtourhome.css
src/assets/css/localtourhome.css
+7
-1
AdmissionTicket.vue
src/components/LocalTour/AdmissionTicket.vue
+3
-2
Appointment.vue
src/components/LocalTour/Appointment.vue
+204
-20
LocalTourList.vue
src/components/LocalTour/LocalTourList.vue
+54
-14
Localtourhome.vue
src/components/LocalTour/Localtourhome.vue
+1
-1
OnedayList.vue
src/components/LocalTour/OnedayList.vue
+11
-5
TicketDetails.vue
src/components/LocalTour/TicketDetails.vue
+2
-2
LocalTourCalendar.vue
src/components/mall/LocalTourCalendar.vue
+1
-1
main.js
src/main.js
+16
-0
No files found.
src/assets/css/localtourhome.css
View file @
75a8781e
...
...
@@ -463,6 +463,11 @@
height
:
100%
;
}
/* 列表页样式 */
.LocalTourList
.item-pager
.el-pagination__editor
,
.LocalTourList
.item-pager
.el-pager
li
,
.LocalTourList
.el-pagination
.btn-next
,
.LocalTourList
.el-pagination
.btn-prev
{
width
:
30px
;
height
:
30px
;
line-height
:
30px
;
}
.LocalTourList
.tab
{
border-bottom
:
2px
solid
#4CB960
;
}
...
...
@@ -1023,7 +1028,7 @@
}
.Appointment
.payMoney
p
>
span
{
display
:
inline-block
;
width
:
100px
;
min-
width
:
100px
;
margin-right
:
10px
;
}
...
...
@@ -1042,6 +1047,7 @@
font-size
:
14px
;
line-height
:
32px
;
margin-left
:
15px
;
cursor
:
pointer
;
}
.Appointment
.Rotate
.icon-more
{
...
...
src/components/LocalTour/AdmissionTicket.vue
View file @
75a8781e
...
...
@@ -19,7 +19,7 @@
</p>
</div>
<div
class=
"threeDiv"
>
<p><span
style=
"color:#FDAC11;font-size:22px"
>
¥
{{
item
.
b2bPrice
}}
</span>
起
</p>
<p><span
style=
"color:#FDAC11;font-size:22px"
>
¥
{{
item
.
b2bPrice
|
NoDesnum
}}
</span>
起
</p>
</div>
</li>
<ul
class=
"ticketDiv"
>
...
...
@@ -28,7 +28,7 @@
<span
class=
"ticketdes"
>
{{
item
.
name
}}
{{
ticket
.
ticketDesc
}}
门票>
</span>
<span
class=
"peopleType"
>
{{
ticket
.
ticketName
}}
</span></span>
<span
class=
"SecondSpan"
>
<span
class=
"price"
>
¥
{{
ticket
.
b2bPrice
}}
</span>
<span
class=
"price"
>
¥
{{
ticket
.
b2bPrice
|
NoDesnum
}}
</span>
<!--
<span
style=
"color:#999999;font-size:12px;margin-left:7px;text-decoration: line-through"
>
原价:¥300
</span>
-->
</span>
<span
class=
"ThreeSpan"
>
...
...
@@ -113,6 +113,7 @@ export default {
height
:
24px
;
background
:
rgba
(
238
,
68
,
84
,
1
);
color
:
#fff
;
cursor
:
pointer
;
}
.AdmissionTicket
.ticketDiv
li
.SecondSpan
.price
{
color
:
#FDAC11
;
...
...
src/components/LocalTour/Appointment.vue
View file @
75a8781e
This diff is collapsed.
Click to expand it.
src/components/LocalTour/LocalTourList.vue
View file @
75a8781e
...
...
@@ -42,11 +42,12 @@
线路
</div>
<div
class=
"tabRight spanMargin"
>
<span
@
click=
"SelectLineId(0)"
:class=
"msg.lineId==0?'spanActive':''"
>
不限
</span>
<span
@
click=
"SelectLineId(item.lineId)"
:class=
"msg.lineId==item.lineId?'spanActive':''"
v-for=
"(item,index) in lineTeamList"
:key=
"index"
>
{{
item
.
lineShortName
}}
</span>
</div>
</li>
<li
v-if=
"tab==1"
>
<li
v-if=
"tab==1
&& lineList.length>0
"
>
<div
class=
"tabLeft"
>
系列
</div>
...
...
@@ -186,6 +187,16 @@
<OnedayList
:onelist=
"onelist"
v-show=
"tab==1"
></OnedayList>
<AdmissionTicket
:ticketList=
"ticketList"
v-show=
"tab==2"
></AdmissionTicket>
</div>
<div
style=
"text-align:right;width:950px;margin-top:15px"
>
<el-pagination
:page-size=
"msg.pageSize"
:current-page
.
sync=
"CurrentPage"
layout=
"total, prev, pager, next"
:total=
"totalCount"
@
current-change=
"handleCurrentChange"
></el-pagination>
</div>
</div>
</div>
</
template
>
...
...
@@ -202,7 +213,11 @@ export default {
maxPrice
:
""
,
startDate
:
""
,
endDate
:
""
,
totalCount
:
0
,
CurrentPage
:
1
,
msg
:{
pageIndex
:
1
,
pageSize
:
5
,
lineId
:
0
,
lineTeamId
:
0
,
startDate
:
""
,
...
...
@@ -259,23 +274,36 @@ export default {
this
.
GetLine
();
if
(
this
.
$route
.
query
.
tab
){
this
.
tab
=
this
.
$route
.
query
.
tab
;
if
(
this
.
tab
==
1
){
this
.
GetList
();
}
else
{
this
.
GetTicketList
();
}
}
},
mounted
()
{
this
.
CountryCity
();
this
.
GetList
();
this
.
GetTicketList
();
},
methods
:
{
handleCurrentChange
(
val
){
this
.
msg
.
pageIndex
=
val
;
if
(
this
.
tab
==
1
){
this
.
GetList
();
}
if
(
this
.
tab
==
2
){
this
.
GetTicketList
();
}
},
GetTicketList
(){
this
.
Loading
=
true
;
this
.
apiJavaPost
(
'/api/b2b/scenic/getScenicTicketList'
,
this
.
msg
,
res
=>
{
this
.
Loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
){
this
.
ticketList
=
res
.
data
.
data
.
pageData
;
this
.
totalCount
=
res
.
data
.
data
.
count
;
}
else
{
this
.
Error
(
res
.
data
.
message
);
...
...
@@ -350,7 +378,7 @@ export default {
if
(
this
.
maxPrice
==
""
){
this
.
msg
.
maxPrice
=-
1
;
}
else
{
this
.
msg
.
m
in
Price
=
this
.
maxPrice
;
this
.
msg
.
m
ax
Price
=
this
.
maxPrice
;
}
if
(
!
this
.
msg
.
startDate
){
this
.
msg
.
startDate
=
""
;
...
...
@@ -358,8 +386,10 @@ export default {
if
(
!
this
.
msg
.
endDate
){
this
.
msg
.
endDate
=
""
;
}
this
.
Loading
=
true
;
this
.
apiJavaPost
(
'/api/b2b/dayTrip/getDayTripProductList'
,
this
.
msg
,
res
=>
{
this
.
totalCount
=
res
.
data
.
data
.
count
;
this
.
Loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
){
...
...
@@ -410,16 +440,26 @@ export default {
this
.
GetList
();
},
SelectLineId
(
lineId
){
this
.
msg
.
lineId
=
lineId
;
this
.
lineTeamList
.
forEach
(
item
=>
{
this
.
msg
.
lineId
=
lineId
;
if
(
lineId
==
0
){
this
.
lineList
=
[];
this
.
msg
.
lineTeamId
=
0
;
this
.
GetList
();
}
else
{
this
.
lineTeamList
.
forEach
(
item
=>
{
if
(
lineId
==
item
.
lineId
){
this
.
lineList
=
item
.
lineTeamList
;
}
})
}
},
ChangeTab
(
num
){
this
.
tab
=
num
;
this
.
msg
.
pageIndex
=
1
;
this
.
CurrentPage
=
1
;
if
(
this
.
tab
==
1
){
this
.
GetList
();
}
...
...
@@ -439,12 +479,12 @@ export default {
if
(
this
.
$route
.
query
.
ltId
){
this
.
msg
.
lineTeamId
=
this
.
$route
.
query
.
ltId
}
if
(
this
.
msg
.
lineId
==
0
){
this
.
msg
.
lineId
=
this
.
lineTeamList
[
0
].
lineId
;
if
(
this
.
lineTeamList
.
length
>
0
){
this
.
lineList
=
this
.
lineTeamList
[
0
].
lineTeamList
;
}
}
//
if(this.msg.lineId==0){
//
this.msg.lineId=this.lineTeamList[0].lineId;
//
if(this.lineTeamList.length>0){
//
this.lineList=this.lineTeamList[0].lineTeamList;
//
}
//
}
}
else
{
this
.
Error
(
res
.
data
.
message
);
...
...
src/components/LocalTour/Localtourhome.vue
View file @
75a8781e
...
...
@@ -150,7 +150,7 @@
</div>
-->
<div
class=
"bottom"
>
<span>
{{
item
.
name
}}
</span>
<span
class=
"font12 textHidden1"
>
¥
<a
class=
"font14"
>
{{
item
.
b2bPrice
|
priceFormat
}}
</a>
起/人
</span>
<span
class=
"font12 textHidden1"
>
¥
<a
class=
"font14"
>
{{
item
.
b2bPrice
|
NoDesnum
}}
</a>
起/人
</span>
</div>
</li>
</ul>
...
...
src/components/LocalTour/OnedayList.vue
View file @
75a8781e
<
template
>
<div
class=
"OnedayList"
>
<ul
class=
"oneList"
>
<li
v-for=
"(item,index) in dataList"
:key=
"index+200"
>
<li
@
click=
"goOneDayDetail(item)"
v-for=
"(item,index) in dataList"
:key=
"index+200"
>
<div>
<img
style=
"width:199px;height:148px;"
:src=
"item.imgCover[0].url"
alt=
""
>
</div>
<div
class=
"secondDiv"
>
<p
style=
"font-size:16px;color:#2A5532"
>
{{
item
.
title
}}
</p>
<p
class=
"taglist"
style=
"margin-top:18px;"
>
<span>
明日可订
</span>
<span>
明日可订
</span>
<
!--
<
span>
明日可订
</span>
<span>
明日可订
</span>
-->
</p>
<p
style=
"margin-top:14px;"
class=
"font12"
>
<i
class=
"iconfont icon-bb-chufadi"
></i>
...
...
@@ -23,7 +23,7 @@
</p>
</div>
<div
class=
"threeDiv"
>
<p><span
style=
"color:#FDAC11;font-size:22px"
>
¥
{{
item
.
b2BPrice
}}
</span>
起
</p>
<p><span
style=
"color:#FDAC11;font-size:22px"
>
¥
{{
item
.
b2BPrice
|
NoDesnum
}}
</span>
起
</p>
<p
style=
"margin-top:80px"
><span
class=
"ckxq"
@
click=
"GetDes(item)"
>
查看详情
</span></p>
</div>
</li>
...
...
@@ -35,7 +35,7 @@
</ul>
<ul
class=
"hottour_ul"
>
<p
class=
"pfR font14"
style=
"margin-bottom:8px"
>
历史浏览
</p>
<li
v-for=
"(item,index) in Historylist"
:key=
"index+2000"
>
<li
@
click=
"goOneDayDetail(item)"
v-for=
"(item,index) in Historylist"
:key=
"index+2000"
>
<img
:src=
"item.imgCover[0].url"
alt=
""
>
<div
class=
"hotcontent"
>
<span
class=
"textHidden font12"
>
{{
item
.
title
}}
</span>
...
...
@@ -63,6 +63,11 @@ export default {
this
.
Historylist
=
arr
;
},
methods
:
{
goOneDayDetail
(
item
){
let
path
=
'OneDayDetailTwo'
;
path
=
`
${
path
}
/
${
encodeURIComponent
(
item
.
idDes
)}
/
${
item
.
tcid
}
`
;
this
.
$router
.
push
({
path
})
},
GetDes
(
item
){
if
(
this
.
Historylist
.
length
>
4
||
this
.
Historylist
.
length
==
4
){
this
.
Historylist
.
pop
();
...
...
@@ -120,6 +125,7 @@ export default {
.OnedayList
.hottour_ul
li
{
position
:
relative
;
margin-bottom
:
14px
;
cursor
:
pointer
;
}
.OnedayList
.hottour_ul
{
width
:
228px
;
...
...
src/components/LocalTour/TicketDetails.vue
View file @
75a8781e
...
...
@@ -28,7 +28,7 @@
<p
class=
"pfR"
style=
"color:#2A5532;font-size:20px;"
>
{{
dataDes
.
name
}}
</p>
<!--
<p
style=
"margin-top:20px"
class=
"ticketSpan"
>
票类包括:
<span>
大小同价
</span><span>
大小价
</span></p>
-->
<div
class=
"price"
>
¥
{{
dataDes
.
minPrice
|
priceFormat
}}
~¥
{{
dataDes
.
maxPrice
|
priceFormat
}}
¥
{{
dataDes
.
minPrice
|
NoDesnum
}}
~¥
{{
dataDes
.
maxPrice
|
NoDesnum
}}
</div>
<p>
<span
style=
"color:#666666"
>
景点地址:
</span>
...
...
@@ -76,7 +76,7 @@
<!--
<span
class=
"colorG"
>
可订今日
</span>
<span
class=
"colorG"
>
可订今日
</span>
-->
</el-col>
<el-col
class=
"pfR"
:span=
"3"
style=
"color:#FDAC11"
>
¥
<span
class=
"font22"
>
{{
item
.
b2bPrice
|
priceFormat
}}
</span></el-col>
<el-col
class=
"pfR"
:span=
"3"
style=
"color:#FDAC11"
>
¥
<span
class=
"font22"
>
{{
item
.
b2bPrice
|
NoDesnum
}}
</span></el-col>
<el-col
:span=
"2"
>
<span
@
click=
"YdUrl(dataDes,item)"
class=
"ydBtn"
>
预定
</span>
</el-col>
...
...
src/components/mall/LocalTourCalendar.vue
View file @
75a8781e
...
...
@@ -163,7 +163,7 @@ export default {
// dayDict.price = price.price;
dayDict
.
date_str
=
price
.
dateStr
;
dayDict
.
couponsId
=
price
.
couponsId
;
dayDict
.
id
=
price
.
i
d
;
dayDict
.
priceId
=
price
.
priceI
d
;
dayDict
.
ticketId
=
price
.
ticketId
;
if
(
dayIndex
<
strDate
&&
strMonth
==
currentMonth
){
dayDict
.
price
=
''
;
...
...
src/main.js
View file @
75a8781e
...
...
@@ -112,6 +112,22 @@ Vue.filter('priceFormat', function (value) {
x1
=
x1
.
replace
(
rgx
,
'$1'
+
','
+
'$2'
);
}
return
x1
+
x2
;
})
// 不要小数点
Vue
.
filter
(
'NoDesnum'
,
function
(
value
)
{
if
(
value
==
null
)
{
return
0.00
;
}
let
nStr
=
value
.
toFixed
(
0
)
nStr
+=
''
;
let
x
=
nStr
.
split
(
'.'
);
let
x1
=
x
[
0
];
let
x2
=
x
.
length
>
1
?
'.'
+
x
[
1
]
:
''
;
var
rgx
=
/
(\d
+
)(\d{3})
/
;
while
(
rgx
.
test
(
x1
))
{
x1
=
x1
.
replace
(
rgx
,
'$1'
+
','
+
'$2'
);
}
return
x1
+
x2
;
})
// 时间格式YYYY-MM-DD
Vue
.
filter
(
"YMD"
,
function
(
date
)
{
...
...
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