Kaynağa Gözat

更新 type对应样式

wzh 4 yıl önce
ebeveyn
işleme
afa8a67142
1 değiştirilmiş dosya ile 17 ekleme ve 1 silme
  1. 17 1
      src/components/TitleLine.vue

+ 17 - 1
src/components/TitleLine.vue

@@ -13,7 +13,9 @@
           :src="exchangeUrl(nationIcon)"
           alt=""
         />
-        <div class="end">{{ endText }}</div>
+        <div :class="['end', `${type == 3 ? 'advice' : ''}`]">
+          {{ endText }}
+        </div>
       </div>
     </div>
     <div class="underline df aic">
@@ -118,4 +120,18 @@ export default {
     border: 1px solid rgba($color: #fff, $alpha: 0.2);
   }
 }
+
+.advice {
+  width: 88px;
+  height: 24px;
+  border-radius: 1px;
+  border: 1px solid #10ffb9;
+  font-size: 12px !important;
+  font-family: PingFangSC-Regular, PingFang SC;
+  font-weight: 400;
+  color: #10ffb9 !important;
+  line-height: 24px;
+  text-align: center;
+  cursor: pointer;
+}
 </style>