C端小程序
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

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