Commit 6b568b1c authored by 黄奎's avatar 黄奎

页面修改

parent a594ca66
......@@ -7,10 +7,11 @@ Vue.prototype.domainManager = function () {
let domainUrl = '';
domainUrl = "http://192.168.2.214:8082";
domainUrl = "http://127.0.0.1";
let locationName = location.hostname;
if (locationName.indexOf('testerp.oytour') !== -1) {
let domainNameUrl = this.GetDomain();
domainNameUrl="http://tmb2b.oytour.com/"
if (domainNameUrl.indexOf('testerp.oytour') !== -1) {
domainUrl = "http://testapi.oytour.com";
} else if (locationName.indexOf('oytour') !== -1) {
} else if (domainNameUrl.indexOf('oytour') !== -1) {
domainUrl = "http://reborn.oytour.com";
}
var obj = {
......@@ -24,6 +25,14 @@ Vue.prototype.domainManager = function () {
return obj;
}
//获取当前域名
Vue.prototype.GetDomain=function()
{
var domainNameUrl =window.location.hostname;
//domainNameUrl="tmb2b.oytour.com";
return domainNameUrl;
}
//HTTP提交数据
Vue.prototype.apipost = function (cmd, msg, successCall, faildCall) {
if (msg == null || msg == "") {
......
......@@ -199,7 +199,7 @@
if (currenthref.indexOf("#") > -1) {
resultUrl = currenthref.substring(0, currenthref.indexOf('/#/'))+"/#" + newUrl;
} else {
resultUrl = location.hostname;
resultUrl =this.GetDomain();
if (location.port != 80) {
resultUrl += ":" + location.port;
}
......
......@@ -361,23 +361,25 @@
</div>
<div class="branch-company">
<div class="footer-box">
<div class="footer_title1">{{dataList.BranchList[0].Name}}</div>
<table class="footer_table">
<tbody>
<tr>
<td class="footer_tbtitle">地址</td>
<td>{{dataList.BranchList[0].Address}}</td>
</tr>
<tr>
<td class="footer_tbtitle">電話</td>
<td>{{dataList.BranchList[0].Tel}}</td>
</tr>
<tr>
<td class="footer_tbtitle">傳真</td>
<td>{{dataList.BranchList[0].Fax}}</td>
</tr>
</tbody>
</table>
<template v-if="dataList.BranchList&&dataList.BranchList.length>0">
<div class="footer_title1">{{dataList.BranchList[0].Name}}</div>
<table class="footer_table">
<tbody>
<tr>
<td class="footer_tbtitle">地址</td>
<td>{{dataList.BranchList[0].Address}}</td>
</tr>
<tr>
<td class="footer_tbtitle">電話</td>
<td>{{dataList.BranchList[0].Tel}}</td>
</tr>
<tr>
<td class="footer_tbtitle">傳真</td>
<td>{{dataList.BranchList[0].Fax}}</td>
</tr>
</tbody>
</table>
</template>
</div>
</div>
</div>
......@@ -454,7 +456,7 @@
},
methods: {
getShowId() {
let locationName = window.location.hostname;
let locationName = this.GetDomain();
var routeStr = this.$route.path.toLowerCase();
var showId = 0;
switch (routeStr) {
......
......@@ -138,7 +138,7 @@
},
//获取集团数据
getGroupData() {
let locationName = window.location.hostname;
let locationName = this.GetDomain();
var msg = {
GroupId: 0,
B2BDomain: locationName,
......@@ -158,7 +158,7 @@
},
//获取网站配置数据
getConfigData() {
let locationName = window.location.hostname;
let locationName =this.GetDomain();
this.apipost(
"ws_get_GetWebSiteConfig", {
RB_Group_Id: this.RB_Group_Id,
......
......@@ -245,7 +245,7 @@
},
methods: {
getHomeData() {
let locationName = window.location.hostname;
let locationName = this.GetDomain();
var msg = {
RB_Group_Id: this.RB_Group_Id,
B2BDomain: locationName
......
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