global.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. let global = {}
  2. // const application='prod'
  3. const application='dev'
  4. // const application='test'
  5. if (application == 'prod') {
  6. //正式环境
  7. global.baseUrl = 'https://ldt.guosen-fumao.cn/api/'
  8. global.WebSocketUrl='wss://ldt.guosen-fumao.cn/websocket/'
  9. global.enabledCrypto = true
  10. }else if (application == 'dev') {
  11. //开发环境
  12. global.baseUrl = 'http://192.168.1.168:2366/'
  13. global.WebSocketUrl = 'ws://192.168.1.168:2366/websocket/'
  14. global.enabledCrypto = true
  15. }else if (application == 'test') {
  16. //测试环境
  17. global.baseUrl = 'http://139.159.240.119:2366/'
  18. global.WebSocketUrl = 'ws://139.159.240.119:2366/websocket/'
  19. global.enabledCrypto = true
  20. }
  21. global.tokenUrl = global.baseUrl +
  22. 'blade-auth/oauth/token?tenantId=000000&password=21232f297a57a5a743894a0e4a801fc3&username=admin'
  23. global.socket_prefix = 'USER:'
  24. global.socket_prefix_SHOP = 'SHOP:'
  25. global.cart_prefix = 'cart:'
  26. global.platform = {
  27. SHOP: "SHOP",
  28. MALL: "MALL"
  29. }
  30. global.userType = {
  31. USER: "普通用户",
  32. CHANNEL: "渠道代理",
  33. CITY: "城市代理",
  34. SHOP: "商户",
  35. MALL: "商场",
  36. }
  37. // global.agenterTypeId='1423464045809364994'
  38. global.agenterTypeId = 'agent_channel_setting'
  39. global.paymentScene = {
  40. SCAN_CODE: 'SCAN_CODE',
  41. TRANSFER: 'TRANSFER',
  42. PAY_CODE: 'PAY_CODE',
  43. MINI_PROGRAM: 'MINI_PROGRAM'
  44. }
  45. global.paymentType = {
  46. YEE_PAY: "YEE_PAY"
  47. }
  48. global.orderType = {
  49. USER_PAY: 'USER_PAY',
  50. AGENT_CHARGE: 'AGENT_CHARGE',
  51. MALL_CHARGE: 'MALL_CHARGE'
  52. }
  53. global.takeType = {
  54. dine_in: '店内堂食',
  55. package: '到店自取',
  56. delivery: '商家配送'
  57. }
  58. global.takeTypeList = ['店内堂食', '到店自取', '商家配送']
  59. global.mustOrder = '必选'
  60. global.payStatus = {
  61. IS_WAIT: '待付款',
  62. IS_PAY: '付款成功',
  63. IS_CANCEL: '取消付款'
  64. }
  65. global.wxParams = {
  66. APPID: 'wx9ad53e8c83ae1a51'
  67. }
  68. global.TRANSFORM_PARAMS = '95963'
  69. export default global