C端小程序
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

300 行
6.1 KiB

  1. const extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {}
  2. let weappId = extConfig.weappId;
  3. let configUrls = extConfig.attr.configUrl;
  4. let sockUrls = extConfig.attr.socketUrl;
  5. var config = {
  6. url: configUrls,
  7. wsurl: sockUrls,
  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. listByMerchant: "/wxCouponChannel/listByMerchant",
  33. /**
  34. * 优惠券详情
  35. */
  36. couponDetail: "/wxCoupon/detail",
  37. /**
  38. * 业态查询
  39. * filter
  40. * 2 券
  41. * 1 商户
  42. */
  43. businessList: "/wxBusiness/listAll",
  44. /**
  45. * 频道查询
  46. */
  47. couponChannelList: "/wxCouponChannel/list",
  48. /**
  49. * 下订单
  50. */
  51. orderSave: "/order/save",
  52. /**
  53. * 支付订单
  54. */
  55. payOrderCreate: "/pay/create",
  56. /**
  57. * 订单状态更新
  58. */
  59. payOrderUpdate: "/pay/updatePayOrder",
  60. /**
  61. * 订单列表
  62. */
  63. orderList: "/order/list",
  64. getWeRunData: '/user/getWeRunData',
  65. /**
  66. * 订单详情
  67. */
  68. orderDetail: "/order/detail",
  69. /**
  70. * 券包
  71. */
  72. couponOrderList: "/couponOrder/list",
  73. /**
  74. * 券包详情
  75. */
  76. couponOrderDetail: "/couponOrder/detail", /// TODO
  77. /**
  78. * 验证码发送
  79. */
  80. sendValidationCode: "/wxMsgValidationcode/sendvalidationcode",
  81. /**
  82. * 验证码确认
  83. */
  84. validationCode: "/wxMsgValidationcode/hasvalidationcode",
  85. /**
  86. * 车场信息获取
  87. */
  88. scoreLevelInfo: '/mall/scoreLevelInfo',
  89. getParkInfo: "/wxPark/info",
  90. /**
  91. * 用户所绑车牌获取
  92. */
  93. userCarCount: "/user/carCount",
  94. /**
  95. * 用户所绑车牌获取
  96. */
  97. getUserCarList: "/user/carList",
  98. /**
  99. * 联合登录
  100. */
  101. carInit: "/car/init",
  102. /**
  103. * 绑车牌
  104. */
  105. bindCar: "/car/bindCar",
  106. /**
  107. * 解绑车牌
  108. */
  109. unbindCar: "/car/unbindCar",
  110. /**
  111. * 停车费
  112. */
  113. getCarStopFee: "/car/getCarStopFee",
  114. /**
  115. * 停车费抵扣 (TJD)
  116. */
  117. deductionFee: "/car/deductionFee",
  118. /**
  119. * 优免券领取
  120. */
  121. getCarCoupon: "/car/getCoupon",
  122. /**
  123. * 停车券包
  124. */
  125. couponOrderCarList: "/car/couponOrderList",
  126. /**
  127. * banner
  128. */
  129. bannerlist: "/wxCampaign/list",
  130. /**
  131. * banner详情页面
  132. */
  133. bannerDetail: "/wxCampaign/findById",
  134. /**
  135. * 授权个人信息
  136. * 和授权手机号
  137. * 和login页面
  138. * 页面的图标
  139. */
  140. marketicon: '/mall/getAppIcon',
  141. /**
  142. * 获取停车场状态
  143. */
  144. getParkStatus: '/car/getParkStatus',
  145. /**
  146. * 检查核销的状态
  147. */
  148. getStatus: "/couponOrder/getStatus",
  149. /**
  150. * 获得成长值
  151. */
  152. getScore: '/user/userinfo',
  153. /**
  154. * 小程序分享
  155. * title
  156. * 描述
  157. */
  158. getWeapNote:'/mall/getWeapNote',
  159. /**
  160. * 商场信息(小程序分享)
  161. */
  162. getMallInfo: '/mall/mallInfo',
  163. /**
  164. * 小程序获取游戏路径
  165. */
  166. getGame:'/game/getOne',
  167. /**
  168. * 小程序某一个游戏信息
  169. */
  170. getOneGame: '/game/getOneGame',
  171. /**
  172. * 用户更新信息
  173. */
  174. updateInfo: "/user/updateUserInfo",
  175. /**
  176. * 查询问卷
  177. */
  178. getQuestion:"/wxQuestion/getQuestion",
  179. /**
  180. * 提交问卷
  181. */
  182. answerQuestion:"/wxQuestion/answerQuestion",
  183. /**
  184. *
  185. 获取打折商户列表
  186. */
  187. discountMerchantList:"/mall/discountMerchantList",
  188. /**
  189. * 卡包分页列表接口
  190. */
  191. cardorderList:"/couponOrder/cardList",
  192. /**
  193. * 卡券详情接口
  194. */
  195. cardDetail: "/couponOrder/cardDetail",
  196. /**
  197. * C端扫B端储值卡支付订单
  198. */
  199. cardPayOrder:"/cardPay/order_create",
  200. /**
  201. * 兑换历史列表
  202. */
  203. scoreHistory:"/scoreHistory/list",
  204. /**
  205. * 获取用户折扣率
  206. */
  207. getDiscountInfo:"/user/getDiscountInfo",
  208. /**
  209. * C端扫B端储值卡交易流水列表接口
  210. */
  211. cardpayList:"/cardPay/list",
  212. /**
  213. * 根据code查询接口
  214. */
  215. findByCode:"/merchant/findByCode",
  216. /**
  217. * 参与砍价
  218. */
  219. pressOrderJoin:"/press/pressOrderJoin",
  220. /**
  221. * 我的砍价列表
  222. */
  223. pressOrderList:"/order/pressOrderList",
  224. /**
  225. * 砍价订单详情
  226. */
  227. pressOrderDetail:"/order/pressOrderDetail",
  228. /**
  229. *
  230. */
  231. getPressOrderStatus:"/press/getPressOrderStatus",
  232. /**
  233. * 查询转赠卡状态
  234. */
  235. queryCardStatus:"/couponOrder/queryCardStatus",
  236. /**
  237. * 领取转赠卡
  238. */
  239. cardAccept:'/couponOrder/cardAccept',
  240. /**
  241. * 获取我的拼团列表
  242. */
  243. getMySepllList:'/orderGroup/queryOrderGroup',
  244. /**
  245. *查询差1个的团购信息
  246. */
  247. queryRemainOne:'/orderGroup/queryRemainOne',
  248. /**
  249. * *分页列表接口
  250. */
  251. merchantList:"/merchant/list",
  252. /*
  253. * 查询拼团状态
  254. */
  255. queryOrderGroupStatus:'/orderGroup/queryOrderGroupStatus',
  256. /**
  257. * 去拼团
  258. */
  259. toOrderGroup: '/orderGroup/toOrderGroup',
  260. /**
  261. * 查询是否已参团
  262. */
  263. queryAttendStatus:'/orderGroup/queryAttendStatus',
  264. /**
  265. * 专题
  266. */
  267. topicShow:"/topic/show",
  268. /**
  269. * 专题详情
  270. */
  271. topicFindById:"/topic/findById",
  272. /**
  273. * 积分兑换
  274. */
  275. addIntegral: "/credit/add",
  276. /**
  277. * 积分券详情
  278. */
  279. integralDetail:'/wxCoupon/findById',
  280. /**
  281. * 会员积分记录
  282. */
  283. integralList:'/credit/list'
  284. },
  285. weapp: {
  286. AppId: weappId
  287. },
  288. ErrorCode: {
  289. NICK_NOT_AUTH: 11004,
  290. PHONE_NOT_AUTH: 11005,
  291. PHONE_IS_ENCRYPTED: 11006
  292. }
  293. };
  294. /*
  295. for (var key in config.api) {
  296. config.api[key] = apiPrefix + config.api[key];
  297. }
  298. */
  299. module.exports = config;