C端小程序
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

346 linhas
7.5 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. imgUpload: '/upload/awsFileUpload',
  19. /**
  20. * 接口用途:授权后获取用户的手机号
  21. */
  22. getUserPhone: "/user/getUserPhone",
  23. /**
  24. * 检查用户授权状态
  25. */
  26. checkUserStatus: "/user/checkUserStatus",
  27. /**
  28. * 检查用户手机授权状态
  29. */
  30. checkPhoneStatus: "/user/checkPhoneStatus",
  31. /**
  32. * 商户优惠信息
  33. */
  34. listByMerchant: "/wxCouponChannel/listByMerchant",
  35. /**
  36. * 优惠券详情
  37. */
  38. couponDetail: "/wxCoupon/detail",
  39. /**
  40. * 优惠券图文混排详情
  41. */
  42. couponHtmlDetail: "/wxCoupon/html",
  43. couponHtmlDetailForPkg: "/couponOrder/html",
  44. /**
  45. * 业态查询
  46. * filter
  47. * 2 券
  48. * 1 商户
  49. */
  50. businessList: "/wxBusiness/listAll",
  51. /**
  52. * 频道查询
  53. */
  54. couponChannelList: "/wxCouponChannel/list",
  55. /**
  56. * 换一换change
  57. */
  58. change: "/wxCouponChannel/change",
  59. /**
  60. * 下订单
  61. */
  62. orderSave: "/order/save",
  63. /**
  64. * 支付订单
  65. */
  66. payOrderCreate: "/pay/create",
  67. /**
  68. * 订单状态更新
  69. */
  70. payOrderUpdate: "/pay/updatePayOrder",
  71. /**
  72. * 订单列表
  73. */
  74. orderList: "/order/list",
  75. getWeRunData: '/user/getWeRunData',
  76. /**
  77. * 订单详情
  78. */
  79. orderDetail: "/order/detail",
  80. /**
  81. * 券包
  82. */
  83. couponOrderList: "/couponOrder/list",
  84. /**
  85. * 券包详情
  86. */
  87. couponOrderDetail: "/couponOrder/detail", /// TODO
  88. /**
  89. * 验证码发送
  90. */
  91. sendValidationCode: "/wxMsgValidationcode/sendvalidationcode",
  92. /**
  93. * 验证码确认
  94. */
  95. validationCode: "/wxMsgValidationcode/hasvalidationcode",
  96. /**
  97. * 车场信息获取
  98. */
  99. scoreLevelInfo: '/mall/scoreLevelInfo',
  100. getParkInfo: "/wxPark/info",
  101. /**
  102. * 用户所绑车牌获取
  103. */
  104. userCarCount: "/user/carCount",
  105. /**
  106. * 用户所绑车牌获取
  107. */
  108. getUserCarList: "/user/carList",
  109. /**
  110. * 联合登录
  111. */
  112. carInit: "/car/init",
  113. /**
  114. * 绑车牌
  115. */
  116. bindCar: "/car/bindCar",
  117. /**
  118. * 解绑车牌
  119. */
  120. unbindCar: "/car/unbindCar",
  121. /**
  122. * 停车费
  123. */
  124. getCarStopFee: "/car/getCarStopFee",
  125. /**
  126. * 停车费抵扣 (TJD)
  127. */
  128. deductionFee: "/car/deductionFee",
  129. /**
  130. * 优免券领取
  131. */
  132. getCarCoupon: "/car/getCoupon",
  133. /**
  134. * 停车券包
  135. */
  136. couponOrderCarList: "/car/couponOrderList",
  137. /**
  138. * banner
  139. */
  140. bannerlist: "/wxCampaign/list",
  141. /**
  142. * banner详情页面
  143. */
  144. bannerDetail: "/wxCampaign/findById",
  145. /**
  146. * 授权个人信息
  147. * 和授权手机号
  148. * 和login页面
  149. * 页面的图标
  150. */
  151. marketicon: '/mall/getAppIcon',
  152. /**
  153. * 获取停车场状态
  154. */
  155. getParkStatus: '/car/getParkStatus',
  156. /**
  157. * 检查核销的状态
  158. */
  159. getStatus: "/couponOrder/getStatus",
  160. /**
  161. * 获得成长值
  162. */
  163. getScore: '/user/userinfo',
  164. /**
  165. * 小程序分享
  166. * title
  167. * 描述
  168. */
  169. getWeapNote:'/mall/getWeapNote',
  170. /**
  171. * 商场信息(小程序分享)
  172. */
  173. getMallInfo: '/mall/mallInfo',
  174. /**
  175. * 小程序获取游戏路径
  176. */
  177. getGame:'/game/getOne',
  178. /**
  179. * 小程序获取广告路径
  180. */
  181. getGg: '/floatingLayer/getFloatingLayer',
  182. /**
  183. * 小程序某一个游戏信息
  184. */
  185. getOneGame: '/game/getOneGame',
  186. /**
  187. * 用户更新信息
  188. */
  189. updateInfo: "/user/updateUserInfo",
  190. /**
  191. * 查询问卷
  192. */
  193. getQuestion:"/wxQuestion/getQuestion",
  194. /**
  195. * 提交问卷
  196. */
  197. answerQuestion:"/wxQuestion/answerQuestion",
  198. /**
  199. *
  200. 获取打折商户列表
  201. */
  202. discountMerchantList:"/mall/discountMerchantList",
  203. /**
  204. * 卡包分页列表接口
  205. */
  206. cardorderList:"/couponOrder/cardList",
  207. /**
  208. * 卡券详情接口
  209. */
  210. cardDetail: "/couponOrder/cardDetail",
  211. /**
  212. * C端扫B端储值卡支付订单
  213. */
  214. cardPayOrder:"/cardPay/order_create",
  215. /**
  216. * 兑换历史列表
  217. */
  218. scoreHistory:"/scoreHistory/list",
  219. /**
  220. * 获取用户折扣率
  221. */
  222. getDiscountInfo:"/user/getDiscountInfo",
  223. /**
  224. * C端扫B端储值卡交易流水列表接口
  225. */
  226. cardpayList:"/cardPay/list",
  227. /**
  228. * 根据code查询接口
  229. */
  230. findByCode:"/merchant/findByCode",
  231. /**
  232. * 参与砍价
  233. */
  234. pressOrderJoin:"/press/pressOrderJoin",
  235. /**
  236. * 我的砍价列表
  237. */
  238. pressOrderList:"/order/pressOrderList",
  239. /**
  240. * 砍价订单详情
  241. */
  242. pressOrderDetail:"/order/pressOrderDetail",
  243. /**
  244. *
  245. */
  246. getPressOrderStatus:"/press/getPressOrderStatus",
  247. /**
  248. * 查询转赠卡状态
  249. */
  250. queryCardStatus:"/couponOrder/queryCardStatus",
  251. /**
  252. * 领取转赠卡
  253. */
  254. cardAccept:'/couponOrder/cardAccept',
  255. /**
  256. * 获取我的拼团列表
  257. */
  258. getMySepllList:'/orderGroup/queryOrderGroup',
  259. /**
  260. *查询差1个的团购信息
  261. */
  262. queryRemainOne:'/orderGroup/queryRemainOne',
  263. /**
  264. * *分页列表接口
  265. */
  266. merchantList:"/merchant/list",
  267. /*
  268. * 查询拼团状态
  269. */
  270. queryOrderGroupStatus:'/orderGroup/queryOrderGroupStatus',
  271. /**
  272. * 去拼团
  273. */
  274. toOrderGroup: '/orderGroup/toOrderGroup',
  275. /**
  276. * 查询是否已参团
  277. */
  278. queryAttendStatus:'/orderGroup/queryAttendStatus',
  279. /**
  280. * 专题
  281. */
  282. topicShow:"/topic/show",
  283. /**
  284. * 专题详情
  285. */
  286. topicFindById:"/topic/findById",
  287. /**
  288. * 积分券详情
  289. */
  290. integralDetail:'/wxCoupon/findById',
  291. /**
  292. * 会员积分记录
  293. */
  294. integralList:'/credit/list',
  295. /**
  296. * 用户更新位置信息
  297. */
  298. updateLBS:"/user/updateLBS",
  299. /**
  300. * 用户更新信息
  301. */
  302. updateUserInfo:"/user/updateUserInfo",
  303. /**
  304. * 用户更新scene
  305. */
  306. updateScene:"/user/updateScene",
  307. /**
  308. * 富文本详情
  309. */
  310. printHtmlById:"/wxCampaign/printHtmlById",
  311. acfindById:"/wxActivity/findById",
  312. acPrintHtmlById:"/wxActivity/printHtmlById",
  313. //参与活动
  314. activityJoin:"/wxActivityJoin/join",
  315. //签到
  316. activitySign:"/wxActivityJoin/sign",
  317. activityList: "/wxActivityJoin/list",
  318. //获取未支付的订单
  319. getUnPaidOrder: "/order/getUnPaidOrder",
  320. getCouponOrderByPassword:'/couponPassword/getCouponOrderByPassword',
  321. getbuildingfloorlist:'/wxMallBuilding/getbuildingfloorlist',
  322. //商场信息接口
  323. getMallInfo: "/mall/mallInfo",
  324. // 获取楼层楼座数据
  325. getbuildingfloorlist:"/wxMallBuilding/getbuildingfloorlist",
  326. // 获取所有直播间和商品信息
  327. getReplayList:"/live/replayList",
  328. // 获取直播房间回放数据和商品信息
  329. getRoomList: "/live/roomList"
  330. },
  331. weapp: {
  332. AppId: weappId
  333. },
  334. ErrorCode: {
  335. NICK_NOT_AUTH: 11004,
  336. PHONE_NOT_AUTH: 11005,
  337. PHONE_IS_ENCRYPTED: 11006
  338. }
  339. };
  340. /*
  341. for (var key in config.api) {
  342. config.api[key] = apiPrefix + config.api[key];
  343. }
  344. */
  345. module.exports = config;