feat: 对接完接口

This commit is contained in:
anonymous
2025-01-09 15:47:16 +08:00
parent e70ca852d8
commit ffb887f3bf
12 changed files with 416 additions and 255 deletions
+3 -3
View File
@@ -45,7 +45,7 @@
class="text-right flex-1 text-14"
placeholder="请输入验证码"
/>
<image
<img
:src="codeUrl"
class="w-100 h-30 ml-15 bg-gray-400"
mode="widthFix"
@@ -84,7 +84,7 @@ const formData = ref({
captcha: '',
})
const { codeUrl, refreshCode } = useCaptcha()
const { codeUrl, t: captchaT, refreshCode } = useCaptcha()
let redirect = '/'
onLoad((options) => {
@@ -110,7 +110,7 @@ const handleLogin = async () => {
data: {
userinfo: { token },
},
} = await loginUserAPI(formData.value)
} = await loginUserAPI({ ...formData.value, t: captchaT.value })
userStore.setToken(token)
uni.reLaunch({
url: redirect,