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.
45 lines
664 B
45 lines
664 B
import { request } from './request'
|
|
const api = {
|
|
|
|
//发送验证码
|
|
sendMsm(data) {
|
|
return request({
|
|
url: 'api/sendSmsCode',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//登录
|
|
toLogin(data) {
|
|
return request({
|
|
url: 'api/loginByCode',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//授权登录
|
|
mnpLogin(data) {
|
|
return request({
|
|
url: 'api/Login/mnpLogin',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//修改用户信息
|
|
editMember(data) {
|
|
return request({
|
|
url: 'api/user/profile',
|
|
method: 'post',
|
|
data
|
|
})
|
|
},
|
|
//用户信息
|
|
getMemberInfo(data) {
|
|
return request({
|
|
url: 'api/user/getinfo',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
}
|
|
export default api |