You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import { request } from './request'
|
|
|
|
const api = {
|
|
|
|
//忘记密码/修改密码
|
|
|
|
forgetPsw(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/forgetPsw',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
//发送验证码
|
|
|
|
sendSmsCode(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/sendSmsCode',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
//短信登录
|
|
|
|
toLogin(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/loginByCode',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
//账号登录
|
|
|
|
loginForPsw(data) {
|
|
|
|
return request({
|
|
|
|
url: '/api/loginForPsw',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
//修改用户信息
|
|
|
|
registerEditUser(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/user/registerEditUser',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
},
|
|
|
|
//用户信息
|
|
|
|
getMemberInfo(data) {
|
|
|
|
return request({
|
|
|
|
url: 'api/user/getinfo',
|
|
|
|
method: 'post',
|
|
|
|
data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export default api
|