C端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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