fix: bug
This commit is contained in:
@@ -44,11 +44,13 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="flex flex-col items-end">
|
<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">+2000 RMB</view> -->
|
||||||
<!-- <view class="text-14 font-bold text-#FF5F5F">+30 点</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">
|
<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>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -9,7 +9,47 @@
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<view class="withdrawal-type-edit-page pb-100 min-h-screen">
|
<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="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="flex items-center py-15 text-14">
|
||||||
<image src="@/static/images/page-sub/realname/realname-type.png" class="w-20 h-20" />
|
<image src="@/static/images/page-sub/realname/realname-type.png" class="w-20 h-20" />
|
||||||
@@ -45,38 +85,6 @@
|
|||||||
</button>
|
</button>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</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>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -87,7 +95,6 @@ import { showModal } from '@/utils'
|
|||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
|
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
const notSubmit = ref(true)
|
|
||||||
|
|
||||||
const form = ref({
|
const form = ref({
|
||||||
credentials_name: '',
|
credentials_name: '',
|
||||||
@@ -98,13 +105,18 @@ const onBack = () => {
|
|||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const onReachBottom = () => {
|
||||||
|
userStore.userInfo.member_certification = null
|
||||||
|
}
|
||||||
|
|
||||||
const onSubmit = async () => {
|
const onSubmit = async () => {
|
||||||
if (!form.value.credentials_name || !form.value.credentials_number) {
|
if (!form.value.credentials_name || !form.value.credentials_number) {
|
||||||
await showModal('请填写完整信息')
|
await showModal('请填写完整信息')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
await createAuthUser(form.value)
|
await createAuthUser(form.value)
|
||||||
notSubmit.value = false
|
await showModal('提交成功')
|
||||||
|
userStore.loadUserInfo()
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
<Avatar class="w-40 h-40" :src="item.member_portrait" />
|
<Avatar class="w-40 h-40" :src="item.member_portrait" />
|
||||||
<view class="flex-1 flex flex-col ml-15">
|
<view class="flex-1 flex flex-col ml-15">
|
||||||
<view class="text-14 text-#333">{{ item.nickname }}</view>
|
<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 class="text-12 mt-10 text-#999">{{ item.create_time }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="bg-#71C78A80 text-white text-12 rounded-10 px-10 py-5">邀请成功</view>
|
<view class="bg-#71C78A80 text-white text-12 rounded-10 px-10 py-5">邀请成功</view>
|
||||||
|
|||||||
Reference in New Issue
Block a user