feat: x5初始化

This commit is contained in:
anonymous
2025-01-14 12:10:43 +08:00
parent c3ff2e3f4f
commit 2b43b95fdb
60 changed files with 433 additions and 551 deletions
+21 -9
View File
@@ -3,19 +3,21 @@
style: {
navigationBarTitleText: '实名认证',
navigationBarBackgroundColor: '#fff',
navigationStyle: 'custom',
},
}
</route>
<template>
<view class="withdrawal-type-edit-page pb-100 min-h-screen">
<view class="realname-page min-h-screen">
<NavBar title-color="#333" />
<template v-if="!realnameInfo">
<view class="p-15 m-15 shadow-[0_0_10px_rgba(10,68,245,0.1)] rounded-10">
<view class="flex items-center py-15 text-14">
<view class="p-15 m-15 bg-white shadow-[0_0_10px_rgba(10,68,245,0.1)] rounded-10">
<!-- <view class="flex items-center py-15 text-14">
<image src="@/static/images/page-sub/realname/realname-type.png" class="w-20 h-20" />
<view class="ml-8">证件类型</view>
<view class="flex-1 text-right text-14">身份证</view>
</view>
</view> -->
<view class="flex items-center py-15 text-14">
<image src="@/static/images/page-sub/realname/realname-name.png" class="w-20 h-20" />
<view class="ml-8">真实姓名</view>
@@ -92,11 +94,12 @@
</button>
</template>
<template v-else-if="Number(realnameInfo.status) === 2">
<image
<!-- <image
src="@/static/images/page-sub/realname/realname-success.png"
class="w-150 h-150 block"
mode="aspectFit"
/>
/> -->
<wd-status-tip image="comment" />
<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="onGoHome">
返回
@@ -121,6 +124,7 @@
</template>
<script setup lang="ts">
import NavBar from '@/components/NavBar.vue'
import { getRealNameAuthAPI, realNameAuthAPI } from '@/service'
import { useUserStore } from '@/store'
import { mergeStep, showModal } from '@/utils'
@@ -151,12 +155,12 @@ const onSubmit = mergeStep(async () => {
// await showModal('请上传身份证照片')
// return
// }
await realNameAuthAPI({
const res = await realNameAuthAPI({
...form.value,
// zcardimage: zcardimage.value,
// fcardimage: fcardimage.value,
})
await showModal('提交成功,请耐心等待审核!')
await showModal(res.msg ? res.msg : '提交成功,请耐心等待审核!')
realnameInfo.value = await getRealNameAuthAPI().then((res) => {
return res.data
})
@@ -179,8 +183,16 @@ onLoad(async () => {
})
</script>
<style lang="scss" scoped>
.withdrawal-type-edit-page {
.realname-page {
--wot-input-placeholder-color: #889bc6;
--wot-cell-wrapper-padding: 0;
box-sizing: border-box;
min-height: 100vh;
padding-bottom: 200rpx;
// background-repeat: no-repeat;
// background-size: cover;
background:
url('@/static/images/brand-person.png') right 40rpx bottom / 60% no-repeat,
linear-gradient(180deg, #fff3eb 0%, #ffffff 100%);
}
</style>