feat: user page null

This commit is contained in:
KUN1007 2023-10-22 21:41:49 +08:00
parent 3af3fa5529
commit 20032a539f
2 changed files with 24 additions and 4 deletions

View file

@ -50,6 +50,7 @@ const handleClickDonate = () => {
background-color: var(--kungalgame-white); background-color: var(--kungalgame-white);
color: var(--kungalgame-font-color-3); color: var(--kungalgame-font-color-3);
} }
.container { .container {
/* 固定宽高 */ /* 固定宽高 */
width: 400px; width: 400px;
@ -63,11 +64,13 @@ const handleClickDonate = () => {
padding: 20px; padding: 20px;
position: relative; position: relative;
border-radius: 7px; border-radius: 7px;
&:hover {
box-shadow: var(--kungalgame-shadow-1);
transition: 0.3s;
}
} }
.container:hover {
box-shadow: var(--kungalgame-shadow-1);
transition: 0.3s;
}
.title { .title {
/* 固定高度 */ /* 固定高度 */
height: 77px; height: 77px;
@ -78,9 +81,12 @@ const handleClickDonate = () => {
margin-bottom: 30px; margin-bottom: 30px;
font-size: 30px; font-size: 30px;
} }
.warning span { .warning span {
text-transform: uppercase;
color: var(--kungalgame-red-5); color: var(--kungalgame-red-5);
} }
/* 按钮的样式 */ /* 按钮的样式 */
.btn { .btn {
margin-top: 40px; margin-top: 40px;

View file

@ -102,6 +102,14 @@ onMounted(async () => {
</RouterLink> </RouterLink>
</div> </div>
</div> </div>
<!-- 如果什么都没有 -->
<div
v-if="!tidArray.length && !ridArray.length && !cidArray.length"
class="null"
>
{{ $tm('user.profile.null') }}
</div>
</div> </div>
</template> </template>
@ -174,4 +182,10 @@ onMounted(async () => {
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.null {
margin: auto;
color: var(--kungalgame-blue-2);
font-style: oblique;
}
</style> </style>