|
@@ -4,18 +4,21 @@
|
|
|
const node_dev = process.env.H_NODE_ENV;
|
|
|
// //运行到浏览器用的
|
|
|
let baseUrl = null // 后端服务接口
|
|
|
+let linkUrl = null // 链接
|
|
|
let upFileUrl= null // 后端上传接口
|
|
|
let staticUrl= null // 静态文件地址
|
|
|
let redirectUri = null
|
|
|
// 本地
|
|
|
// #ifdef MP
|
|
|
baseUrl='https://greath5.dev.gztjy.top/serviceapi';
|
|
|
+ linkUrl='';
|
|
|
upFileUrl='';
|
|
|
staticUrl='';
|
|
|
redirectUri= 'https://h5.wdzzgs.com/distribution/pages/login/index'
|
|
|
// #endif
|
|
|
// #ifdef H5
|
|
|
baseUrl='/api';
|
|
|
+ linkUrl='https://greath5.dev.gztjy.top/distributionlink/link.html';
|
|
|
upFileUrl='';
|
|
|
staticUrl='https://greath5.dev.gztjy.top/distribution/static/';
|
|
|
redirectUri= 'https://greath5.dev.gztjy.top/distribution/pages/login/index'
|
|
@@ -25,11 +28,13 @@ let redirectUri = null
|
|
|
if (node_dev =='development') { // 分销测试
|
|
|
// #ifdef MP
|
|
|
baseUrl='';
|
|
|
+ linkUrl='';
|
|
|
upFileUrl='';
|
|
|
staticUrl='';
|
|
|
// #endif
|
|
|
// #ifdef H5
|
|
|
baseUrl='https://greath5.dev.gztjy.top/serviceapi';
|
|
|
+ linkUrl='https://greath5.dev.gztjy.top/distributionlink/link.html';
|
|
|
upFileUrl='h';
|
|
|
staticUrl='https://greath5.dev.gztjy.top/distribution/static/';
|
|
|
redirectUri= 'https://greath5.dev.gztjy.top/distribution/pages/login/index'
|
|
@@ -38,12 +43,14 @@ if (node_dev =='development') { // 分销测试
|
|
|
if (node_dev =='production') { // 分销正式
|
|
|
// #ifdef MP
|
|
|
baseUrl='';
|
|
|
+ linkUrl='';
|
|
|
upFileUrl='';
|
|
|
staticUrl='';
|
|
|
redirectUri= 'https://h5.wdzzgs.com/distribution/pages/login/index'
|
|
|
// #endif
|
|
|
// #ifdef H5
|
|
|
baseUrl='https://h5.wdzzgs.com/serviceapi';
|
|
|
+ linkUrl='https://h5.wdzzgs.com/distributionlink/link.html'
|
|
|
upFileUrl='';
|
|
|
staticUrl='https://h5.wdzzgs.com/distribution/static/';
|
|
|
redirectUri= 'https://h5.wdzzgs.com/distribution/pages/login/index'
|
|
@@ -56,6 +63,7 @@ const commonConfig = {
|
|
|
appid: 'wx6490eaa0d20d2be2', // 公众号
|
|
|
redirectUri: encodeURIComponent(redirectUri), //
|
|
|
baseUrl: baseUrl, // 服务器地址
|
|
|
+ linkUrl: linkUrl,
|
|
|
uploadFileUrl: upFileUrl, // 上传文件路径
|
|
|
staticUrl:staticUrl,
|
|
|
paginationConfig:{
|