app.js 956 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. module.exports = {
  2. // 小程序配置
  3. // #ifdef MP || APP-PLUS
  4. // 请求域名 格式: https://您的域名
  5. HTTP_REQUEST_URL: `http://ykt.ns.liuniu946.com`,
  6. // #endif
  7. // H5配置
  8. // #ifdef H5
  9. //H5接口是浏览器地址,非单独部署不用修改
  10. // HTTP_REQUEST_URL: window.location.protocol + "//" + window.location.host,
  11. HTTP_REQUEST_URL:"http://ykt.ns.liuniu946.com",
  12. // #endif
  13. // 后台版本号
  14. SYSTEM_VERSION: 520,
  15. // 以下配置在不做二开的前提下,不需要做任何的修改
  16. HEADER: {
  17. 'content-type': 'application/json',
  18. //#ifdef H5
  19. 'Form-type': navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1 ? 'wechat' : 'h5',
  20. //#endif
  21. //#ifdef MP
  22. 'Form-type': 'routine',
  23. //#endif
  24. //#ifdef APP-VUE
  25. 'Form-type': 'app',
  26. //#endif
  27. },
  28. // 回话密钥名称 请勿修改此配置
  29. TOKENNAME: 'Authori-zation',
  30. // 缓存时间 0 永久
  31. EXPIRE: 0,
  32. //分页最多显示条数
  33. LIMIT: 10
  34. }