Commit cd5cd61d by 曾经

域名 全局更换

parent 0bd3c522
......@@ -42,7 +42,7 @@
(function() {
var src = '/component/static/import-component.js?timestrap='+ new Date().getTime();
var host = window.location.host;
host = host.indexOf('localhost') > -1 || host.indexOf('192.168') > -1 ? 'gicdev.demogic.com' : host;
host = host.indexOf('localhost') > -1 || host.indexOf('192.168') > -1 ? 'www.gicdev.com' : host;
document.write('<script src="//'+ host + src +'"><\/script>')
})()
</script>
......
......@@ -17,7 +17,7 @@ export default {
},
created() {
this.baseUrl = window.location.origin.indexOf('localhost') > -1 ? 'http://gicdev.demogic.com' : window.location.origin;
this.baseUrl = window.location.origin.indexOf('localhost') > -1 ? 'http://www.gicdev.com' : window.location.origin;
this._getUserInfo();
this.changeTab();
this.isEditClique();
......
......@@ -5,9 +5,9 @@ import router from '../router';
// axios 配置
// axios.defaults.timeout = 5000;
// let adminUrl = 'http://gicdev.demogic.com'
// let adminUrl = 'http://www.gicdev.com'
// let adminUrl = process.env.NODE_ENV === 'production' ? '':'http://111.231.99.90:8880/app/mock/19'
let adminUrl = process.env.NODE_ENV === 'production' ? '' : 'http://gicdev.demogic.com';
let adminUrl = process.env.NODE_ENV === 'production' ? '' : 'http://www.gicdev.com';
let request;
request = axios.create({
baseURL: adminUrl,
......
......@@ -55,7 +55,7 @@ export default {
created() {
this.baseURL = window.location.origin.indexOf("host") > -1
? window.location.origin
: "http:gicdev.demogic.com";
: "http:www.gicdev.com";
this.getStoreId();
},
methods: {
......
const host = window.location.origin;
const baseUrl = host.indexOf('localhost') > -1 ? 'http://gicdev.demogic.com' : host;
const baseUrl = host.indexOf('localhost') > -1 ? 'http://www.gicdev.com' : host;
const urlConfig = {
updateBabyInfo: '/api-member/update-member-baby-info',// 更新宝宝信息
......
......@@ -1019,12 +1019,12 @@ export default {
},
// premodefiySubStoreId
promiseAll() {
// http://gicdev.demogic.com/api-member/find-member-fields?requestProject=member
// http://gicdev.demogic.com/api-member/enterprise-info?requestProject=member
// http://www.gicdev.com/api-member/find-member-fields?requestProject=member
// http://www.gicdev.com/api-member/enterprise-info?requestProject=member
let urls = [
'http://gicdev.demogic.com/api-member/find-member-fields?requestProject=member',
'http://gicdev.demogic.com/api-member/enterprise-info?requestProject=member'
'http://www.gicdev.com/api-member/find-member-fields?requestProject=member',
'http://www.gicdev.com/api-member/enterprise-info?requestProject=member'
];
let requests = urls.map(url => fetch(url));
......
const host = window.location.origin;
export const baseUrl = host.indexOf('localhost') > -1 ? 'http://gicdev.demogic.com' : host;
export const baseUrl = host.indexOf('localhost') > -1 ? 'http://www.gicdev.com' : host;
export const ERR_OK = 0;
......@@ -2,7 +2,7 @@ import axios from 'axios';
import QS from 'qs';
import { Message } from 'element-ui';
axios.defaults.baseURL = window.location.origin.indexOf('localhost') > -1 ? 'http://gicdev.demogic.com' : window.location.origin;
axios.defaults.baseURL = window.location.origin.indexOf('localhost') > -1 ? 'http://www.gicdev.com' : window.location.origin;
axios.defaults.timeout = 10000;
axios.defaults.headers.post['Content-Type'] = 'appliaction/x-www-form-urlencoded;charset=UTF-8';
......
......@@ -128,7 +128,7 @@ export default {
created() {
const host = window.location.origin;
this.baseUrl = host.indexOf("localhost") > -1 ? 'http://gicdev.demogic.com' : host;
this.baseUrl = host.indexOf("localhost") > -1 ? 'http://www.gicdev.com' : host;
},
mounted() {
......
......@@ -86,7 +86,7 @@ export default {
created() {
const host = window.location.origin;
this.baseUrl = host.indexOf("localhost") > -1 ? 'http://gicdev.demogic.com' : host;
this.baseUrl = host.indexOf("localhost") > -1 ? 'http://www.gicdev.com' : host;
},
methods: {
......
const host = window.location.origin;
export const baseUrl = host.('localhost') ? 'http://gicdev.demogic.com' : host;
export const baseUrl = host.('localhost') ? 'http://www.gicdev.com' : host;
......@@ -591,7 +591,7 @@ export default {
this.giftFlag = false;
var that = this
var host = window.location.origin;
this.baseUrl = host.indexOf('localhost') > -1 ? 'http://gicdev.demogic.com' : host;
this.baseUrl = host.indexOf('localhost') > -1 ? 'http://www.gicdev.com' : host;
},
methods: {
changeVisible() {
......
......@@ -124,7 +124,7 @@ export default {
searchOption() {
if (this.form.loginName) {
this.axios
.get("http://gicdev.demogic.com/api-auth/list-login-enterprise", {
.get("http://www.gicdev.com/api-auth/list-login-enterprise", {
params: {
loginName: this.form.loginName
}
......@@ -157,7 +157,7 @@ export default {
if (this.eid) {
this.axios
.post(
"http://gicdev.demogic.com/api-auth/do-login",
"http://www.gicdev.com/api-auth/do-login",
qs.stringify({
loginName: this.form.loginName,
password: this.form.password,
......@@ -189,7 +189,7 @@ export default {
}
} else {
this.axios
.get("http://gicdev.demogic.com/api-auth/list-login-enterprise", {
.get("http://www.gicdev.com/api-auth/list-login-enterprise", {
params: {
loginName: this.form.loginName
}
......
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