You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
972 B
44 lines
972 B
if (process.env.NODE_ENV === 'development') {
|
|
// #ifdef H5
|
|
var baseUrl = ''
|
|
// #endif
|
|
// #ifdef MP
|
|
var baseUrl = 'http://192.168.1.3:8000/index.php'
|
|
// #endif
|
|
// #ifdef APP
|
|
var baseUrl = 'http://192.168.1.3:8000/index.php'
|
|
// #endif
|
|
} else if (process.env.NODE_ENV === 'production') {
|
|
// #ifdef H5
|
|
var baseUrl = '/index.php'
|
|
// #endif
|
|
// #ifdef MP
|
|
var baseUrl = 'https://yx.wlksh.com/index.php'
|
|
// #endif
|
|
// #ifdef APP
|
|
var baseUrl = 'https://yx.wlksh.com/index.php'
|
|
// #endif
|
|
}
|
|
|
|
var config = {
|
|
imgDomain: '',
|
|
|
|
imgUrl: 'http://file.v3.admin.act315.com/wxapp/',
|
|
|
|
baseUrl: baseUrl + '/',
|
|
// 经销商请求地址
|
|
baseDealerUrl: baseUrl + '/dealer/',
|
|
// 工程师请求地址
|
|
baseEngineerUrl: baseUrl + '/engineer/',
|
|
// 版本号
|
|
version: '1.0.0',
|
|
// pda请求地址
|
|
basePdaUrl: baseUrl + '/pda/',
|
|
// api请求地址
|
|
baseApiUrl: baseUrl + '/api/',
|
|
// salesman请求地址
|
|
baseSalesmanUrl: baseUrl + '/salesman/',
|
|
|
|
};
|
|
|
|
export default config; |