This commit is contained in:
anonymous
2025-01-04 09:49:06 +08:00
parent 4ff9d1d182
commit 2516c3e049
3 changed files with 52 additions and 38 deletions
+4 -2
View File
@@ -44,11 +44,13 @@
</view>
<view class="flex flex-col items-end">
<view class="text-14 font-bold text-#FF5F5F">{{ item.money }}</view>
<view class="text-14 font-bold text-#FF5F5F">
{{ item.action === 1 ? '+' : '-' }}{{ item.money }}
</view>
<!-- <view class="text-14 font-bold text-#FF5F5F">+2000 RMB</view> -->
<!-- <view class="text-14 font-bold text-#FF5F5F">+30 </view> -->
<view class="text-14 mt-10 py-4 px-10 bg-#71C78A1A text-#71C78A" v-if="item.status === 1">
已到账
{{ item.action === 1 ? '已到账' : '已扣除' }}
</view>
</view>
</view>
+47 -35
View File
@@ -9,7 +9,47 @@
<template>
<view class="withdrawal-type-edit-page pb-100 min-h-screen">
<template v-if="Number(userStore.userInfo?.member_certification) === 0">
<template v-if="Number(userStore.userInfo?.member_certification) === 2">
<image
src="@/static/images/page-sub/realname/realname-checking.png"
class="w-150 mx-auto h-150 block"
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>
</template>
<template v-else-if="Number(userStore.userInfo?.member_certification) === 1">
<view class="flex flex-col items-center">
<image
src="@/static/images/page-sub/realname/realname-success.png"
class="w-150 h-150 block"
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>
</view>
</template>
<template v-else-if="Number(userStore.userInfo?.member_certification) === 3">
<view class="flex flex-col items-center">
<image
src="@/static/images/page-sub/realname/realname-checking.png"
class="w-150 h-150 block"
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="onReachBottom"
>
重新提交
</button>
</view>
</template>
<template v-else>
<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">
<image src="@/static/images/page-sub/realname/realname-type.png" class="w-20 h-20" />
@@ -45,38 +85,6 @@
</button>
</view>
</template>
<template v-else-if="Number(userStore.userInfo?.member_certification) === 2">
<image
src="@/static/images/page-sub/realname/realname-checking.png"
class="w-150 mx-auto h-150 block"
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>
</template>
<template v-else-if="Number(userStore.userInfo?.member_certification) === 1">
<view class="flex flex-col items-center" v-if="false">
<image
src="@/static/images/page-sub/realname/realname-success.png"
class="w-150 h-150 block"
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>
<!--
<image
src="@/static/images/page-sub/realname/realname-checking.png"
class="w-150 h-150 block"
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">重新提交</button> -->
</view>
</template>
</view>
</template>
@@ -87,7 +95,6 @@ import { showModal } from '@/utils'
import { ref } from 'vue'
const userStore = useUserStore()
const notSubmit = ref(true)
const form = ref({
credentials_name: '',
@@ -98,13 +105,18 @@ const onBack = () => {
uni.navigateBack()
}
const onReachBottom = () => {
userStore.userInfo.member_certification = null
}
const onSubmit = async () => {
if (!form.value.credentials_name || !form.value.credentials_number) {
await showModal('请填写完整信息')
return
}
await createAuthUser(form.value)
notSubmit.value = false
await showModal('提交成功')
userStore.loadUserInfo()
}
</script>
<style lang="scss" scoped>
+1 -1
View File
@@ -50,7 +50,7 @@
<Avatar class="w-40 h-40" :src="item.member_portrait" />
<view class="flex-1 flex flex-col ml-15">
<view class="text-14 text-#333">{{ item.nickname }}</view>
<view class="text-12 mt-10 text-#999">{{ item.username }}</view>
<view class="text-12 mt-10 text-#999">{{ item.from_username }}</view>
<view class="text-12 mt-10 text-#999">{{ item.create_time }}</view>
</view>
<view class="bg-#71C78A80 text-white text-12 rounded-10 px-10 py-5">邀请成功</view>