C端小程序
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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