C端小程序
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

148 righe
2.8 KiB

  1. var config = {
  2. name: "富茂科技",
  3. url: "https://ciformall.youlane.cn/C/api",
  4. // url: "http://fd1a0cab.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. couponDetail: "/wxCoupon/detail",
  30. /**
  31. * 业态查询
  32. */
  33. businessList: "/wxBusiness/list",
  34. /**
  35. * 频道查询
  36. */
  37. couponChannelList: "/wxCouponChannel/list",
  38. /**
  39. * 下订单
  40. */
  41. orderSave: "/order/save",
  42. /**
  43. * 支付订单
  44. */
  45. payOrderCreate: "/pay/create",
  46. /**
  47. * 订单状态更新
  48. */
  49. payOrderUpdate: "/pay/updatePayOrder",
  50. /**
  51. * 订单列表
  52. */
  53. orderList: "/order/list",
  54. /**
  55. * 订单详情
  56. */
  57. orderDetail: "/order/detail",
  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. bindCar: "/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. * banner
  112. */
  113. bannerlist: "/wxCampaign/list",
  114. /**
  115. * banner详情页面
  116. */
  117. bannerDetail: "/wxCampaign/findById",
  118. /**
  119. * 授权个人信息
  120. * 和授权手机号
  121. * 和login页面
  122. * 页面的图标
  123. */
  124. marketicon:'/mall/getAppIcon',
  125. /**
  126. * 检查核销的状态
  127. */
  128. getStatus:"/couponOrder/getStatus"
  129. },
  130. weapp: {
  131. AppId: "wxb11603577a84a86d"
  132. },
  133. ErrorCode: {
  134. NICK_NOT_AUTH: 11004,
  135. PHONE_NOT_AUTH: 11005,
  136. PHONE_IS_ENCRYPTED: 11006
  137. }
  138. };
  139. /*
  140. for (var key in config.api) {
  141. config.api[key] = apiPrefix + config.api[key];
  142. }
  143. */
  144. module.exports = config;