Commit 79c2e251 authored by 黄奎's avatar 黄奎

hk

parents 848789b1 6e12bbdb
let locationName = window.location.hostname;
if (locationName.indexOf('oytour') !== -1) {
domainUrl = "http://reborn.oytour.com";
} else if (locationName.indexOf('viitto') !== -1) {
domainUrl = "https://test.viitto.com";
}
let ViittoFileUrl = locationName.indexOf('oytour') !== -1 || locationName.indexOf('viitto') !== -1 ? "http://imgfile.oytour.com" : 'http://192.168.2.214:8130'
var tripUtils = { var tripUtils = {
TypeKey: { TypeKey: {
traffic: "1", traffic: "1",
...@@ -329,6 +336,7 @@ var tripUtils = { ...@@ -329,6 +336,7 @@ var tripUtils = {
//行程-【交通对象】 //行程-【交通对象】
trafficObj: function () { trafficObj: function () {
console.log(ViittoFileUrl)
return { return {
ID: 0, ID: 0,
ConfigId: 0, ConfigId: 0,
...@@ -346,7 +354,7 @@ var tripUtils = { ...@@ -346,7 +354,7 @@ var tripUtils = {
//行程介绍 //行程介绍
trafficIntroduce: { trafficIntroduce: {
IntroduceTitle: "", //行程介绍标题 IntroduceTitle: "", //行程介绍标题
IntroduceImage: this.domainManager().ViittoFileUrl+"/Upload/DefalutImage/DMC/defaultairline.png", //行程介绍图片 IntroduceImage: ViittoFileUrl+"/Upload/DefalutImage/DMC/defaultairline.png", //行程介绍图片
IntroduceDetail: "", //行程介绍详细信息 IntroduceDetail: "", //行程介绍详细信息
} }
}; };
......
...@@ -210,11 +210,9 @@ ...@@ -210,11 +210,9 @@
methods: { methods: {
downLoadPZ: function (src) { downLoadPZ: function (src) {
var a = document.createElement('a') let dom = document.querySelector("#blankLink")
var event = new MouseEvent('click') dom.href=src
a.download = '下载图片名称' dom.click()
a.href = src;
a.dispatchEvent(event)
}, },
stringToArr(str) { stringToArr(str) {
return str.split(',') return str.split(',')
......
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