Commit fd2d95d7 authored by zhengke's avatar zhengke

no message

parent f4529f59
......@@ -109,8 +109,7 @@
<ul class="_nav clearfix">
<li class="_active" @click="getTemplateList()">流程列表</li>
<!-- <li :class="active==1?'_active':''" @click="active=1,msg.TempLateWay=8,getTemplateList()">自定义流程</li> -->
</ul>
<ul>
</ul>
<el-form class="_info_box clearfix" label-width="110px">
<el-row>
<el-col :span="4" :gutter="35">
......
......@@ -116,6 +116,7 @@ export default {
let domainUrl = '';
let mallUrl = ""; //商城API
let lxymallUrl = '';//国内游api
let crmUrl = ""; //crm API
let locationName = window.location.hostname;
domainUrl ="http://192.168.10.36:8083";
let javaUrldo = "";
......@@ -124,14 +125,17 @@ export default {
// mallUrl = "http://192.168.1.48:8019";
mallUrl = "http://192.168.20.13:8088";
lxymallUrl = "http://192.168.20.13:8088";
crmUrl = "http://192.168.10.36:8098"
if (locationName.indexOf('testerp.oytour') !== -1) {
domainUrl = "http://testapi.oytour.com";
mallUrl = "https://mallapi.oytour.com";
lxymallUrl = "https://erpmallapi.oytour.com";
crmUrl = "http://testcrm.oytour.com"
} else if (locationName.indexOf('oytour') !== -1) {
domainUrl = "http://reborn.oytour.com";
mallUrl = "https://mallapi.oytour.com";
lxymallUrl = "https://erpmallapi.oytour.com";
crmUrl = "http://crm.oytour.com"
}
var obj = {
//主地址
......@@ -163,7 +167,8 @@ export default {
//Java接口本站文件流下载地址
JavaLocalFileStreamDownLoadUrl: javaUrldo,
mallUrl: mallUrl,
lxymallUrl:lxymallUrl
lxymallUrl:lxymallUrl,
crmUrl: crmUrl
};
return obj;
},
......@@ -342,6 +347,37 @@ export default {
}
}, faildCall)
},
// CRM接口
Vue.prototype.crmapipost = function (cmd, msg, successCall, faildCall, isOnline) {
var apiurl = this.domainManager().crmUrl + cmd;
var token = "";
var key = "";
if (this.getLocalStorage() != null) {
token = this.getLocalStorage().token;
key = this.getLocalStorage().SecretKey;
}
var encodeMsg = encodeURIComponent(JSON.stringify(msg)).toLowerCase();
var md5Str = md5(`cmd=${cmd}&msg=${encodeMsg}&token=${token}&key=${key}`);
var postData = {
"msg": msg,
"cmd": cmd,
"token": token,
"sign": md5Str,
}
this.$http.post(apiurl, postData, {
headers: {
'Content-Type': 'application/json',
'Referer-Viitto': this.$route.path
}
})
.then(res => {
if (res.data.resultCode == 10000 || res.data.resultCode == 10001) {} else if (res.resultCode == 10005) {
this.$router.go(-1);
} else {
successCall(res);
}
}, faildCall)
},
// 自动登录HTTP提交数据
Vue.prototype.apipostLogin = function (cmd, msg, successCall, faildCall, isOnline) {
if (this.$route.name.indexOf('login') === -1 && this.$route.name.indexOf('clientConfirm') === -1 &&
......
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