lex 2 лет назад
Родитель
Сommit
cebf18b1fb

+ 3 - 0
src/student/teacher-dependent/components/single.module.less

@@ -91,6 +91,9 @@
   font-size: 16px;
   color: #1a1a1a;
   line-height: 22px;
+  .title {
+    max-width: 160px;
+  }
 }
 
 .videoGroup {

+ 3 - 1
src/student/teacher-dependent/components/single.tsx

@@ -147,7 +147,9 @@ export default defineComponent({
                   ),
                   title: () => (
                     <div class={styles.fansTitle}>
-                      <div class={styles.title}>{item.name}</div>
+                      <div class={[styles.title, 'van-ellipsis']}>
+                        {item.name}
+                      </div>
                       <p class="van-ellipsis">{item.introduce}</p>
                     </div>
                   ),

+ 1 - 1
src/student/teacher-dependent/model/teacher-header.module.less

@@ -321,7 +321,7 @@
       bottom: -6px;
     }
     .liveTag {
-      bottom: -30px;
+      // bottom: -30px;
       width: 80%;
     }
     .avatar {

+ 13 - 11
src/student/teacher-dependent/teacher-follow.tsx

@@ -195,18 +195,20 @@ export default defineComponent({
                         fit="cover"
                       />
 
-                      {item.liveFlag === 1 && (
-                        <p class={styles.liveTag}>直播中</p>
+                      {item.liveFlag === 1 ? (
+                        <p class={[styles.liveTag, styles.liveTagFollow]}>
+                          直播中
+                        </p>
+                      ) : (
+                        <Image
+                          class={styles.teacherIconVip}
+                          src={
+                            this.checkBadge('VIP', item.teacher)
+                              ? getAssetsHomeFile('vip_active.png')
+                              : getAssetsHomeFile('vip_default.png')
+                          }
+                        />
                       )}
-
-                      <Image
-                        class={styles.teacherIconVip}
-                        src={
-                          this.checkBadge('VIP', item.teacher)
-                            ? getAssetsHomeFile('vip_active.png')
-                            : getAssetsHomeFile('vip_default.png')
-                        }
-                      />
                     </div>
                   </div>