Przeglądaj źródła

fix: 样式调整

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe 6 miesięcy temu
rodzic
commit
961ab8696e
1 zmienionych plików z 14 dodań i 7 usunięć
  1. 14 7
      apps/mobile/src/views/entgroup/index.vue

+ 14 - 7
apps/mobile/src/views/entgroup/index.vue

@@ -21,6 +21,7 @@
     </div>
     </div>
     <van-dialog
     <van-dialog
       v-model="showAddGroupingDialog"
       v-model="showAddGroupingDialog"
+      width="303px"
       class="add-grouping-dialog"
       class="add-grouping-dialog"
       title="新增分组"
       title="新增分组"
       :show-confirm-button="false"
       :show-confirm-button="false"
@@ -88,7 +89,8 @@ export default {
       }
       }
     },
     },
     setGroupEvent(data) {
     setGroupEvent(data) {
-      if (data.name === '默认分组') return
+      if (data.name === '默认分组')
+        return
       this.$router.push({
       this.$router.push({
         path: '/entgroup/detail',
         path: '/entgroup/detail',
         query: {
         query: {
@@ -105,12 +107,13 @@ export default {
       if (this.groupingName === '') {
       if (this.groupingName === '') {
         this.errorMessageText = '分组名称不能为空'
         this.errorMessageText = '分组名称不能为空'
         this.isConfirmButtonDisabled = true
         this.isConfirmButtonDisabled = true
-      } else {
+      }
+      else {
         const exists = this.groupList.some(
         const exists = this.groupList.some(
-          (item) => item.name === this.groupingName
+          item => item.name === this.groupingName
         )
         )
         if (exists) {
         if (exists) {
-          this.errorMessageText = '分组已存在'
+          this.errorMessageText = '分组名称已存在'
           this.isConfirmButtonDisabled = true
           this.isConfirmButtonDisabled = true
         }
         }
       }
       }
@@ -125,7 +128,8 @@ export default {
         this.groupingName = ''
         this.groupingName = ''
         this.showAddGroupingDialog = false
         this.showAddGroupingDialog = false
         this.getMyFollowList()
         this.getMyFollowList()
-      } else {
+      }
+      else {
         this.$toast('新增分组失败')
         this.$toast('新增分组失败')
       }
       }
     }
     }
@@ -159,16 +163,19 @@ export default {
           flex: 1;
           flex: 1;
           font-size: 18px;
           font-size: 18px;
           border: none;
           border: none;
-          border-top: 0.5px solid rgba(0, 0, 0, 0.1);
+          border-top: 1px solid rgba(0, 0, 0, 0.1);
           &.confirm-button {
           &.confirm-button {
             color: #2abed1;
             color: #2abed1;
-            border-left: 0.5px solid rgba(0, 0, 0, 0.1);
+            border-left: 1px solid rgba(0, 0, 0, 0.1);
           }
           }
         }
         }
       }
       }
       .van-cell {
       .van-cell {
         padding: 0 16px;
         padding: 0 16px;
         margin: 16px 0 22px 0;
         margin: 16px 0 22px 0;
+        &::after {
+          border: 0;
+        }
         .van-field__body {
         .van-field__body {
           padding-bottom: 11px;
           padding-bottom: 11px;
           border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
           border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);