feat: add index page for mobile

This commit is contained in:
RockYang
2024-04-28 19:09:26 +08:00
parent b354b88876
commit 99df028237
28 changed files with 640 additions and 349 deletions

View File

@@ -11,7 +11,7 @@
style="width:90%;max-width: 360px;"
>
<slide-captcha
v-if="isIphone()"
v-if="isMobile()"
:bg-img="bgImg"
:bk-img="bkImg"
:result="result"
@@ -42,8 +42,9 @@ import {ElMessage} from "element-plus";
import {httpGet, httpPost} from "@/utils/http";
import CaptchaPlus from "@/components/CaptchaPlus.vue";
import SlideCaptcha from "@/components/SlideCaptcha.vue";
import {isIphone} from "@/utils/libs";
import {isMobile} from "@/utils/libs";
// eslint-disable-next-line no-undef
const props = defineProps({
receiver: String,
size: String,
@@ -98,8 +99,8 @@ const loadCaptcha = () => {
}
showCaptcha.value = true
// iphone 手机用滑动验证码
if (isIphone()) {
// 手机用滑动验证码
if (isMobile()) {
getSlideCaptcha()
} else {
handleRequestCaptCode()