Commit 1c645591 authored by 黄奎's avatar 黄奎

js文件修改

parent e81cf67e
......@@ -11,11 +11,8 @@ export default {
},
//域名管理对象
Vue.prototype.domainManager = function () {
var domainUrl = "http://127.0.0.1"; //主域名
let locationName = window.location.hostname;
let javaUrldo = "";
javaUrldo = locationName.indexOf('zcyx') !== -1 || locationName.indexOf('viitto') !== -1 ? (locationName.indexOf('oytour') !== -1 ? "http://property.oytour.com" : "http://47.96.12.235:9001") : "http://192.168.2.17:8087";
if (this.isOnline()) {
if (window.location.host.indexOf('testzcyx.oytour.com') != -1) {
//domainUrl = "http://127.0.0.1"
......@@ -26,16 +23,10 @@ export default {
var obj = {
//主地址
DomainUrl: domainUrl,
//上传文件URL
UploadFileUrl: domainUrl + '/api/File/post',
LocalTemplateFileDownLoadUrl: domainUrl,
//常用提交数据URL
PostUrl: domainUrl + "/api/common/post",
javaUrl: "http://property.oytour.com",
ViittoFileUrl: locationName.indexOf('zcyx') !== -1 || locationName.indexOf('zcyx.oytour.com') !== -1 ? "http://staticfile.oytour.com" : 'http://imgfile.oytour.com',
UploadUrl: locationName.indexOf('zcyx') !== -1 || locationName.indexOf('zcyx.oytour.com') !== -1 ? "http://uploadfile.oytour.com" : "http://upload.oytour.com",
LocalFileStreamDownLoadUrl: domainUrl + "/api/file/GetFileFromWebApi",
JavaLocalFileStreamDownLoadUrl: javaUrldo,
//google地图图片地址
GoogleMapImageUrl: "http://imgfile.oytour.com",
};
......@@ -126,7 +117,6 @@ export default {
key = this.getLocalStorage().secretKey;
uid = this.getLocalStorage().Id;
}
var encodeMsg = encodeURIComponent(JSON.stringify(msg)).toLowerCase();
var md5Str = md5(`cmd=${cmd}&msg=${encodeMsg}&timestamp=${timestamp}&token=${token}&key=${key}`);
......@@ -139,7 +129,6 @@ export default {
"uid": uid
}
if (localStorage.g && localStorage.g != 'undefined') {
// postData.groupId = parseInt(JSON.parse(localStorage.g).i)
postData.groupId = 2;
}
this.$http.post(apiurl, postData, {
......
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