Browse Source

页面调整

y595705120 3 weeks ago
parent
commit
0d4459c398

+ 18 - 0
src/containers/center/market/index.css

@@ -46,3 +46,21 @@
     background-color: #5a9fd9 !important;
     transform: translate(2px);
 }
+
+.manual-tooltip {
+    position: fixed;
+    z-index: 9999;
+    background-color: rgba(0, 0, 0, 0.7);
+    color: white;
+    padding: 4px 8px;
+    border-radius: 4px;
+    font-size: 12px;
+    pointer-events: none;
+    white-space: nowrap;
+  }
+
+  /* 仅添加必要的激活状态样式,不改变尺寸 */
+  .type_active {
+    color: #409EFF;
+    font-weight: 500;
+  }

+ 4 - 4
src/containers/center/market/index.vue

@@ -33,7 +33,7 @@
 
         <el-col :span="6" v-for="item in typeList" :key="item.id" v-if="item.isOpen && item.isNew==0 && !item.link">
           <el-button :class="{type_active:item.name==type }" class="type_item" type="text"
-            @click="type=item.name">{{item.name}} </el-button>
+            @click="type=item.name">{{item.name}}</el-button>
         </el-col>
 
 
@@ -480,12 +480,12 @@
         this.list = [];
         for (let i in this.allList) {
           let item = this.allList[i];
-          if (type && item.type != type) continue;
+          if (type != '' && item.type != type) continue;
           if (this.ndList.indexOf(item.nd) == -1) {
             this.ndList.push(item.nd);
           }
-          if (filterName && item.name.indexOf(filterName) == -1) continue;
-          if (nd && item.nd != nd) continue;
+          if (filterName!='' && item.name.indexOf(filterName) == -1) continue;
+          if (nd != '' && item.nd != nd) continue;
           this.list.push(item)
         }
       },

+ 4 - 3
src/containers/center/market/trainIndex.vue

@@ -439,12 +439,12 @@
         this.list  = [];
         for(let i in this.allList){
           let item = this.allList[i];
-          if( type && item.type != type) continue;
+          if( type != '' && item.type != type) continue;
           if(this.ndList.indexOf(item.nd) == -1){
             this.ndList.push(item.nd);
           }
-          if(filterName && item.name.indexOf(filterName) == - 1) continue;
-          if(nd  && item.nd != nd ) continue;
+          if(filterName!='' && item.name.indexOf(filterName) == - 1) continue;
+          if(nd != ''  && item.nd != nd ) continue;
           this.list.push(item)
         }
 
@@ -608,3 +608,4 @@
       position: relative;
   }
 </style>
+ss