global.js 546 B

1234567891011121314151617
  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. getBannerList: data => request(`/v3/banner/${data}`, 'get', data),
  17. }