Commit 3470490e authored by zhengke's avatar zhengke

修改行程

parent b4dcd7a9
......@@ -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 = {
......
......@@ -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;
}
}
};
......
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