Commit 4844b6dc authored by 18224442217's avatar 18224442217

线路查询修复bug, 欧洲下载行程调整

parent b9472d44
......@@ -895,7 +895,7 @@
//跳转至详情
goJzDetail(item) {
uni.navigateTo({
url: "/pages/jiuzhai/jz_LineDetail?tcid=" + item.tcid + '&configId=' + item.configId + '&cityId=' + (item.startCityId?item.startCityId:this.CityId)
url: "/pages/jiuzhai/jz_LineDetail?tcid=" + item.tcid + '&configId=' + item.configId + '&cityId=' + (item.startCityId?item.startCityId:this.CityId)+'&lineId='+this.msg.lineId
});
},
//获取第一张图
......
......@@ -1463,6 +1463,9 @@ export default {
created() {},
onLoad(option) {
if(!option.scene){
if(option.lineId){
this.delMsg.lineId = option.lineId;
}
if (option.tcid) {
this.delMsg.tcid = option.tcid;
}
......@@ -1519,8 +1522,13 @@ export default {
// let url = `http://uploadfile.oytour.com/Home/PcToPdf2023New?configId=${this.delMsg.configId}&cityId=0&TCID=${this.delMsg.tcid}&orderId=0&isShowBase=1&isShowFlight=1&isShowFeature=1&isShowFee=1&isShowShop=1&isShowTip=1&isShowB2B=1&isShowTrip=1&isShowTitle=0&isShowGuest=0&isShowMan=1&isShowTCNUM=1&isShowVisa=1&isShowTripImage=1&templateId=3&isShowVideoImg=1&unionfid=0`
// url = `https://ocr.oytour.com/Home/DownloadFileForPdf?url=${encodeURIComponent(url)}`
let url = `https://im.oytour.com/TripDownLoad/${this.delMsg.configId}_${this.delMsg.tcid}/${this.delMsg.configId}_${this.delMsg.tcid}.pdf`
const filePath= wx.env.USER_DATA_PATH + `/${this.dataList.currentPriceInfo?.startDate+'_'}${this.dataList.ltName.replace(/\s+/g,"").replaceAll("/","")}.pdf`
let url = `https://im.oytour.com/TripDownLoad/${this.delMsg.configId}_${this.delMsg.tcid}/${this.delMsg.configId}_${this.delMsg.tcid}.pdf`
let fileName = `${this.dataList.currentPriceInfo?.startDate+'_'}${this.dataList.ltName.replace(/\s+/g,"").replaceAll("/","")}`
if(this.delMsg.lineId&&(this.delMsg.lineId==168||this.delMsg.lineId==119)){
fileName = `${this.dataList.currentPriceInfo?.startDate+'_'}${this.dataList.title}`
}
const filePath= wx.env.USER_DATA_PATH + `/${fileName}.pdf`
uni.downloadFile({
url: url,
filePath,
......
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