1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- const node_dev = process.env.H_NODE_ENV;
- let baseUrl = null
- let linkUrl = null
- let upFileUrl= null
- let staticUrl= null
- let redirectUri = null
- baseUrl='https://greath5.dev.dazesoft.cn/serviceapi';
- linkUrl='';
- upFileUrl='';
- staticUrl='';
- redirectUri= 'https://h5.wdzzgs.com/distribution/pages/login/index'
- baseUrl='/api';
- linkUrl='https://greath5.dev.dazesoft.cn/distributionlink/link.html';
- upFileUrl='';
- staticUrl='https://greath5.dev.dazesoft.cn/distribution/static/';
- redirectUri= 'https://greath5.dev.dazesoft.cn/distribution/pages/login/index'
- if (node_dev =='development') {
-
- baseUrl='';
- linkUrl='';
- upFileUrl='';
- staticUrl='';
-
-
- baseUrl='https://greath5.dev.dazesoft.cn/serviceapi';
- linkUrl='https://greath5.dev.dazesoft.cn/distributionlink/link.html';
- upFileUrl='h';
- staticUrl='https://greath5.dev.dazesoft.cn/distribution/static/';
- redirectUri= 'https://greath5.dev.dazesoft.cn/distribution/pages/login/index'
-
- }
- if (node_dev =='production') {
-
- baseUrl='';
- linkUrl='';
- upFileUrl='';
- staticUrl='';
- redirectUri= 'https://h5.wdzzgs.com/distribution/pages/login/index'
-
-
- 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'
-
- }
- const commonConfig = {
- wxAppid: '',
- appid: 'wx6490eaa0d20d2be2',
- redirectUri: encodeURIComponent(redirectUri),
- baseUrl: baseUrl,
- linkUrl: linkUrl,
- uploadFileUrl: upFileUrl,
- staticUrl:staticUrl,
- paginationConfig:{
- pageNum: 1,
- pageSize: 10
- },
- successCode:200,
- }
- export {
- commonConfig
- }
|