C端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

188 line
3.8 KiB

  1. var config = {
  2. url: "https://ciformall.youlane.cn/C/api",
  3. // url:"https://c.malls.iformall.com/C/api",
  4. // url:'https://ctest.malls.iformall.com/C/api',
  5. // url:'http://10.100.33.66:7000/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. getWeRunData: '/user/getWeRunData',
  56. /**
  57. * 订单详情
  58. */
  59. orderDetail: "/order/detail",
  60. /**
  61. * 券包
  62. */
  63. couponOrderList: "/couponOrder/list",
  64. /**
  65. * 券包详情
  66. */
  67. couponOrderDetail: "/couponOrder/detail", /// TODO
  68. /**
  69. * 验证码发送
  70. */
  71. sendValidationCode: "/wxMsgValidationcode/sendvalidationcode",
  72. /**
  73. * 验证码确认
  74. */
  75. validationCode: "/wxMsgValidationcode/hasvalidationcode",
  76. /**
  77. * 车场信息获取
  78. */
  79. scoreLevelInfo: '/mall/scoreLevelInfo',
  80. getParkInfo: "/wxPark/info",
  81. /**
  82. * 用户所绑车牌获取
  83. */
  84. userCarCount: "/user/carCount",
  85. /**
  86. * 用户所绑车牌获取
  87. */
  88. getUserCarList: "/user/carList",
  89. /**
  90. * 联合登录
  91. */
  92. carInit: "/car/init",
  93. /**
  94. * 绑车牌
  95. */
  96. bindCar: "/car/bindCar",
  97. /**
  98. * 解绑车牌
  99. */
  100. unbindCar: "/car/unbindCar",
  101. /**
  102. * 停车费
  103. */
  104. getCarStopFee: "/car/getCarStopFee",
  105. /**
  106. * 停车费抵扣 (TJD)
  107. */
  108. deductionFee: "/car/deductionFee",
  109. /**
  110. * 优免券领取
  111. */
  112. getCarCoupon: "/car/getCoupon",
  113. /**
  114. * 停车券包
  115. */
  116. couponOrderCarList: "/car/couponOrderList",
  117. /**
  118. * banner
  119. */
  120. bannerlist: "/wxCampaign/list",
  121. /**
  122. * banner详情页面
  123. */
  124. bannerDetail: "/wxCampaign/findById",
  125. /**
  126. * 授权个人信息
  127. * 和授权手机号
  128. * 和login页面
  129. * 页面的图标
  130. */
  131. marketicon: '/mall/getAppIcon',
  132. /**
  133. * 获取停车场状态
  134. */
  135. getParkStatus: '/car/getParkStatus',
  136. /**
  137. * 检查核销的状态
  138. */
  139. getStatus: "/couponOrder/getStatus",
  140. /**
  141. * 获得成长值
  142. */
  143. getScore: '/user/userinfo',
  144. /**
  145. * 小程序分享
  146. * title
  147. * 描述
  148. */
  149. getWeapNote:'/mall/getWeapNote',
  150. /**
  151. * 小程序获取游戏路径
  152. */
  153. getGame:'/game/getOne',
  154. /**
  155. * 用户更新信息
  156. */
  157. updateInfo: "/user/updateUserInfo",
  158. /**
  159. * 查询问卷
  160. */
  161. getQuestion:"/wxQuestion/getQuestion",
  162. /**
  163. * 提交问卷
  164. */
  165. answerQuestion:"/wxQuestion/answerQuestion",
  166. /**
  167. *
  168. 获取打折商户列表
  169. */
  170. discountMerchantList:"/mall/discountMerchantList"
  171. },
  172. weapp: {
  173. AppId: "wxea71200db93d756b"
  174. },
  175. ErrorCode: {
  176. NICK_NOT_AUTH: 11004,
  177. PHONE_NOT_AUTH: 11005,
  178. PHONE_IS_ENCRYPTED: 11006
  179. }
  180. };
  181. /*
  182. for (var key in config.api) {
  183. config.api[key] = apiPrefix + config.api[key];
  184. }
  185. */
  186. module.exports = config;