global.js 2.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. import {
  2. request
  3. } from "../utils/request";
  4. module.exports = {
  5. //获取商品信息
  6. getProducts: data => request('/v3/product/learn', 'get', data),
  7. // 获取订单记录
  8. getOrderRecord: data => request('/order/helpList', 'get', data, true),
  9. // 领取代金卷
  10. getVoucher: data => request('/v3/activity/voucher', 'post', data),
  11. // 获取轮播图列表
  12. getBannerList: data => request('/v3/banner', 'get', data),
  13. // 获取官方活动
  14. getActivities: data => request('/v3/activity', 'get', data),
  15. // 获取排行榜详情
  16. getRankingData: data => request('/v3/activity/rank', 'get', data),
  17. // 获取排行榜可选日期
  18. getRankedDay: data => request('/v3/rank/statistics/day', 'get', data),
  19. // 获取朗读赛详情
  20. getActivityInfo: data => request(`/v3/activity/info/${data}`, 'get', data),
  21. // 获取朗读赛范文
  22. getModelTexts: data => request('/activityRead', 'get', data),
  23. // 获取朗读赛排行榜
  24. getReadRanking: data => request('/activityJoinUser/hotAmountTop', 'get', data),
  25. // 获取朗读赛排行榜参赛作品
  26. getSelfReadRanking: data => request('/activityJoinUser/activityRead', 'get', data),
  27. // 获取邀新总榜
  28. getInviteRanking: data => request('/v3/activity/inviteNewRank',
  29. 'get', data),
  30. // 生成用户分享二维码
  31. createWxCode: data => request('/qrCode', 'get', data),
  32. // 用户行为统计
  33. // RECOMMEND(name: "推荐”) ,MY(name: ”我的 "),RESOURCES(name: "资源"), SUBSCRIBE(name: "关注"),REC_ READ(name: ”推荐 - 我要配音 "),WXREADING(name: ”开始朗读 ") ,APP_EXAMPLE(name: "示范"), RERECORDING(name: "重录"), UPLOAD(name: "上传作品"), MY_ INFO(name: “个人信息 ") ,INTEGRAL(name: "小红花"), MY_ SUBSCRIBE(name: "我的关注"), MY_ FAVORITES(name: ”我的收藏”),MESSAGE(name: ”消息通知”), SERVICE(name: "客服"), WXUPLOAD("微信上传作品"), WXSCORE("微信获取评分"),IOS_PAY_ENTER("IOS进入支付页"),IOS_PAY_ACTIVITY("IOS拉起支付"),IOS_PAY_SUCCESS("IOS支付成功"),ANDROID_PAY_ACTIVITY("ANDROID拉起支付"),ANDROID_PAY_SUCCESS("ANDROID支付成功"),PV_ANDROID,PV_IOS (pv统计)
  34. userEvent: data => request('/userEvent/v2', 'post', data),
  35. }