api.js 822 B

123456789101112
  1. import request from './request'
  2. export default {
  3. getOpenid: (data) => request('POST', `code2userinfo`,data),//获取openid
  4. createActivity: (data) => request('POST', 'activity/create', data), //创建活动
  5. bindphone: (data) => request('POST', 'bindphone', data), //绑定手机号
  6. list_public: () => request('GET', 'activity/list_public'), //获取活动列表
  7. binduserinfo: (data) => request('POST','binduserinfo',data), //绑定个人信息
  8. activity_attend: (data) => request('POST', 'activity/attend', data), //参加活动
  9. activity_list_mine: (data) => request('GET', `activity/list_mine/${data}`), //获取我的活动列表
  10. activity_id: (data) => request('GET', `activity/id/${data}`), //获取活动详情
  11. activity_update: (data) => request('PUT', 'activity/update', data), //更新活动详情
  12. };