C端小程序
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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