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, + }, + }), }