From c0707367a652911828070c5d102ef9d930c2a487 Mon Sep 17 00:00:00 2001 From: weiwei Date: Fri, 9 May 2025 18:10:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E9=AA=8C=E8=AF=81=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages.json | 7 ++ src/pages/user/deviceVerify.vue | 120 ++++++++++++++++++++++++++++++++ src/sheep/api/user.ts | 19 +++++ 3 files changed, 146 insertions(+) create mode 100644 src/pages/user/deviceVerify.vue diff --git a/src/pages.json b/src/pages.json index 8edf6d6..b4fb860 100644 --- a/src/pages.json +++ b/src/pages.json @@ -311,6 +311,13 @@ "navigationBarTitleText": "用户身份", "disableScroll": true } + }, + { + "path": "deviceVerify", + "style": { + "navigationBarTitleText": "设备验证", + "disableScroll": true + } } ] }, diff --git a/src/pages/user/deviceVerify.vue b/src/pages/user/deviceVerify.vue new file mode 100644 index 0000000..a9fc29f --- /dev/null +++ b/src/pages/user/deviceVerify.vue @@ -0,0 +1,120 @@ + + + diff --git a/src/sheep/api/user.ts b/src/sheep/api/user.ts index 337cf6d..d249dae 100644 --- a/src/sheep/api/user.ts +++ b/src/sheep/api/user.ts @@ -106,4 +106,23 @@ export default { showLoading: false, }, }), + // 根据手机号发送验证码 + getMobilePhoneCode: (mobilePhone: string) => + request({ + url: `/thirdparty/thirdPartyOAth2/loginSms?mobilePhone=${mobilePhone}`, + method: "POST", + custom: { + showLoading: false, + }, + }), + // 设备认证 + verifyDevice: (data: { mobilePhone: string; code: string }) => + request({ + url: "/thirdparty/thirdPartyOAth2/verify-device", + method: "POST", + data, + custom: { + showLoading: false, + }, + }), }