C端小程序
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

241 Zeilen
4.9 KiB

  1. const extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {}
  2. console.log(extConfig.weappId)
  3. let weappId = extConfig.weappId;
  4. var config = {
  5. url: "https://ciformall.youlane.cn/C/api",
  6. // url:"https://c.malls.iformall.com/C/api",
  7. // url:'https://ctest.malls.iformall.com/C/api',
  8. api: {
  9. /**
  10. * 接口用途:login
  11. */
  12. login: "/user/login",
  13. /**
  14. * 授权后获取用户的昵称,unionId等信息
  15. */
  16. getUserInfo: "/user/getUserInfo",
  17. /**
  18. * 接口用途:授权后获取用户的手机号
  19. */
  20. getUserPhone: "/user/getUserPhone",
  21. /**
  22. * 检查用户授权状态
  23. */
  24. checkUserStatus: "/user/checkUserStatus",
  25. /**
  26. * 检查用户手机授权状态
  27. */
  28. checkPhoneStatus: "/user/checkPhoneStatus",
  29. /**
  30. * 优惠券详情
  31. */
  32. couponDetail: "/wxCoupon/detail",
  33. /**
  34. * 业态查询
  35. */
  36. businessList: "/wxBusiness/list",
  37. /**
  38. * 频道查询
  39. */
  40. couponChannelList: "/wxCouponChannel/list",
  41. /**
  42. * 下订单
  43. */
  44. orderSave: "/order/save",
  45. /**
  46. * 支付订单
  47. */
  48. payOrderCreate: "/pay/create",
  49. /**
  50. * 订单状态更新
  51. */
  52. payOrderUpdate: "/pay/updatePayOrder",
  53. /**
  54. * 订单列表
  55. */
  56. orderList: "/order/list",
  57. getWeRunData: '/user/getWeRunData',
  58. /**
  59. * 订单详情
  60. */
  61. orderDetail: "/order/detail",
  62. /**
  63. * 券包
  64. */
  65. couponOrderList: "/couponOrder/list",
  66. /**
  67. * 券包详情
  68. */
  69. couponOrderDetail: "/couponOrder/detail", /// TODO
  70. /**
  71. * 验证码发送
  72. */
  73. sendValidationCode: "/wxMsgValidationcode/sendvalidationcode",
  74. /**
  75. * 验证码确认
  76. */
  77. validationCode: "/wxMsgValidationcode/hasvalidationcode",
  78. /**
  79. * 车场信息获取
  80. */
  81. scoreLevelInfo: '/mall/scoreLevelInfo',
  82. getParkInfo: "/wxPark/info",
  83. /**
  84. * 用户所绑车牌获取
  85. */
  86. userCarCount: "/user/carCount",
  87. /**
  88. * 用户所绑车牌获取
  89. */
  90. getUserCarList: "/user/carList",
  91. /**
  92. * 联合登录
  93. */
  94. carInit: "/car/init",
  95. /**
  96. * 绑车牌
  97. */
  98. bindCar: "/car/bindCar",
  99. /**
  100. * 解绑车牌
  101. */
  102. unbindCar: "/car/unbindCar",
  103. /**
  104. * 停车费
  105. */
  106. getCarStopFee: "/car/getCarStopFee",
  107. /**
  108. * 停车费抵扣 (TJD)
  109. */
  110. deductionFee: "/car/deductionFee",
  111. /**
  112. * 优免券领取
  113. */
  114. getCarCoupon: "/car/getCoupon",
  115. /**
  116. * 停车券包
  117. */
  118. couponOrderCarList: "/car/couponOrderList",
  119. /**
  120. * banner
  121. */
  122. bannerlist: "/wxCampaign/list",
  123. /**
  124. * banner详情页面
  125. */
  126. bannerDetail: "/wxCampaign/findById",
  127. /**
  128. * 授权个人信息
  129. * 和授权手机号
  130. * 和login页面
  131. * 页面的图标
  132. */
  133. marketicon: '/mall/getAppIcon',
  134. /**
  135. * 获取停车场状态
  136. */
  137. getParkStatus: '/car/getParkStatus',
  138. /**
  139. * 检查核销的状态
  140. */
  141. getStatus: "/couponOrder/getStatus",
  142. /**
  143. * 获得成长值
  144. */
  145. getScore: '/user/userinfo',
  146. /**
  147. * 小程序分享
  148. * title
  149. * 描述
  150. */
  151. getWeapNote:'/mall/getWeapNote',
  152. /**
  153. * 小程序获取游戏路径
  154. */
  155. getGame:'/game/getOne',
  156. /**
  157. * 用户更新信息
  158. */
  159. updateInfo: "/user/updateUserInfo",
  160. /**
  161. * 查询问卷
  162. */
  163. getQuestion:"/wxQuestion/getQuestion",
  164. /**
  165. * 提交问卷
  166. */
  167. answerQuestion:"/wxQuestion/answerQuestion",
  168. /**
  169. *
  170. 获取打折商户列表
  171. */
  172. discountMerchantList:"/mall/discountMerchantList",
  173. /**
  174. * 卡包分页列表接口
  175. */
  176. cardorderList:"/couponOrder/cardList",
  177. /**
  178. * 卡券详情接口
  179. */
  180. cardDetail: "/couponOrder/cardDetail",
  181. /**
  182. * C端扫B端储值卡支付订单
  183. */
  184. cardPayOrder:"/cardPay/order_create",
  185. /**
  186. * 兑换历史列表
  187. */
  188. scoreHistory:"/scoreHistory/list",
  189. /**
  190. * 获取用户折扣率
  191. */
  192. getDiscountInfo:"/user/getDiscountInfo",
  193. /**
  194. * C端扫B端储值卡交易流水列表接口
  195. */
  196. cardpayList:"/cardPay/list",
  197. /**
  198. * 根据code查询接口
  199. */
  200. findByCode:"/merchant/findByCode",
  201. /**
  202. * 参与砍价
  203. */
  204. pressOrderJoin:"/press/pressOrderJoin",
  205. /**
  206. * 我的砍价列表
  207. */
  208. pressOrderList:"/order/pressOrderList",
  209. /**
  210. * 砍价订单详情
  211. */
  212. pressOrderDetail:"/order/pressOrderDetail",
  213. /**
  214. *
  215. */
  216. getPressOrderStatus:"/press/getPressOrderStatus",
  217. /**
  218. * 查询转赠卡状态
  219. */
  220. queryCardStatus:"/couponOrder/queryCardStatus",
  221. /**
  222. * 领取转赠卡
  223. */
  224. cardAccept:'/couponOrder/cardAccept'
  225. },
  226. weapp: {
  227. AppId: weappId
  228. },
  229. ErrorCode: {
  230. NICK_NOT_AUTH: 11004,
  231. PHONE_NOT_AUTH: 11005,
  232. PHONE_IS_ENCRYPTED: 11006
  233. }
  234. };
  235. /*
  236. for (var key in config.api) {
  237. config.api[key] = apiPrefix + config.api[key];
  238. }
  239. */
  240. module.exports = config;