微信小程序登录:一键登录

This commit is contained in:
YunaiV
2023-12-23 19:45:44 +08:00
parent b23fca683b
commit 789cbe8461
6 changed files with 67 additions and 59 deletions
+18 -1
View File
@@ -65,7 +65,24 @@ const AuthUtil = {
custom: {
showSuccess: true,
loadingMsg: '登陆中',
// TODO 芋艿:登录成功???
},
});
},
// 微信小程序的一键登录
weixinMiniAppLogin: (phoneCode, loginCode, state) => {
debugger
return request({
url: '/app-api/member/auth/weixin-mini-app-login',
method: 'POST',
data: {
phoneCode,
loginCode,
state
},
custom: {
showSuccess: true,
loadingMsg: '登陆中',
successMsg: '登录成功',
},
});
},