hookehuyr

fix 文字显示优化

......@@ -2,10 +2,19 @@
<div class="all-book-page content-bg">
<div class="modify-top"></div>
<div class="belong-school">
<van-image round width="2rem" height="2rem" lazy-load :src="kgInfo.logo" style="vertical-align: text-bottom;" >
<van-row align="center" justify="center" style="position: relative; top: 50%; transform: translateY(-50%);">
<van-col span="2">
<van-image v-if="kgInfo.logo" round width="2rem" height="2rem" lazy-load :src="kgInfo.logo" style="vertical-align: text-bottom;" >
<template v-slot:error>加载失败</template>
</van-image>
<van-image v-else round width="2rem" height="2rem" lazy-load :src="icon_avatar" style="vertical-align: text-bottom;" >
<template v-slot:error>加载失败</template>
</van-image>
</van-col>
<van-col span="22">
<p class="title">{{ kgInfo.name }}</p>
</van-col>
</van-row>
</div>
<div class="summary">
<div class="ding left"></div>
......@@ -54,6 +63,8 @@
</template>
<script setup>
import icon_avatar from '@images/que-touxiang@2x.png'
import icon_book from '@images/shu@2x.png'
import BookCard from '@/components/BookCard/index.vue'
import ShortcutFixed from '@/components/ShortcutFixed/index.vue'
......@@ -120,6 +131,7 @@ export default {
.belong-school {
padding: 1.5rem;
padding-bottom: 0;
height: 3rem;
.title {
color: #222222;
display: inline-block;
......
......@@ -144,6 +144,7 @@ const sendCode = () => { // 发送验证码
Toast.success('发送成功');
} else {
console.warn(res.data);
if (!res.data.show) return false;
Toast({
message: res.data.msg,
icon: 'close',
......