登录模块接口对接完毕

This commit is contained in:
仲么了
2023-03-22 14:09:51 +08:00
parent c308a7131b
commit 02e950130d
4 changed files with 61 additions and 14 deletions

View File

@@ -77,4 +77,30 @@ export function apiReSetPsd(params) {
},
method: 'POST'
})
}
// 更换手机号第一步
export function apiComfirmCode (params) {
return request({
url: '/shiningCloud/user/comfirmCode',
data: {
devCode: uni.getStorageSync('cidAES'),
phone: params.phone,
code: params.code.trim()
},
method: 'POST'
})
}
// 重新绑定手机号
export function apiRebindPhone (params) {
return request({
url: '/shiningCloud/user/rebindPhone',
data: {
devCode: uni.getStorageSync('cidAES'),
userId: uni.getStorageSync('userInfo').userId,
phoneNew: params.phone,
code: params.code.trim()
},
method: 'POST'
})
}