feat: 前端重构

This commit is contained in:
anonymous
2025-01-07 18:04:40 +08:00
parent dbb57f07c3
commit 21d8f75f6a
43 changed files with 705 additions and 359 deletions
+14 -3
View File
@@ -54,8 +54,11 @@
mode="aspectFit"
/>
<view class="text-center mt-15 text-14 text-#999">您的实名认证正在审核中请耐心等待</view>
<button class="btn-gradient px-30 text-white rounded-full m-15 text-16" @click="onBack">
返回
<button
class="btn-gradient px-30 text-white rounded-full m-15 text-16"
@click="userStore.logout"
>
退出登录
</button>
</template>
<template v-else-if="Number(realnameInfo.status) === 2">
@@ -65,7 +68,7 @@
mode="aspectFit"
/>
<view class="text-center mt-15 text-14 text-#999">恭喜您实名认证成功</view>
<button class="btn-gradient px-30 text-white rounded-full m-15 text-16" @click="onBack">
<button class="btn-gradient px-30 text-white rounded-full m-15 text-16" @click="onGoHome">
返回
</button>
</template>
@@ -93,6 +96,8 @@ import { useUserStore } from '@/store'
import { showModal } from '@/utils'
import { ref } from 'vue'
const userStore = useUserStore()
const form = ref({
realname: '',
cardnum: '',
@@ -114,6 +119,12 @@ const onSubmit = async () => {
})
}
const onGoHome = () => {
uni.reLaunch({
url: '/',
})
}
const realnameInfo = ref(null)
onLoad(async () => {
realnameInfo.value = await getRealNameAuthAPI().then((res) => {