Commit 3470490e authored by zhengke's avatar zhengke

修改行程

parent b4dcd7a9
...@@ -902,13 +902,24 @@ ...@@ -902,13 +902,24 @@
margin: 30px 0; margin: 30px 0;
position: relative; 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> </style>
<template> <template>
<div class="pageViewTrip" v-if="isShow" v-loading="loading"> <div class="pageViewTrip" v-if="isShow" v-loading="loading">
<div class="tripContWrap"> <div class="tripContWrap">
<div class="sideBar mobileHide"> <div class="sideBar mobileHide">
<div class="sideBarBtns sideTop"> <div class="sideBarBtns sideTop">
<input type="button" @click="downLoadTrip()" value="下载" style="display:none;" />
<div :class="crtnav=='tripLine'?'active':''" class="btnPage" @click="goScroll('tripLine','')"> <div :class="crtnav=='tripLine'?'active':''" class="btnPage" @click="goScroll('tripLine','')">
<i class="iconfont icon-huozhuduanchaxunxianlu"></i>行程线路 <i class="iconfont icon-huozhuduanchaxunxianlu"></i>行程线路
</div> </div>
...@@ -940,6 +951,7 @@ ...@@ -940,6 +951,7 @@
</li> </li>
</ul> </ul>
<div class="border"></div> <div class="border"></div>
<input type="button" @click="downLoadTrip()" class="Nt_downLoad" value="行程下载" />
</div> </div>
<div class="tripViewContainer main "> <div class="tripViewContainer main ">
<div class="slideList" id="tripLine"> <div class="slideList" id="tripLine">
...@@ -1269,7 +1281,8 @@ ...@@ -1269,7 +1281,8 @@
FlightList: [], FlightList: [],
StartData: "", StartData: "",
showSubwayDiv: false, showSubwayDiv: false,
subWaySrc: '' subWaySrc: '',
TitleName:''
} }
}, },
mounted() { mounted() {
...@@ -1331,6 +1344,7 @@ ...@@ -1331,6 +1344,7 @@
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.dataList = res.data.data; this.dataList = res.data.data;
this.TitleName = this.dataList.lineName+''+this.dataList.ltName;
if (res.data.data.currentPriceInfo && res.data.data.currentPriceInfo.priceFlight) { if (res.data.data.currentPriceInfo && res.data.data.currentPriceInfo.priceFlight) {
this.FlightList = res.data.data.currentPriceInfo.priceFlight; this.FlightList = res.data.data.currentPriceInfo.priceFlight;
} }
...@@ -1675,7 +1689,7 @@ ...@@ -1675,7 +1689,7 @@
}, },
//行程下载 //行程下载
downLoadTrip() { downLoadTrip() {
var fileName="行程下载.pdf"; var fileName=this.TitleName;
this.loading = true; this.loading = true;
let urlObj = this.domainManager(); let urlObj = this.domainManager();
let msg = { let msg = {
......
...@@ -1029,7 +1029,16 @@ ...@@ -1029,7 +1029,16 @@
mounted() { mounted() {
this.msg.ID = this.$route.query.ID; this.msg.ID = this.$route.query.ID;
this.msg.tcid = this.$route.query.tcid; 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 //获取浏览器NewId
var NewId = this.$route.query.NewId; var NewId = this.$route.query.NewId;
if(NewId){ if(NewId){
...@@ -1188,6 +1197,20 @@ ...@@ -1188,6 +1197,20 @@
this.travelLngLat = Arr; this.travelLngLat = Arr;
this.showType = 1; 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;
} }
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment