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

页面修改

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