Commit 9a6b2d35 by caoyanzhi

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

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