config_gyq.js 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. var params = require('./params.js');
  2. var storage = require('./storage.js');
  3. var api_web_url = params.api_web_url;
  4. var up_img_url = params.up_img_url;
  5. const gps_url = params.gps_url;
  6. var map_bms_url = params.map_url;
  7. var config = {
  8. APP_VERSION: '4.1.2024121301',
  9. APP_VERSION_DESC: '优化小程序',
  10. QQ_MAP_KEY: 'Q7DBZ-BQH65-MEMIO-Q7LEF-S43Z3-G6B34',
  11. // 腾讯地图api key
  12. QINIU_SITE: 'https://qiniu.bms16.com/',
  13. // 拉取图片地址
  14. QINIU_UPLOAD_SITE: 'https://up-z2.qiniup.com/',
  15. // 七牛上传地址
  16. API_QINIU_UP_IMG_TOKEN: up_img_url + '?r=qiniu/token-v2',
  17. // 获取上传token
  18. API_GET_OPEN_ID: api_web_url + '?r=user/get-open-id',
  19. API_OPENID_LOGIN: api_web_url + '?r=user/slogin', //opendid一键登录
  20. API_CABINET_INFO: api_web_url + '?r=flk/cabinet/info',
  21. API_CAR_DEVICE_LIST: api_web_url + '?r=flk/car/device-list',
  22. // 机柜换电
  23. API_FLK_CABINET_CHANGE_BATTERY: api_web_url +'?r=flk/cabinet/exchange-battery',
  24. //套餐列表
  25. API_FLK_EXCHANGE_PACKAGE_PACKAGE_LIST: api_web_url +'?r=flk/exchange-package/package-list',
  26. //套餐购买
  27. API_FLK_EXCHANGE_PACKAGE_PAY: api_web_url +'?r=flk/exchange-package/pay',
  28. // 套餐购买订单列表
  29. API_FLK_EXCHANGE_PACKAGE_ORDER_LIST: api_web_url +'?r=flk/exchange-package/order-list',
  30. // 车辆共享列表
  31. API_FLK_CAR_SHARE_LIST: api_web_url +'?r=flk/car/share-list',
  32. //检查邮箱是否存在
  33. API_ACCOUNT_CHECK_SHARE_ACCOUNT_EXIST: api_web_url +'?r=flk/account/check-account-exist',
  34. //添加用车人
  35. API_FLK_CAR_ADD_SHARE_USER: api_web_url +'?r=flk/car/add-share-user',
  36. //删除用车人
  37. API_FLK_CAR_REMOVE_SHARE_USER: api_web_url +'?r=flk/car/remove-share-user',
  38. //修改用车人权限:
  39. API_FLK_CAR_EDIT_SHARE_USER: api_web_url +'?r=flk/car/edit-share-user',
  40. //共享用车人详情
  41. API_FLK_CAR_EDIT_SHARE_INFO: api_web_url +'?r=flk/car/share-info',
  42. //修改用户昵称、头像
  43. API_USER_MODIFY_USER_INFO: api_web_url +'?r=user/modify-user-info',
  44. //用户信息,
  45. API_USER_INFO: api_web_url +'?r=user/info',
  46. //机柜换电状态查询: ,
  47. API_FLK_CABINET_EXCHANGE_STATUS: api_web_url +'?r=flk/cabinet/exchange-status',
  48. //附近机柜列表: flk/cabinet/near-list
  49. API_FLK_CABINET_NEAR_LIST: api_web_url +'?r=flk/cabinet/near-list',
  50. //忘记密码
  51. API_FLK_CABINET_RESET_PASSWORD: api_web_url +'?r=flk/account/reset-password',
  52. //取消订单
  53. API_FLK_ORDER_CANCEL_PAY: api_web_url +'?r=flk/order/cancel-pay',
  54. //激活车辆(绑定设备):
  55. API_CAR_ASSIGNMENT: api_web_url +'?r=flk/car/assignment',
  56. //门店设置:
  57. API_FLK_INDEX_SHOP_SETTING: api_web_url +'?r=flk/index/shop-setting',
  58. //申请还车: :
  59. API_FLK_CAR_RETURN_CAR: api_web_url +'?r=flk/car/return-car',
  60. //换电记录:
  61. API_FLK_CABINET_EXCHANGE_ORDER: api_web_url +'?r=flk/cabinet/exchange-order',
  62. //续租:
  63. API_FLK_ORDER_RENEW: api_web_url +'?r=flk/order/renew',
  64. //车辆仪表盘
  65. API_FLK_CAR_DASHBOARD: api_web_url +'?r=flk/car/dashboard',
  66. //购买下单
  67. API_FLK_ORDER_RESERVE: api_web_url +'?r=flk/order/reserve',
  68. //获取逾期金额:
  69. API_FLK_CAR_OVERDUE_MONEY: api_web_url +'?r=flk/car/overdue-money',
  70. API_DEVICE_TRACK: `http://bmsapi.dev.bms16.com/device/track?token=${storage.getUserToken()}`,
  71. //未读数量
  72. API_FLK_MESSAGE_UNREAD_COUNT: api_web_url +'?r=flk/message/get-unread-count',
  73. // 行驶轨迹
  74. API_CAR_TRACK_INFO: api_web_url +'?r=flk/car/track-info',
  75. };
  76. module.exports = config;