app.js 643 B

1234567891011121314151617181920212223242526272829303132333435
  1. // 开发者环境:开|关 【注:方便微信小程序发行测试】
  2. const SWITCH_DEVELOPMENT = false
  3. /** S 是否H5端 **/
  4. // #ifdef H5
  5. const IS_H5 = true
  6. // #endif
  7. // #ifndef H5
  8. const IS_H5 = false
  9. // #endif
  10. /** E 是否H5端 **/
  11. /** S API BaseURL **/
  12. const baseURLMap = {
  13. development: 'https://rencai.jiangzi.xin',
  14. production: IS_H5 ? location.origin : 'https://rencai.jiangzi.xin',
  15. }
  16. const baseURL = SWITCH_DEVELOPMENT ? baseURLMap['development'] : baseURLMap[process.env.NODE_ENV]
  17. /** E API BaseURL **/
  18. module.exports = {
  19. version: '1.0.0803.1334', // 版本号
  20. baseURL, // API Base URL
  21. basePath: '/mobile'
  22. }