Commit 17a5aeb2 authored by Mac's avatar Mac

司导页面

parent 45051be4
.head-title {
font-size: 14px;
color: #303133;
padding: 18px 20px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
background: #fff;
}
.content {
background: #fff;
margin-top: 10px;
padding: 20px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.searchInput .el-input__inner {
border: none;
outline: none;
height: 30px!important;
line-height: 30px!important;
}
.el-input--suffix .el-input__inner {
padding-right: 30px;
}
span{
font-size: 13px;
font-weight: normal;
}
.searchInput {
line-height: normal;
display: inline-table;
width: 100%;
border-collapse: separate;
border-spacing: 0;
width: 250px;
margin-right: 20px;
border: 1px solid #dcdfe6;
border-radius: 4px;
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
......@@ -117,10 +117,13 @@ export default {
let mallUrl = ""; //商城API
let locationName = window.location.hostname;
domainUrl = "http://127.0.0.1";
domainUrl = "http://192.168.1.21:8069";
domainUrl = "http://192.168.20.9:8083";
let javaUrldo = "";
javaUrldo = locationName.indexOf('oytour') !== -1 || locationName.indexOf('viitto') !== -1 ? (locationName.indexOf('oytour') !== -1 ? "http://efficient.oytour.com" : "http://47.96.12.235:9001") : "http://192.168.2.215:9000";
//商城API
mallUrl = "http://192.168.2.214:8200";
// mallUrl = "http://192.168.1.48:8019";
mallUrl = "http://192.168.20.9:8088";
if (locationName.indexOf('testerp.oytour') !== -1) {
domainUrl = "http://testapi.oytour.com";
mallUrl = "https://mallapi.oytour.com";
......@@ -1289,6 +1292,73 @@ export default {
css = 'default-small'
}
return css;
},
//HTTP提交数据 5-18新的 司导旅行新加的
Vue.prototype.lxymallapipost = function (cmd, msg, successCall, faildCall, isOnline) {
var apiurl = this.domainManager().mallUrl + cmd;
var postData = this.GetNewPostData(cmd, msg, "");
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)
},
//公用跳转
Vue.prototype.CommonJump = function (path, obj) {
this.$router.push({
name: path,
query: obj
});
}
//获取请求参数
Vue.prototype.GetNewPostData = function (cmd, msg, newCmd) {
if (msg == null || msg == "") {
msg = {}
}
var timestamp = (new Date()).valueOf();
var token = "";
var key = "";
var MallBaseId = 1; //小程序ID
var TenantId = 1; //商户Id
var encodeMsg = encodeURIComponent(JSON.stringify(msg)).toLowerCase();
var md5Str = md5(`cmd=${cmd}&msg=${encodeMsg}&timestamp=${timestamp}&token=${token}&key=${key}`);
let tempLanguage = 0;
if (this.getLocalStorage() != null) {
token = this.getLocalStorage().mlxy_token;
MallBaseId = this.getLocalStorage().LXYMallBaseId;
TenantId = this.getLocalStorage().LXYTenantId;
}
if (localStorage.language && localStorage.language != '') {
if (localStorage.language == "zh-TW") {
tempLanguage = 1;
} else if (localStorage.language == "Japanese") {
tempLanguage = 2;
}
}
var cmdStr = "";
if (newCmd) {
cmdStr = newCmd;
}
var postData = {
msg: msg,
timestamp: timestamp,
token: token,
sign: md5Str,
languageId: tempLanguage,
cmd: cmdStr,
MallBaseId: MallBaseId,
TenantId: TenantId,
}
return postData
}
}
}
......@@ -2449,6 +2449,21 @@ export default {
title: '报价单'
},
},
{
path: '/directorGoodsList', //司导专区=>产品列表
name: 'directorGoodsList',
component: resolve => require(['@/components/TravelManager/Lxy/directorGoodsList'], resolve),
meta: {
title: '产品列表'
},
},{
path: '/directorGoodsEdit', //司导专区=>产品编辑
name: 'directorGoodsEdit',
component: resolve => require(['@/components/TravelManager/Lxy/directorGoodsEdit'], resolve),
meta: {
title: '产品编辑'
},
},
{
path: '/newQuotation_SWT',
name: 'newQuotation_SWT',
......
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