api.js 646 B

12345678910
  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. };