Commit f5c2f3cb authored by 黄奎's avatar 黄奎

样式修改

parent 60719bff
......@@ -150,9 +150,9 @@ export default {
//google地图图片地址
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;
},
......@@ -215,17 +215,33 @@ export default {
//打开新窗口连接
Vue.prototype.OpenNewUrl = function (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) {
var apiurl = this.domainManager().Upload + '/Upload/UploadBase64?fileType=1&fileLimit=5&&filePath=Freature/TCID' + tcID;
this.$http.post(apiurl, msg, {
datatype:"jsonP",
}).then(res => {
successCall(res);
}, faildCall)
var apiurl = this.domainManager().UploadUrl + '/Upload/UploadBase64Two?fileType=1&fileLimit=5&&filePath=Freature/' + tcID;
console.log("msg",msg);
this.$http.post(apiurl,{FileIndex:msg.FileIndex,MyFile:msg.MyFile},{
headers: {
"Content-Type": "application/x-www-form-urlencoded;"
},
}).then(function(res){
console.log(res)
})
}
//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