diff --git a/src/pages/login/login.vue b/src/pages/login/login.vue index 2de2c10..6a040d5 100644 --- a/src/pages/login/login.vue +++ b/src/pages/login/login.vue @@ -23,7 +23,7 @@ @@ -50,10 +50,16 @@ const onGetphonenumber: UniHelper.ButtonOnGetphonenumber = async (ev) => { const encryptedData = ev.detail.encryptedData! const iv = ev.detail.iv! // 登录请求 - await postLoginWxMinAPI({ code, encryptedData, iv }) + const res = await postLoginWxMinAPI({ code, encryptedData, iv }) // 成功提示 uni.showToast({ icon: 'none', title: '登录成功' }) } + +// 模拟手机号码快捷登录(开发练习) +const onGetphonenumberSimple = async () => { + const res = await postLoginWxMinSimpleAPI('18730880302') + uni.showToast({ icon: 'none', title: '登录成功' }) +}