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.

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