1
0

2 Commits 325f736919 ... 485fc9b1b6

Autor SHA1 Mensagem Data
  lex-xin 485fc9b1b6 Merge branch 'iteration-20240919' 1 mês atrás
  lex-xin 132a21aad5 修改样式 1 mês atrás

+ 16 - 1
src/teacher/my-fans/index.module.less

@@ -19,6 +19,16 @@
 
 .myFansContainer {
   overflow: hidden;
+
+  :global {
+    .van-cell__title {
+      flex: 1 auto;
+    }
+    .van-cell__value {
+      flex-shrink: 0;
+      flex: auto;
+    }
+  }
 }
 .myFans {
   margin: 12px 14px 0 !important;
@@ -33,6 +43,11 @@
   font-weight: 500;
   color: #1a1a1a;
   line-height: 24px;
+  padding-bottom: 4px;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  white-space: nowrap;
+  max-width: 180px;
 }
 
 .userImg {
@@ -57,7 +72,7 @@
     position: absolute;
     width: 39px;
     height: 18px;
-    bottom: -2px;
+    bottom: 0;
     left: 50%;
     margin-left: -19.5px;
   }

+ 6 - 5
src/teacher/my-fans/index.tsx

@@ -69,11 +69,12 @@ export default defineComponent({
       try {
         Dialog.confirm({
           title: '提示',
-          message: '确定删除该粉丝吗?',
-          confirmButtonColor: 'var(--van-primary)'
+          message: '确定移除该粉丝吗?',
+          confirmButtonColor: 'var(--van-primary)',
+          confirmButtonText: "确定"
         }).then(async () => {
           await request.post('/api-teacher/teacher/delFans/' + item.userId)
-          Toast('除成功')
+          Toast('除成功')
 
           this.params.page = 1;
           this.list = []
@@ -122,9 +123,9 @@ export default defineComponent({
                         </div>
                       </div>
                     ),
-                    value: () => <div class={styles.btnGroup}>
+                    value: () => 
                       <span class={styles.removeBtn} onClick={() => this.onRemove(item)}>移除</span>
-                    </div>
+               
                   }}
                 />
               )