import APIConfig from './api.js'; import efunRequest from '../utils/efunRequest'; import request from '../utils/request'; export default class user { static update_UserInfo(opts) { console.log('opts', opts); return request(APIConfig.getUserUrl(``), opts); } // 个人中心 static userMember() { return request(`http://ott80test-base.yifangjiaoyu.cn/mobile/user/member`, { method: 'get' }); } //更新个人信息 static update_UserInfo(opts) { return request(APIConfig.getUserUrl(``), opts); } //绑定微信 static bind_wechat(opts) { return request(APIConfig.getUserUrl(`/wechatBind`), opts); } //获取验证码 static getVerificationCode(phone) { return request(APIConfig.getUserUrl(`/sendCode?mobile=` + phone)); } //绑定手机号 static bind_phone(opts) { return request(APIConfig.getUserUrl(`/mobileBind`), opts); } //手机号登陆注册 static mobileLoginAndReg(opts) { return request(APIConfig.getUserUrl(`/mobileLoginAndReg`), opts); } //微信登陆 static wechatLogin(opts) { return request(APIConfig.getUserUrl(``), opts); } }