global.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. getRank: data => request('/v3/activity/list1', 'get', data),
  17. // 获取排行榜详情
  18. getRankingData: data => request('/v3/activity/rank', 'get', data),
  19. // 获取排行榜可选日期
  20. getRankedDay: data => request('/v3/rank/statistics/day', 'get', data),
  21. // 获取朗读赛详情
  22. getActivityInfo: data => request(`/v3/activity/info/${data}`, 'get', data),
  23. // 获取朗读赛范文
  24. getModelTexts: data => request('/activityRead', 'get', data),
  25. // 获取朗读赛排行榜
  26. getReadRanking: data => request('/activityJoinUser/hotAmountTop', 'get', data),
  27. // 获取朗读赛排行榜参赛作品
  28. getSelfReadRanking: data => request('/activityJoinUser/activityRead', 'get', data),
  29. // 获取邀新总榜
  30. getInviteRanking: data => request('/v3/activity/inviteNewRank',
  31. 'get', data),
  32. // 获取授权推送消息模板
  33. setSubscribe: (data, method = 'get') => request('/v3/subscribe', method, data),
  34. // 生成用户分享二维码
  35. createWxCode: data => request('/qrCode', 'get', data),
  36. // 用户行为统计
  37. // 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统计)
  38. userEvent: data => request('/userEvent/v2', 'post', data),
  39. }