config.js 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. var params = require('./params.js');
  2. var api_web_url = params.api_web_url;
  3. var up_img_url = params.up_img_url;
  4. const gps_url = params.gps_url;
  5. var map_bms_url = params.map_url;
  6. var config = {
  7. APP_VERSION: '4.1.2024121301',
  8. APP_VERSION_DESC: '优化小程序',
  9. QQ_MAP_KEY: 'Q7DBZ-BQH65-MEMIO-Q7LEF-S43Z3-G6B34',
  10. // 腾讯地图api key
  11. QINIU_SITE: 'https://qiniu.bms16.com/',
  12. // 拉取图片地址
  13. QINIU_UPLOAD_SITE: 'https://up-z2.qiniup.com/',
  14. // 七牛上传地址
  15. API_QINIU_UP_IMG_TOKEN: up_img_url + '?r=qiniu/token-v2',
  16. // 获取上传token
  17. API_GET_OPEN_ID: api_web_url + '?r=user/get-open-id',
  18. API_OPENID_LOGIN: api_web_url + '?r=user/slogin', //opendid一键登录
  19. API_USER_INFO: api_web_url + '?r=user/info',
  20. API_USER_VERIFY_CODE: api_web_url + '?r=user/verify-code',
  21. API_USER_LOGIN_V2: api_web_url + '?r=user/login-v2',
  22. API_USER_LOGIN_ALI: api_web_url + '?r=user/login-ali',
  23. API_OPENID_GET_PHONE: api_web_url + '?r=index/get-phone',
  24. API_CONTRACT_CONTENT: api_web_url + '?r=contract/content', //合同
  25. API_CONTRACT_TITLE: api_web_url + '?r=contract/titles',
  26. API_REPORT_USER_INFO: api_web_url + '?r=user/report-user-info',
  27. // params.map_url
  28. API_MAP_REGEO: map_bms_url + '/geocode/regeo', //地址逆 解析
  29. API_USER_FACE_TOKEN: api_web_url + '?r=user/face-token', // 人脸识别token获取
  30. API_USER_FACE_STATUS: api_web_url + '?r=user/face-status', // 人脸识别状态
  31. API_MODIFY_PHONE: api_web_url + '?r=user/modify-phone', // 修改用户手机号
  32. API_DAYHIRE_CAR_CAR_LIST: api_web_url + '?r=dayhire/car/car-list', //我的车辆列表
  33. API_DAYHIRE_USER_MOST_NEAR_SHOP: api_web_url + '?r=dayhire/user/most-near-shop', // 最近门店信息
  34. API_DAYHIRE_USER_CITY_LIST: api_web_url + '?r=dayhire/user/city-list', // 取车城市列表
  35. // API_SHOP_ADMIN_AREA_TREE: api_web_url + '?r=shop/admin-area-tree', // 省市联动
  36. API_INDEX_GET_ALL_AREA_TREE: api_web_url + '?r=index/get-all-area-tree', //省市联动
  37. API_DAYHIRE_USER_INVESTMENT: api_web_url + '?r=dayhire/user/investment', // 投资规模
  38. API_DAYHIRE_USER_COOPERATE: api_web_url + '?r=dayhire/user/cooperate', // 申请加盟
  39. API_DAYHIRE_CAR_MODEL_INFO: api_web_url + '?r=dayhire/car/model-info', // 车型信息
  40. API_DAYHIRE_HIRE_PREDETERMINE: api_web_url + '?r=dayhire/hire/predetermine', // 预约支付
  41. API_DAYHIRE_HIRE_HIRE: api_web_url + '?r=dayhire/hire/hire', // 扫码下单租车
  42. API_DAYHIRE_HIRE_ORDER_LIST: api_web_url + '?r=dayhire/hire/order-list', // 订单列表
  43. API_DAYHIRE_HIRE_ORDER_INFO: api_web_url + '?r=dayhire/hire/order-info', //订单详情
  44. API_DAYHIRE_HIRE_CANCEL_ORDER: api_web_url + '?r=flk/order/cancel-pay', //取消订单
  45. API_DAYHIRE_HIRE_CONTINUE_PAY: api_web_url + '?r=dayhire/hire/continue-pay', //重新调起支付
  46. API_DAYHIRE_USER_SHOP_MODEL_LIST: api_web_url + '?r=dayhire/user/shop-model-list', //门店列表
  47. API_DAYHIRE_USER_SHOP_INFO: api_web_url + '?r=dayhire/user/shop-info', //门店详情
  48. API_DAYHIRE_REPORT_REPORT_TYPE: api_web_url + '?r=dayhire/report/report-type', //问题反馈列表
  49. API_DAYHIRE_REPORT_REPORT: api_web_url + '?r=flk/index/report', //提交问题反馈
  50. API_DAYHIRE_USER_NEAR_RETURN_SHOP: api_web_url + '?r=dayhire/user/return-shop', //附近可还车门店列表
  51. API_DAYHIRE_CAR_TRACK_INFO: api_web_url + '?r=dayhire/car/track-info', //轨迹信息
  52. API_DAYHIRE_CAR_LOCATION: api_web_url + '?r=dayhire/car/location', //车辆当前位置
  53. API_DAYHIRE_CAR_CAR_INFO: api_web_url + '?r=dayhire/car/car-info', // 车辆详情接口
  54. API_DAYHIRE_CAR_CAR_STATUS: api_web_url + '?r=dayhire/car/car-status', // 车辆状态(精简数据)
  55. API_DAYHIRE_HIRE_RETURN: api_web_url + '?r=dayhire/hire/return', //申请还车
  56. API_ALI_FREEZE: api_web_url + '?r=user/ali-freeze', //去开通免押
  57. API_ALI_FREEZE_STATUS: api_web_url + '?r=user/ali-freeze-status', //查询是否开通免押状态
  58. API_DAYHIRE_HIRE_ACTIVE: api_web_url + '?r=dayhire/hire/active', //激活车辆
  59. API_DAYHIRE_DRAG_CAR_INFO: api_web_url + '?r=dayhire/work-order/drag-car-setting-info', //拖车信息
  60. API_DAYHIRE_DRAG_CAR_SERVICE: api_web_url + '?r=dayhire/work-order/drag-car', //申请拖车服务
  61. API_DAYHIRE_WORK_ORDER_CANCEL_PAY: api_web_url + '?r=dayhire/work-order/cancel-pay', //拖车取消支付
  62. API_DAYHIRE_WORK_ORDER_STATUS: api_web_url + '?r=dayhire/work-order/order-status', //拖车支付状态查询
  63. API_DAYHIRE_HIRE_RENEW: api_web_url + '?r=dayhire/hire/renew', //续租
  64. API_DAYHIRE_CAR_LOCK: api_web_url + '?r=dayhire/car/lock', //锁车
  65. API_INDEX_APP_CONFIG: api_web_url + '?r=index/app-config',
  66. API_CABINET_NEAR_LIST: api_web_url + '?r=dayhire/cabinet/near-list', //附近机柜列表
  67. API_RECHARGE_AMOUNT_LIST: api_web_url + '?r=dayhire/user/recharge-amount-list', //充值列表
  68. API_CABINET_ORDER_LIST: api_web_url + '?r=dayhire/cabinet/order-list', //换电记录
  69. API_CABINET_EXCHANGE_INFO: api_web_url + '?r=dayhire/cabinet/battery-exchange-info', //换电次数
  70. API_DAYHIRE_CABINRT_CABINRT_INFO: api_web_url + '?r=dayhire/cabinet/cabinet-info', //机柜详情
  71. API_DAYHIRE_CABINRT_BATTERY_EXCHANGE_INFO: api_web_url +
  72. '?r=dayhire/cabinet/battery-exchange-info', //剩余换电次数/换电价
  73. API_DAYHIRE_CABINRT_CHANGE_BATTERY: api_web_url + '?r=dayhire/cabinet/change-battery', //机柜换电
  74. API_DAY_HIRE_CABINRT_CHANGE_BATTERY_STATUS: api_web_url + '?r=dayhire/cabinet/change-battery-status', //查询机柜换电状态
  75. API_DAY_HIRE_CABINRT_CANCEL_CABINRT_CHANGE_BATTERY: api_web_url +
  76. '?r=dayhire/cabinet/cancel-cabinet-change-battery', //取消机柜换电支付
  77. API_DAYHIRE_CABINRT_BLUETOOTH_EXCHANGE: api_web_url +
  78. '?r=dayhire/cabinet/bluetooth-exchange', //机柜蓝牙换电
  79. //上报机柜日志
  80. API_CABINET_BLUETOOTH_LOG: api_web_url + '?r=cabinet/bl-up',
  81. API_CABINET_BLUETOOTH_INFO: api_web_url + '?r=cabinet/bluetooth-report',
  82. API_CABINET_BLUETOOTH_HIRE: api_web_url + '?r=cabinet/bluetooth-hire-success',
  83. API_CABINET_BLUETOOTH_EXCHANGE: api_web_url + '?r=cabinet/bluetooth-exchange',
  84. API_CABINET_BLUETOOTH_RETURN: api_web_url + '?r=cabinet/bluetooth-return',
  85. API_CABINET_BLUETOOTH_EXCHANGE_SUCCESS: api_web_url + '?r=dayhire/cabinet/bluetooth-exchange-success',
  86. API_CABINET_BLUETOOTH_RETURN_SUCCESS: api_web_url + '?r=cabinet/bluetooth-return-success',
  87. //发送指令
  88. API_CAR_SEND_COMMAND: api_web_url + '?r=dayhire/car/send-car-command',
  89. // 登录
  90. API_LOGIN: api_web_url + '?r=flk/account/login',
  91. // 注册
  92. API_REGISTER_EMAIL: api_web_url + '?r=flk/account/register-email',
  93. // 找回密码
  94. API_RESET_PASSWORD: api_web_url + '?r=flk/account/reset-password',
  95. // 消息列表
  96. API_MESSAGE_LIST: api_web_url + '?r=flk/message/list',
  97. // 消息详情
  98. API_MESSAGE_DTL: api_web_url + '?r=flk/message/info',
  99. // 设备消息
  100. API_DEVICE_MSG: api_web_url + '?r=flk/message/device-list',
  101. //首页-推荐车型列表
  102. API_RECOMMEND_CAR_MODEL_LIST: api_web_url + '?r=flk/index/recommend-car-model-list',
  103. //首页-推荐车型详情
  104. API_FLK_INDEX_CAR_MODEL_DETAIL: api_web_url + '?r=flk/index/car-model-detail',
  105. //附近门店列表
  106. API_NEAR_SHOP_LIST: api_web_url + '?r=flk/net-shop/near-shop-list',
  107. //附近机柜列表
  108. API_NEAR_CABINET_LIST: api_web_url + '?r=flk/net-shop/near-box-list',
  109. //电池类型列表
  110. API_NEAR_BATTERY_TYPE_LIST: api_web_url + '?r=flk/net-shop/battery-type-list',
  111. //门店详情
  112. API_NEAR_SHOP_INFO: api_web_url + '?r=flk/net-shop/shop-info',
  113. //机柜详情
  114. API_NEAR_SHOP_CABINET_INFO: api_web_url + '?r=flk/net-shop/cabinet-info',
  115. //车型租赁下单
  116. API_FLK_ORDER_HIRE_MODEL: api_web_url + '?r=flk/order/hire-model',
  117. //车型取消下单
  118. API_FLK_ORDER_CANCEL_HIRE: api_web_url + '?r=flk/order/cancel-hire',
  119. //续租
  120. API_FLK_ORDER_RENEW: api_web_url + '?r=flk/order/renew',
  121. //用户车辆列表
  122. API_FLK_CAR_DEVICE_LIST: api_web_url + '?r=flk/car/device-list',
  123. //车辆详情
  124. API_FLK_CAR_DETAIL: api_web_url + '?r=flk/car/car-detail',
  125. //激活车辆(绑定设备)
  126. API_FLK_CAR_ASSIGNMENT: api_web_url + '?r=flk/car/assignment',
  127. //解绑车辆
  128. API_FLK_CAR_UNBIND_CAR: api_web_url + '?r=flk/car/unbind-car',
  129. //车辆开关
  130. API_FLK_CAR_SWITCH: api_web_url + '?r=flk/car/switch',
  131. //订单列表
  132. API_FLK_ORDER_LIST: api_web_url + '?r=flk/order/list',
  133. //套餐列表
  134. API_FLK_EXCHANGE_PACKAGE_LIST: api_web_url + '?r=flk/exchange-package/package-list',
  135. //购买套餐
  136. API_FLK_EXCHANGE_PACKAGE_PAY: api_web_url + '?r=flk/exchange-package/pay',
  137. //购买套餐
  138. API_FLK_EXCHANGE_PACKAGE_ORDER_LIST: api_web_url + '?r=flk/exchange-package/order-list',
  139. //机柜换电
  140. API_FLK_CABINET_CHANGE_BATTERY: api_web_url + '?r=flk/cabinet/change-battery',
  141. //订单详情
  142. API_FLK_ORDER_INFO: api_web_url + '?r=flk/order/info',
  143. //申请还车
  144. API_FLK_CAR_RETURN_CAR: api_web_url + '?r=flk/car/return-car',
  145. //添加用车人
  146. API_FLK_ADD_SHARE_USER: api_web_url + '?r=flk/car/add-share-user',
  147. //删除用车人
  148. API_FLK_REMOVE_SHARE_USER: api_web_url + '?r=flk/car/remove-share-user',
  149. //中控
  150. API_FLK_CAR_REMOTE_CONTROL: api_web_url + '?r=flk/car/remote-control',
  151. //
  152. //消息换成已读
  153. API_MESSAGE_READ_MESSAGE: api_web_url + '?r=flk/message/read-message',
  154. };
  155. module.exports = config;