💄 fix render err

This commit is contained in:
目棃
2025-01-20 09:00:30 +08:00
parent ae88c4b5ab
commit d0669d4a32

View File

@@ -6,21 +6,30 @@
</div> </div>
<div class="tcb-top-active" v-else> <div class="tcb-top-active" v-else>
<span>今天是</span> <span>今天是</span>
<TMiImg <div v-for="i in cur" :key="i.role_id">
v-for="i in cur" <TMiImg
:key="i.role_id" :src="i.head_icon"
class="tcb-cur" :alt="i.name"
:alt="i.name" :title="i.name"
:src="i.head_icon" :ori="true"
:title="i.name" v-if="i.head_icon.startsWith('http')"
:ori="true" />
/> <img @click="toBirth(true)" :src="i.head_icon" alt="empty" class="tcb-cur" v-else />
</div>
<span>的生日哦~</span> <span>的生日哦~</span>
<img @click="toBirth(true)" src="/source/UI/act_birthday.png" alt="empty" class="active" /> <img @click="toBirth(true)" src="/source/UI/act_birthday.png" alt="empty" class="active" />
</div> </div>
<div>即将到来{{ next[0].role_birthday }}</div> <div>即将到来{{ next[0].role_birthday }}</div>
<div v-for="i in next" :key="i.role_id" class="tcb-item"> <div v-for="i in next" :key="i.role_id" class="tcb-item">
<TMiImg :src="i.head_icon" :alt="i.name" @click="toBirth(i)" :title="i.name" :ori="true" /> <TMiImg
v-if="i.head_icon.startsWith('http')"
:src="i.head_icon"
:alt="i.name"
@click="toBirth(i)"
:title="i.name"
:ori="true"
/>
<img v-else :src="i.head_icon" alt="empty" @click="toBirth(i)" />
<div class="tcb-item-info"> <div class="tcb-item-info">
<span>{{ i.name }} 所属{{ i.belong === "" ? "未知" : i.belong }}</span> <span>{{ i.name }} 所属{{ i.belong === "" ? "未知" : i.belong }}</span>
<span>{{ parseDesc(i.introduce) }}</span> <span>{{ parseDesc(i.introduce) }}</span>
@@ -48,8 +57,10 @@ onBeforeMount(async () => {
if (check.length !== 0) { if (check.length !== 0) {
isBirthday.value = true; isBirthday.value = true;
cur.value = check; cur.value = check;
console.log(cur.value);
} }
next.value = TSAvatarBirth.getNextAvatarBirth(); next.value = TSAvatarBirth.getNextAvatarBirth();
console.log(next.value);
}); });
function toBirth(type: TGApp.Archive.Birth.RoleItem | true): void { function toBirth(type: TGApp.Archive.Birth.RoleItem | true): void {