feat: 前端重构
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user