C端小程序
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

157 lignes
3.0 KiB

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