瀏覽代碼

美化首页

qukaidi 4 年之前
父節點
當前提交
d4f13e7cb4
共有 1 個文件被更改,包括 9 次插入2 次删除
  1. 9 2
      src/views/index.vue

+ 9 - 2
src/views/index.vue

@@ -416,8 +416,15 @@
           :More="true"
         >
           <div slot="content" style="height: 312px">
-            <div style="padding: 5px 5px 0 5px; font-size: 16px" v-for="(item,index) in tableDataTwo" :key="index">
-              {{item.noticeTitle}}
+            <div
+              style="padding: 5px 5px 0 5px; font-size: 14px"
+              v-for="(item, index) in tableDataTwo"
+              :key="index"
+              :style="{
+                backgroundColor: index % 2 == 0 ? '#fafbfd' : '#FFFFFF',
+              }"
+            >
+              {{ item.noticeTitle }}
             </div>
           </div>
         </chi-card>