lyc-dev #100

Merged
lyc merged 3 commits from lyc-dev into main 2024-08-05 17:05:17 +08:00
1 changed files with 7 additions and 1 deletions
Showing only changes of commit 95e9fc528a - Show all commits

View File

@ -30,7 +30,10 @@
<el-scrollbar height="450px">
<div class="textbook-item flex" v-for="item in subjectList" :class="curBookId == item.id ? 'active-item' : ''"
:key="item.id" @click="changeBook(item)">
<img :src="BaseUrl + item.avartar" class="textbook-img" alt="">
<img v-if="item.avartar" :src="BaseUrl + item.avartar" class="textbook-img" alt="">
<div v-else class="textbook-img">
<i class="iconfont icon-jiaocaixuanze" style="font-size: 40px;"></i>
</div>
<span class="book-name">{{ item.itemtitle }}</span>
</div>
</el-scrollbar>
@ -398,6 +401,9 @@ onMounted(() => {
.textbook-img {
width: 55px;
height: 70px;
display: flex;
align-items: center;
justify-content: center;
}
}