手机号绑定:接入 100%

This commit is contained in:
YunaiV
2023-12-25 23:34:25 +08:00
parent b548999e89
commit a7730ddecb
11 changed files with 301 additions and 282 deletions
-1
View File
@@ -70,7 +70,6 @@ const AuthUtil = {
},
// 微信小程序的一键登录
weixinMiniAppLogin: (phoneCode, loginCode, state) => {
debugger
return request({
url: '/app-api/member/auth/weixin-mini-app-login',
method: 'POST',
+30 -1
View File
@@ -1,4 +1,4 @@
import request from '@/sheep/request2';
import request from '@/sheep/request';
const UserApi = {
// 修改基本信息
@@ -13,6 +13,34 @@ const UserApi = {
},
});
},
// 修改用户手机
updateUserMobile: (data) => {
return request({
url: '/app-api/member/user/update-mobile',
method: 'PUT',
data,
custom: {
loadingMsg: '验证中',
showSuccess: true,
successMsg: '修改成功'
},
});
},
// 基于微信小程序的授权码,修改用户手机
updateUserMobileByWeixin: (code) => {
return request({
url: '/app-api/member/user/update-mobile-by-weixin',
method: 'PUT',
data: {
code
},
custom: {
showSuccess: true,
loadingMsg: '获取中',
successMsg: '修改成功'
},
});
},
// 修改密码
updateUserPassword: (data) => {
return request({
@@ -39,6 +67,7 @@ const UserApi = {
}
});
},
};
export default UserApi;