C端小程序
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

126 行
2.5 KiB

  1. var config = {
  2. name: "富茂",
  3. //url: "https://ciformall.youlane.cn/C/api",
  4. url: "http://89e4b9c3.ngrok.io/C/api",
  5. api: {
  6. /**
  7. * 接口用途:login
  8. */
  9. login: '/user/login',
  10. /**
  11. * 授权后获取用户的昵称,unionId等信息
  12. */
  13. getUserInfo: '/user/getUserInfo',
  14. /**
  15. * 接口用途:授权后获取用户的手机号
  16. */
  17. getUserPhone: '/user/getUserPhone',
  18. /**
  19. * 检查用户授权状态
  20. */
  21. checkUserStatus: '/user/checkUserStatus',
  22. /**
  23. * 检查用户手机授权状态
  24. */
  25. checkPhoneStatus: '/user/checkPhoneStatus',
  26. /**
  27. * 优惠券查询
  28. */
  29. couponList: '/wxCoupon/list',
  30. /**
  31. * 优惠券详情
  32. */
  33. couponDetail: '/wxCoupon/findById',
  34. /**
  35. * 业态查询
  36. */
  37. businessList: '/wxBusiness/list', // TODO
  38. /**
  39. * 频道查询
  40. */
  41. couponChannelList: '/wxCouponChannel/list',
  42. /**
  43. * 下订单
  44. */
  45. orderSave: '/order/save',
  46. /**
  47. * 支付订单
  48. */
  49. payOrderCreate: '/pay/create',
  50. /**
  51. * 订单状态更新
  52. */
  53. payOrderUpdate: '/pay/updatePayOrder',
  54. /**
  55. * 订单列表
  56. */
  57. orderList: '/order/list',
  58. /**
  59. * 券包
  60. */
  61. couponOrderList: '/couponOrder/list',
  62. /**
  63. * 券包详情
  64. */
  65. couponOrderDetail: '/couponOrder/detail', /// TODO
  66. /**
  67. * 验证码发送
  68. */
  69. sendValidationCode: '/wxMsgValidationcode/sendvalidationcode',
  70. /**
  71. * 验证码确认
  72. */
  73. validationCode: '/wxMsgValidationcode/hasvalidationcode',
  74. /**
  75. * 车场信息获取
  76. */
  77. getParkInfo: '/wxPark/info',
  78. /**
  79. * 用户所绑车牌获取
  80. */
  81. userCarCount: '/user/carCount',
  82. /**
  83. * 用户所绑车牌获取
  84. */
  85. getUserCarList: '/user/carList',
  86. /**
  87. * 联合登录
  88. */
  89. carInit: '/car/init',
  90. /**
  91. * 绑车牌
  92. */
  93. bindCarNum: '/car/bindCar',
  94. /**
  95. * 解绑车牌
  96. */
  97. unbindCar: '/car/unbindCar',
  98. /**
  99. * 停车费
  100. */
  101. getCarStopFee: '/car/getCarStopFee',
  102. /**
  103. * 停车费抵扣 (TJD)
  104. */
  105. deductionFee: '/car/deductionFee',
  106. /**
  107. * 优免券领取
  108. */
  109. getCoupon: '/car/getCoupon',
  110. },
  111. weapp: {
  112. AppId: 'wx8eb8275b78db4ede',
  113. },
  114. ErrorCode: {
  115. NICK_NOT_AUTH: 11004,
  116. PHONE_NOT_AUTH: 11005,
  117. PHONE_IS_ENCRYPTED: 11006,
  118. },
  119. };
  120. /*
  121. for (var key in config.api) {
  122. config.api[key] = apiPrefix + config.api[key];
  123. }
  124. */
  125. module.exports = config;