Commit 9a6b2d35 by caoyanzhi

update: 重置本地环境接口域名

parent 074e059d
......@@ -11,7 +11,7 @@ module.exports = {
assetsPublicPath: '/marketing/',
proxyTable: {
'/dmApi/': {
target: 'https://hope.demogic.com',
target: 'http://www.gicdev.com',
changeOrigin: true,
pathRewrite: {
'^/dmApi': ''
......
......@@ -60,7 +60,7 @@ export default {
var host = window.location.origin;
// console.log("当前host:",host)
if (host.indexOf('localhost') != '-1') {
that.baseUrl = 'https://hope.demogic.com';
that.baseUrl = 'http://www.gicdev.com';
} else {
that.baseUrl = host;
}
......
......@@ -130,7 +130,7 @@ export default {
created() {
const host = window.location.origin;
this.baseUrl = host.indexOf('localhost') > -1 ? 'https://hope.demogic.com' : host;
this.baseUrl = host.indexOf('localhost') > -1 ? 'http://www.gicdev.com' : host;
},
mounted() {
......
......@@ -69,7 +69,7 @@ export default {
created() {
const host = window.location.origin;
this.baseUrl = host.indexOf('localhost') > -1 ? 'https://hope.demogic.com' : host;
this.baseUrl = host.indexOf('localhost') > -1 ? 'http://www.gicdev.com' : host;
},
methods: {
......
......@@ -7,7 +7,7 @@
<linktools :showType="showType" :linkToolsVisible="linkToolsVisible" @linkSelect="linkSelect"/>
// 直播间
// https://hope.demogic.com/api-plug/list-wx-lives?requestProject=gic-web&type=0
// http://www.gicdev.com/api-plug/list-wx-lives?requestProject=gic-web&type=0
this.axios.get(`${this.baseUrl}/api-plug/list-wx-lives?requestProject=gic-web&type=0`).the()
import Linktools from 'components/linktools/linktools.vue'
......@@ -731,7 +731,7 @@ export default {
this.giftFlag = false;
var that = this
var host = window.location.origin;
this.baseUrl = host.indexOf('localhost') > -1 ? 'https://hope.demogic.com' : host;
this.baseUrl = host.indexOf('localhost') > -1 ? 'http://www.gicdev.com' : host;
},
methods: {
// H5对接文档
......
......@@ -688,7 +688,7 @@ export default {
this.giftFlag = false;
var that = this
var host = window.location.origin;
this.baseUrl = host.indexOf('localhost') != '-1' ? 'https://hope.demogic.com' : host;
this.baseUrl = host.indexOf('localhost') != '-1' ? 'http://www.gicdev.com' : host;
},
methods: {
getMore() {
......
......@@ -601,7 +601,7 @@ export default {
this.giftFlag = false;
var that = this
var host = window.location.origin;
this.baseUrl = host.indexOf('localhost') > -1 ? 'https://hope.demogic.com' : host;
this.baseUrl = host.indexOf('localhost') > -1 ? 'http://www.gicdev.com' : host;
},
methods: {
getMore() {
......
......@@ -355,7 +355,7 @@ export default {
var host = window.location.origin;
console.log('当前host:', host);
if (host.indexOf('localhost') != '-1') {
that.baseUrl = 'https://hope.demogic.com';
that.baseUrl = 'http://www.gicdev.com';
} else {
that.baseUrl = host;
}
......
......@@ -370,7 +370,7 @@ export default {
let host = window.location.origin;
console.log('当前host:', host);
if (host.indexOf('localhost') != '-1') {
that.baseUrl = 'https://hope.demogic.com';
that.baseUrl = 'http://www.gicdev.com';
} else {
that.baseUrl = host;
}
......
......@@ -54,7 +54,7 @@
<script>
/* eslint-disable */
const host = window.location.origin;
export const baseUrl = host.indexOf('localhost') !== -1 ? 'https://hope.demogic.com/' : host;
export const baseUrl = host.indexOf('localhost') !== -1 ? 'http://www.gicdev.com/' : host;
export default {
name: 'vue-gic-member-info',
props: {
......
export default {
// eslint-disable-next-line
api: process.env['NODE_ENV'] === 'development' ? 'https://hope.demogic.com/' : window.location.protocol + '//' + window.location.host + '/' || ''
api: process.env['NODE_ENV'] === 'development' ? 'http://www.gicdev.com/' : window.location.protocol + '//' + window.location.host + '/' || ''
// /dmApi/
// https://hope.demogic.com/
// http://www.gicdev.com/
// http://192.168.1.154:86/
};
......
......@@ -27,5 +27,5 @@ export const removePopupPlan = params => requests(PREFIX + 'remove-popup-plan',
export const stopPopup = params => requests(PREFIX + 'stop-popup', params);
// 投放页面-获取自定义页面
// https://hope.demogic.com/api-admin/list-page
// http://www.gicdev.com/api-admin/list-page
export const customPageList = params => requests(`${config.api}api-admin/list-page`, params);
......@@ -73,7 +73,7 @@
</el-form>
<vue-gic-card appendToBody :showCardDialog.sync="showCardDialog" @selectCard="selectCard" :cardLimit="-1" :cardType="null"></vue-gic-card>
<vue-gic-export-excel :dialogVisible.sync="dialogVisible" :dataArr="[1, 2, 3]" :type="2" :excelUrl="excelUrl" :params="params" :projectName="projectName"></vue-gic-export-excel>
<!-- <form action="https://hope.demogic.com/api-marketing/cdkey-fail-export" target="_blank" enctype="multipart/form-data">
<!-- <form action="http://www.gicdev.com/api-marketing/cdkey-fail-export" target="_blank" enctype="multipart/form-data">
<input type="text" name="requestProject" value="gic-web" />
<input type="file"/>
<button type="submit">submit</button>
......
......@@ -12,7 +12,7 @@ const MINI_TIME = 300;
let TIME_OUT_MAX = 20000;
// 环境value
// 请求接口host
let _apiHost = host.indexOf('localhost') !== -1 ? 'https://hope.demogic.com' : host;
let _apiHost = host.indexOf('localhost') !== -1 ? 'http://www.gicdev.com' : host;
// 请求组(判断当前请求数)
let _requests = [];
......
......@@ -329,7 +329,7 @@ export default {
getHost() {
const host = window.location.origin;
if (host.indexOf('localhost') != '-1') {
return 'https://hope.demogic.com';
return 'http://www.gicdev.com';
} else {
return host;
}
......
......@@ -11,7 +11,7 @@ const MINI_TIME = 300;
let TIME_OUT_MAX = 20000;
// 环境value
// 请求接口host
let _apiHost = host.indexOf('localhost') !== -1 ? 'https://hope.demogic.com' : host;
let _apiHost = host.indexOf('localhost') !== -1 ? 'http://www.gicdev.com' : host;
// 请求组(判断当前请求数)
let _requests = [];
......
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