Commit f5c2f3cb authored by 黄奎's avatar 黄奎

样式修改

parent 60719bff
...@@ -150,9 +150,9 @@ export default { ...@@ -150,9 +150,9 @@ export default {
//google地图图片地址 //google地图图片地址
GoogleMapImageUrl: "http://super.oytour.com", GoogleMapImageUrl: "http://super.oytour.com",
//上传站点 //上传站点
UploadUrl: locationName.indexOf('oytour') !== -1||locationName.indexOf('viitto')!==-1 ? "http://upload.oytour.com" : "http://192.168.2.214:8120", UploadUrl: locationName.indexOf('oytour') !== -1||locationName.indexOf('viitto')!==-1 ? "http://upload.oytour.com" : "http://127.0.0.1:8120",
//文件站点 //文件站点
ViittoFileUrl: locationName.indexOf('oytour') !== -1 || locationName.indexOf('viitto')!==-1 ? "http://imgfile.oytour.com" : 'http://192.168.2.214:8130' ViittoFileUrl: locationName.indexOf('oytour') !== -1 || locationName.indexOf('viitto')!==-1 ? "http://imgfile.oytour.com" : 'http://127.0.0.1:8130'
}; };
return obj; return obj;
}, },
...@@ -215,17 +215,33 @@ export default { ...@@ -215,17 +215,33 @@ export default {
//打开新窗口连接 //打开新窗口连接
Vue.prototype.OpenNewUrl = function (URL) { Vue.prototype.OpenNewUrl = function (URL) {
if (URL != '') { if (URL != '') {
window.open('http://' + URL, '_blank'); if(URL.indexOf("https")!=-1){
var str='http://' + URL.substring(8);
window.open(str, '_blank');
}else if(URL.indexOf("http")!=-1)
{
var str='http://' + URL.substring(7);
window.open(str, '_blank');
}
else
{
window.open("http://"+URL, '_blank');
}
} }
} }
Vue.prototype.uploadImg = function (tcID, msg, successCall, faildCall) { Vue.prototype.uploadImg = function (tcID, msg, successCall, faildCall) {
var apiurl = this.domainManager().Upload + '/Upload/UploadBase64?fileType=1&fileLimit=5&&filePath=Freature/TCID' + tcID; var apiurl = this.domainManager().UploadUrl + '/Upload/UploadBase64Two?fileType=1&fileLimit=5&&filePath=Freature/' + tcID;
this.$http.post(apiurl, msg, { console.log("msg",msg);
datatype:"jsonP",
}).then(res => { this.$http.post(apiurl,{FileIndex:msg.FileIndex,MyFile:msg.MyFile},{
successCall(res); headers: {
}, faildCall) "Content-Type": "application/x-www-form-urlencoded;"
},
}).then(function(res){
console.log(res)
})
} }
//HTTP提交数据 //HTTP提交数据
......
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