first commit
This commit is contained in:
77
金壶/appV1/utils/models/x_login.js
Normal file
77
金壶/appV1/utils/models/x_login.js
Normal file
@@ -0,0 +1,77 @@
|
||||
import {http_use,http_post} from '../http.js'
|
||||
import api from '../api'
|
||||
|
||||
class X_login {
|
||||
//X_accountInfo
|
||||
// 对公账号信息
|
||||
async X_accountInfo() {
|
||||
|
||||
let res = await http_post(api.X_accountInfo, {
|
||||
|
||||
})
|
||||
return res
|
||||
}
|
||||
// 注册
|
||||
async x_register(phone,smscode,password) {
|
||||
|
||||
let res = await http_post(api.x_register, {
|
||||
phone,
|
||||
smscode,
|
||||
password
|
||||
})
|
||||
return res
|
||||
}
|
||||
// 手机短信验证码
|
||||
async phonecode_app(phone,smscode,status) {
|
||||
|
||||
let res = await http_post(api.phonecode_app, {
|
||||
phone,
|
||||
smscode,
|
||||
status
|
||||
})
|
||||
return res
|
||||
}
|
||||
// 登录
|
||||
async login(phone,password,appid,timestamp,sign) {
|
||||
|
||||
let res = await http_post(api.login, {
|
||||
phone,
|
||||
password,
|
||||
appid,
|
||||
timestamp,
|
||||
sign
|
||||
})
|
||||
return res
|
||||
}
|
||||
// 忘记密码
|
||||
async forgetPassword_app(phone,smscode,password) {
|
||||
|
||||
let res = await http_post(api.forgetPassword_app, {
|
||||
phone,
|
||||
smscode,
|
||||
password
|
||||
})
|
||||
return res
|
||||
}
|
||||
// 个人中心手机号码
|
||||
async x_tell() {
|
||||
|
||||
let res = await http_post(api.x_tell, {
|
||||
|
||||
})
|
||||
return res
|
||||
}
|
||||
// X_editphone 登录后修改密码
|
||||
async X_editphone(ordpassword,password) {
|
||||
|
||||
let res = await http_post(api.X_editphone, {
|
||||
ordpassword,
|
||||
password
|
||||
})
|
||||
return res
|
||||
}
|
||||
}
|
||||
export default new X_login
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user