C端小程序
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

437 řádky
9.8 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. *欢乐城首页专题
  11. */
  12. showList: "/topic/showList",
  13. /*
  14. *记录微信订阅
  15. */
  16. activityDey: "/wxActivity/listStatus",//活动日历日期
  17. activityCalendar: '/wxActivity/list',//活动日历列表
  18. signDey: "/userSign/listStatus",//签到日期列表
  19. continuousDye: "/userSign/signInStatus",//连续签到天数
  20. userSign: "/userSign/signIn",//签到
  21. signRule: "/credit/credit_rules",//签到规则
  22. wxMsg: '/user/updateMsg',
  23. /**
  24. * 获取首页按钮
  25. */
  26. wxCustomizeModule: "/wxCustomizeModule/list",
  27. /**
  28. * 微信消息推送获取模板id
  29. */
  30. templateId: "/wxMsg/templateList",
  31. //问卷列表
  32. questionnaire: "/wxQuestionOneself/list",
  33. //问卷详情
  34. questionnaireDetail: "/wxQuestionOneself/detailsById",
  35. //提交问卷
  36. submitQuestin: "/wxQuestionOneself/userAdd",
  37. //投诉建议add
  38. suggest: "/wxOpinion/add",
  39. /**
  40. * 接口用途:login
  41. */
  42. login: "/user/login",
  43. /**
  44. * 授权后获取用户的昵称,unionId等信息
  45. */
  46. getUserInfo: "/user/getUserInfo",
  47. /**
  48. * 文件上传
  49. */
  50. fileUpload: '/upload/awsFileUpload',
  51. /**
  52. * 图片上传
  53. */
  54. imgUpload: '/upload/awsImgUpload',
  55. /**
  56. * 接口用途:授权后获取用户的手机号
  57. */
  58. getUserPhone: "/user/getUserPhone",
  59. /**
  60. * 检查用户授权状态
  61. */
  62. checkUserStatus: "/user/checkUserStatus",
  63. /**
  64. * 检查用户手机授权状态
  65. */
  66. checkPhoneStatus: "/user/checkPhoneStatus",
  67. /**
  68. * 商户优惠信息
  69. */
  70. listByMerchant: "/wxCouponChannel/listByMerchant",
  71. /**
  72. * 获取券价格与库存
  73. */
  74. couponPriceAndStock: "/wxCoupon/couponPriceAndStock",
  75. /**
  76. * 获取券适用门店List
  77. */
  78. couponMerchant: "/wxCoupon/couponMerchant",
  79. /**
  80. * 获取券详情
  81. */
  82. newCouponDetail: '/wxCoupon/couponDetail',
  83. /**
  84. * 优惠券详情
  85. */
  86. couponDetail: "/wxCoupon/detail",
  87. /**
  88. * 购物车订单详情
  89. */
  90. goodsDetail: "/order/goodsDetail",
  91. /**
  92. * 优惠券图文混排详情
  93. */
  94. couponHtmlDetail: "/wxCoupon/html",
  95. couponHtmlDetailForPkg: "/couponOrder/html",
  96. /**
  97. * 获取样式
  98. */
  99. setType: '/wxMiniappTheme/getOne',
  100. /**
  101. * 业态查询
  102. * filter
  103. * 2 券
  104. * 1 商户
  105. */
  106. businessList: "/wxBusiness/listAll",
  107. /**
  108. * 频道查询
  109. */
  110. couponChannelList: "/wxCouponChannel/list",
  111. /**
  112. * 换一换change
  113. */
  114. change: "/wxCouponChannel/change",
  115. /**
  116. * 下订单
  117. */
  118. orderSave: "/order/save",
  119. /**
  120. * 多少量下单
  121. */
  122. goodsShopCartSave: "/order/goodsShopCartSave",
  123. /**
  124. * 支付订单
  125. */
  126. payOrderCreate: "/pay/create",
  127. /**
  128. * 订单状态更新
  129. */
  130. payOrderUpdate: "/pay/updatePayOrder",
  131. /**
  132. * 订单列表 /order/list
  133. */
  134. orderList: "/order/listGoods_v1",
  135. getWeRunData: '/user/getWeRunData',
  136. /**
  137. * 订单详情
  138. */
  139. orderDetail: "/order/detail_v1",
  140. // 券包详情
  141. // orderDetailAll: "/order/detail_v1",
  142. /**
  143. * 券包
  144. */
  145. couponOrderList: "/couponOrder/list",
  146. /**
  147. * 券包详情
  148. */
  149. couponOrderDetail: "/couponOrder/detail", /// TODO
  150. /**
  151. * 验证码发送
  152. */
  153. sendValidationCode: "/wxMsgValidationcode/sendvalidationcode",
  154. /**
  155. * 验证码确认
  156. */
  157. validationCode: "/wxMsgValidationcode/hasvalidationcode",
  158. /**
  159. * 车场信息获取
  160. */
  161. scoreLevelInfo: '/mall/scoreLevelInfo',
  162. getParkInfo: "/wxPark/info",
  163. /**
  164. * 用户所绑车牌获取
  165. */
  166. userCarCount: "/user/carCount",
  167. /**
  168. * 用户所绑车牌获取
  169. */
  170. getUserCarList: "/user/carList",
  171. /**
  172. * 联合登录
  173. */
  174. carInit: "/car/init",
  175. /**
  176. * 绑车牌
  177. */
  178. bindCar: "/car/bindCar",
  179. /**
  180. * 解绑车牌
  181. */
  182. unbindCar: "/car/unbindCar",
  183. /**
  184. * 停车费
  185. */
  186. getCarStopFee: "/car/getCarStopFee",
  187. /**
  188. * 停车费抵扣 (TJD)
  189. */
  190. deductionFee: "/car/deductionFee",
  191. /**
  192. * 优免券领取
  193. */
  194. getCarCoupon: "/car/getCoupon",
  195. /**
  196. * 停车券包
  197. */
  198. couponOrderCarList: "/car/couponOrderList",
  199. /**
  200. * banner
  201. */
  202. bannerlist: "/wxCampaign/list",
  203. /**
  204. * banner详情页面
  205. */
  206. bannerDetail: "/wxCampaign/findById",
  207. /**
  208. * 授权个人信息
  209. * 和授权手机号
  210. * 和login页面
  211. * 页面的图标
  212. */
  213. marketicon: '/mall/getAppIcon',
  214. /**
  215. * 获取停车场状态
  216. */
  217. getParkStatus: '/car/getParkStatus',
  218. /**
  219. * 检查核销的状态
  220. */
  221. getStatus: "/couponOrder/getStatus",
  222. /**
  223. * 获得成长值
  224. */
  225. getScore: '/user/userinfo',
  226. /**
  227. * 小程序分享
  228. * title
  229. * 描述
  230. */
  231. getWeapNote: '/mall/getWeapNote',
  232. /**
  233. * 商场信息(小程序分享)
  234. */
  235. getMallInfo: '/mall/mallInfo',
  236. /**
  237. * 小程序获取游戏路径
  238. */
  239. getGame: '/game/getOne',
  240. /**
  241. * 小程序获取广告路径
  242. */
  243. getGg: '/floatingLayer/getFloatingLayer',
  244. /**
  245. * 小程序某一个游戏信息
  246. */
  247. getOneGame: '/game/getOneGame',
  248. /**
  249. * 用户更新信息
  250. */
  251. updateInfo: "/user/updateUserInfo",
  252. /**
  253. * 查询问卷
  254. */
  255. getQuestion: "/wxQuestion/getQuestion",
  256. /**
  257. * 提交问卷
  258. */
  259. answerQuestion: "/wxQuestion/answerQuestion",
  260. /**
  261. *
  262. 获取打折商户列表
  263. */
  264. discountMerchantList: "/mall/discountMerchantList",
  265. /**
  266. * 卡包分页列表接口
  267. */
  268. cardorderList: "/couponOrder/cardList",
  269. /**
  270. * 卡券详情接口
  271. */
  272. cardDetail: "/couponOrder/cardDetail",
  273. /**
  274. * C端扫B端储值卡支付订单
  275. */
  276. cardPayOrder: "/cardPay/order_create",
  277. /**
  278. * 兑换历史列表
  279. */
  280. scoreHistory: "/scoreHistory/list",
  281. /**
  282. * 获取用户折扣率
  283. */
  284. getDiscountInfo: "/user/getDiscountInfo",
  285. /**
  286. * C端扫B端储值卡交易流水列表接口
  287. */
  288. cardpayList: "/cardPay/list",
  289. /**
  290. * 根据code查询接口
  291. */
  292. findByCode: "/merchant/findByCode",
  293. /**
  294. * 参与砍价
  295. */
  296. pressOrderJoin: "/press/pressOrderJoin",
  297. /**
  298. * 我的砍价列表
  299. */
  300. pressOrderList: "/order/pressOrderList",
  301. /**
  302. * 砍价订单详情
  303. */
  304. pressOrderDetail: "/order/pressOrderDetail",
  305. /**
  306. *
  307. */
  308. getPressOrderStatus: "/press/getPressOrderStatus",
  309. /**
  310. * 查询转赠卡状态
  311. */
  312. queryCardStatus: "/couponOrder/queryCardStatus",
  313. /**
  314. * 领取转赠卡
  315. */
  316. cardAccept: '/couponOrder/cardAccept',
  317. /**
  318. * 获取我的拼团列表
  319. */
  320. getMySepllList: '/orderGroup/queryOrderGroup',
  321. /**
  322. *查询差1个的团购信息
  323. */
  324. queryRemainOne: '/orderGroup/queryRemainOne',
  325. /**
  326. * *分页列表接口
  327. */
  328. merchantList: "/merchant/list",
  329. /*
  330. * 查询拼团状态
  331. */
  332. queryOrderGroupStatus: '/orderGroup/queryOrderGroupStatus',
  333. /**
  334. * 去拼团
  335. */
  336. toOrderGroup: '/orderGroup/toOrderGroup',
  337. /**
  338. * 查询是否已参团
  339. */
  340. queryAttendStatus: '/orderGroup/queryAttendStatus',
  341. /**
  342. * 专题
  343. */
  344. topicShow: "/topic/show",
  345. /**
  346. * 专题详情
  347. */
  348. topicFindById: "/topic/findById",
  349. /**
  350. * 积分券详情
  351. */
  352. integralDetail: '/wxCoupon/findById',
  353. /**
  354. * 会员积分记录
  355. */
  356. integralList: '/credit/list',
  357. /**
  358. * 用户更新位置信息
  359. */
  360. updateLBS: "/user/updateLBS",
  361. /**
  362. * 用户更新信息
  363. */
  364. updateUserInfo: "/user/updateUserInfo",
  365. /**
  366. * 用户更新scene
  367. */
  368. updateScene: "/user/updateScene",
  369. /**
  370. * 富文本详情
  371. */
  372. printHtmlById: "/wxCampaign/printHtmlById",
  373. acfindById: "/wxActivity/findById",
  374. acPrintHtmlById: "/wxActivity/printHtmlById",
  375. //参与活动
  376. activityJoin: "/wxActivityJoin/join",
  377. //签到
  378. activitySign: "/wxActivityJoin/sign",
  379. activityList: "/wxActivityJoin/list",
  380. //获取未支付的订单
  381. getUnPaidOrder: "/order/getUnPaidOrder",
  382. getCouponOrderByPassword: '/couponPassword/getCouponOrderByPassword',
  383. getbuildingfloorlist: '/wxMallBuilding/getbuildingfloorlist',
  384. //商场信息接口
  385. getMallInfo: "/mall/mallInfo",
  386. // 获取楼层楼座数据
  387. getbuildingfloorlist: "/wxMallBuilding/getbuildingfloorlist",
  388. // 获取所有直播间和商品信息
  389. getReplayList: "/live/replayList",
  390. // 获取直播房间回放数据和商品信息
  391. getRoomList: "/live/roomList",
  392. //商城地图
  393. getStoreMap: "/wxMallBuilding/getbuildingfloorlist",
  394. //判断有没有蜂鸟地图
  395. ifFengMap: '/fengniaomap/getConfig',
  396. //分享小程序二维码
  397. getQrcodeFx: "/user/userinfoQrCode",
  398. //添加收货地址
  399. collectSite: "/userBasicInfoAddress/saveOrUpdate",
  400. //收货地址列表
  401. siteList: "/userBasicInfoAddress/list",
  402. //查询收货地址
  403. siteCheck: "/userBasicInfoAddress/findById",
  404. //删除收获地址
  405. siteDel: "/userBasicInfoAddress/del",
  406. //确认收货
  407. verify: "/couponOrder/verify",
  408. //全包下订单
  409. couponPackageSave: "/order/couponPackageSave",
  410. //获取动态核销码
  411. dynamicId: "/couponOrder/dynamicId"
  412. },
  413. weapp: {
  414. AppId: weappId
  415. },
  416. ErrorCode: {
  417. NICK_NOT_AUTH: 11004,
  418. PHONE_NOT_AUTH: 11005,
  419. PHONE_IS_ENCRYPTED: 11006
  420. }
  421. };
  422. /*
  423. for (var key in config.api) {
  424. config.api[key] = apiPrefix + config.api[key];
  425. }
  426. */
  427. module.exports = config;