feat(充值页面): 身份图标条件显隐

This commit is contained in:
hzj 2025-10-28 10:47:28 +08:00
parent d1a736197c
commit c75b3aba14

View File

@ -79,7 +79,12 @@
<div style=""> <div style="">
<div style="font-weight: 700; display: flex; align-items: center"> <div style="font-weight: 700; display: flex; align-items: center">
{{ userProfile.userNickname }} {{ userProfile.userNickname }}
<img src="../assets/icon/RA.png" alt="" style="height: 20px; margin-left: 5px" /> <img
src="../assets/icon/RA.png"
alt=""
style="height: 20px; margin-left: 5px"
v-if="isFreightAgent"
/>
</div> </div>
<div style="font-weight: 500; color: rgba(0, 0, 0, 0.4)">ID:{{ userProfile.id }}</div> <div style="font-weight: 500; color: rgba(0, 0, 0, 0.4)">ID:{{ userProfile.id }}</div>
</div> </div>
@ -181,6 +186,7 @@ const listBt = () => {
const applicationId = ref('1963531459019739137') const applicationId = ref('1963531459019739137')
const userProfile = ref({}) // const userProfile = ref({}) //
const type = ref('') // const type = ref('') //
const isFreightAgent = ref(false)
const regionId = ref('') //id const regionId = ref('') //id
@ -242,6 +248,7 @@ const setChannelName = (channelName) => {
onMounted(async () => { onMounted(async () => {
type.value = route.params.type || 'GOLD' type.value = route.params.type || 'GOLD'
isFreightAgent.value = route.query.isFreightAgent === 'true'
const PayAplication = await getPayAplication(applicationId.value) const PayAplication = await getPayAplication(applicationId.value)
console.log('PayAplication:', PayAplication) console.log('PayAplication:', PayAplication)