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
3470490e
Commit
3470490e
authored
Jan 21, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改行程
parent
b4dcd7a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
4 deletions
+41
-4
newTrip.vue
src/components/mall/newTrip.vue
+17
-3
tripMobile.vue
src/components/mall/tripMobile.vue
+24
-1
No files found.
src/components/mall/newTrip.vue
View file @
3470490e
...
...
@@ -902,13 +902,24 @@
margin
:
30px
0
;
position
:
relative
;
}
.Nt_downLoad
{
background-color
:
#00A4A8
;
width
:
120px
;
color
:
#fff
;
border
:
none
;
box-shadow
:
-1px
-2px
-2px
0
#00A4A8
;
border-radius
:
3px
;
font-size
:
16px
;
padding
:
5px
;
outline
:
none
;
cursor
:
pointer
;
}
</
style
>
<
template
>
<div
class=
"pageViewTrip"
v-if=
"isShow"
v-loading=
"loading"
>
<div
class=
"tripContWrap"
>
<div
class=
"sideBar mobileHide"
>
<div
class=
"sideBarBtns sideTop"
>
<input
type=
"button"
@
click=
"downLoadTrip()"
value=
"下载"
style=
"display:none;"
/>
<div
:class=
"crtnav=='tripLine'?'active':''"
class=
"btnPage"
@
click=
"goScroll('tripLine','')"
>
<i
class=
"iconfont icon-huozhuduanchaxunxianlu"
></i>
行程线路
</div>
...
...
@@ -940,6 +951,7 @@
</li>
</ul>
<div
class=
"border"
></div>
<input
type=
"button"
@
click=
"downLoadTrip()"
class=
"Nt_downLoad"
value=
"行程下载"
/>
</div>
<div
class=
"tripViewContainer main "
>
<div
class=
"slideList"
id=
"tripLine"
>
...
...
@@ -1269,7 +1281,8 @@
FlightList
:
[],
StartData
:
""
,
showSubwayDiv
:
false
,
subWaySrc
:
''
subWaySrc
:
''
,
TitleName
:
''
}
},
mounted
()
{
...
...
@@ -1331,6 +1344,7 @@
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
dataList
=
res
.
data
.
data
;
this
.
TitleName
=
this
.
dataList
.
lineName
+
''
+
this
.
dataList
.
ltName
;
if
(
res
.
data
.
data
.
currentPriceInfo
&&
res
.
data
.
data
.
currentPriceInfo
.
priceFlight
)
{
this
.
FlightList
=
res
.
data
.
data
.
currentPriceInfo
.
priceFlight
;
}
...
...
@@ -1675,7 +1689,7 @@
},
//行程下载
downLoadTrip
()
{
var
fileName
=
"行程下载.pdf"
;
var
fileName
=
this
.
TitleName
;
this
.
loading
=
true
;
let
urlObj
=
this
.
domainManager
();
let
msg
=
{
...
...
src/components/mall/tripMobile.vue
View file @
3470490e
...
...
@@ -1029,7 +1029,16 @@
mounted
()
{
this
.
msg
.
ID
=
this
.
$route
.
query
.
ID
;
this
.
msg
.
tcid
=
this
.
$route
.
query
.
tcid
;
//判断为pc端
if
(
this
.
IsPC
()){
this
.
$router
.
push
({
name
:
'newTrip'
,
query
:
{
ID
:
decodeURIComponent
(
this
.
msg
.
ID
),
tcid
:
decodeURIComponent
(
this
.
msg
.
tcid
)
}
});
}
//获取浏览器NewId
var
NewId
=
this
.
$route
.
query
.
NewId
;
if
(
NewId
){
...
...
@@ -1188,6 +1197,20 @@
this
.
travelLngLat
=
Arr
;
this
.
showType
=
1
;
}
},
IsPC
()
{
var
userAgentInfo
=
navigator
.
userAgent
;
var
Agents
=
[
"Android"
,
"iPhone"
,
"SymbianOS"
,
"Windows Phone"
,
"iPad"
,
"iPod"
];
var
flag
=
true
;
for
(
var
v
=
0
;
v
<
Agents
.
length
;
v
++
)
{
if
(
userAgentInfo
.
indexOf
(
Agents
[
v
])
>
0
)
{
flag
=
false
;
break
;
}
}
return
flag
;
}
}
};
...
...
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