global.js 970 B

1234567891011121314151617181920212223242526
  1. import {
  2. request
  3. } from "../utils/request";
  4. module.exports = {
  5. //获取充值配置信息
  6. getProducts: data => request('/v3/product', 'get', data),
  7. // 购买vip
  8. buyVip: data => request('/order', 'post', data, true),
  9. // 购买次数
  10. buyNum: data => request('/v3/pay', 'post', data),
  11. // 获取任务配置
  12. getTasks: data => request('/v3/task', 'get', data),
  13. // 提交任务
  14. submitTask: data => request('/v3/task', 'post', data),
  15. // 行为记录接口
  16. /*
  17. NEW_YEAR_ACTIVITY_BANNER("banner点击数"),
  18. NEW_YEAR_ACTIVITY_CHOOSE_TEMPLATE("各模板选择数"),
  19. NEW_YEAR_ACTIVITY_GENERATE_TEMPLATE("各模板生成的作品数"),
  20. NEW_YEAR_ACTIVITY_SEND_BLESSING("发送祝福按钮点击数"),
  21. NEW_YEAR_ACTIVITY_APP_LINK("小程序链接点开数"),
  22. NEW_YEAR_ACTIVITY_SHARE("分享按钮点击数"),
  23. NEW_YEAR_ACTIVITY_PLAY_TOO("我也要玩点击数"),
  24. */
  25. actionRecord: data => request('/userEvent/v2', 'post', data),
  26. }