Commit 8511e4c9 authored by 黄奎's avatar 黄奎

页面修改

parent 94685836
...@@ -12,6 +12,7 @@ export default { ...@@ -12,6 +12,7 @@ export default {
//域名管理对象 //域名管理对象
Vue.prototype.domainManager = function () { Vue.prototype.domainManager = function () {
let domainUrl = "http://testapi.oytour.com" let domainUrl = "http://testapi.oytour.com"
domainUrl="http://127.0.0.1"
let locationName = window.location.hostname; let locationName = window.location.hostname;
if (this.isOnline()) { if (this.isOnline()) {
if (window.location.host.indexOf('testb2b.oytour.com') != -1) if (window.location.host.indexOf('testb2b.oytour.com') != -1)
...@@ -179,7 +180,8 @@ export default { ...@@ -179,7 +180,8 @@ export default {
"sign": md5Str "sign": md5Str
} }
if (localStorage.g && localStorage.g != 'undefined') { if (localStorage.g && localStorage.g != 'undefined') {
postData.groupId = 2; var groupJson= JSON.parse(localStorage.g);
postData.groupId = groupJson.i;
} }
this.$http.post(apiurl, postData, { this.$http.post(apiurl, postData, {
headers: { headers: {
...@@ -222,7 +224,8 @@ export default { ...@@ -222,7 +224,8 @@ export default {
"sign": md5Str "sign": md5Str
} }
if (localStorage.g && localStorage.g != 'undefined') { if (localStorage.g && localStorage.g != 'undefined') {
postData.groupId = 2; var groupJson= JSON.parse(localStorage.g);
postData.groupId = groupJson.i;
} }
this.$http.post(apiurl, postData, { this.$http.post(apiurl, postData, {
headers: { headers: {
......
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