|
@@ -11,16 +11,39 @@
|
|
|
// upFileUrl = process.env.H_UP_FILE_URL
|
|
|
// }
|
|
|
|
|
|
+/**
|
|
|
+ * 后端环境配置
|
|
|
+ */
|
|
|
+let baseUrl = null // 后端服务接口
|
|
|
+let upFileUrl= null // 后端上传接口
|
|
|
+let staticUrl= null // 静态文件地址
|
|
|
//64
|
|
|
-let baseUrl='https://greath5.dev.gztjy.top/serviceapi';
|
|
|
-let upFileUrl='http://fileupload.hw.hongweisoft.com/upload/single/minio';
|
|
|
-// let staticUrl='http://res.hw.hongweisoft.com/xushuo/';
|
|
|
-let staticUrl='https://miniores.hw.hongweisoft.com/greattransition/staticfile';
|
|
|
+// #ifdef MP
|
|
|
+ baseUrl='https://greatadmin.dev.gztjy.top/serviceapi';
|
|
|
+ upFileUrl='http://fileupload.hw.hongweisoft.com/upload/single/minio';
|
|
|
+ // staticUrl='http://res.hw.hongweisoft.com/xushuo/';
|
|
|
+ staticUrl='https://miniores.hw.hongweisoft.com/greattransition/staticfile';
|
|
|
+// #endif
|
|
|
+// #ifdef H5
|
|
|
+ baseUrl='https://greath5.dev.gztjy.top/serviceapi';
|
|
|
+ upFileUrl='http://fileupload.hw.hongweisoft.com/upload/single/minio';
|
|
|
+ // staticUrl='http://res.hw.hongweisoft.com/xushuo/';
|
|
|
+ staticUrl='https://miniores.hw.hongweisoft.com/greattransition/staticfile';
|
|
|
+// #endif
|
|
|
|
|
|
//正式
|
|
|
-// let baseUrl='https://xusapi.gzxsjt.cn/appapi/app';
|
|
|
-// let upFileUrl='https://xusapi.gzxsjt.cn/thirdapi/upload/single/minio';
|
|
|
-// let staticUrl='https://xusapi.gzxsjt.cn/miniores/imgs/app';
|
|
|
+// #ifdef MP
|
|
|
+ // baseUrl='https://xusapi.gzxsjt.cn/appapi/app';
|
|
|
+ // upFileUrl='https://xusapi.gzxsjt.cn/thirdapi/upload/single/minio';
|
|
|
+ // staticUrl='https://xusapi.gzxsjt.cn/miniores/imgs/app';
|
|
|
+// #endif
|
|
|
+// #ifdef H5
|
|
|
+ // baseUrl='https://xusapi.gzxsjt.cn/appapi/app';
|
|
|
+ // upFileUrl='https://xusapi.gzxsjt.cn/thirdapi/upload/single/minio';
|
|
|
+ // staticUrl='https://xusapi.gzxsjt.cn/miniores/imgs/app';
|
|
|
+// #endif
|
|
|
+
|
|
|
+
|
|
|
|
|
|
const commonConfig = {
|
|
|
wxAppid: '', // 测试wxAppid
|