Browse Source

平台页面增加新闻资讯

tanxue 4 năm trước cách đây
mục cha
commit
7fbef1e81b

+ 16 - 0
assets/scss/cus-client/cus-client-common.scss

@@ -547,3 +547,19 @@ h1,h2,h3,h4,h5,h6,p{font-weight:normal;margin: 0;}
   h5{@include setFontStyle(-2);color: rgba(0,0,0,0.85);margin-bottom: 24px;text-align: center;}
   p{@include setFontStyle(-5);color: rgba(0,0,0,0.65);line-height: 22px;text-align: left;}
 }
+
+// 通用平台-新闻资讯样式
+.platform-news-information{
+  padding-bottom: 80px;
+  background: #f8f8f8;
+  ul{margin-top: 48px;}
+  li{
+    width: 50%;display: inline-block;vertical-align: top;
+    div{margin: 10px;padding:10px;border-bottom:1px dashed #666;}
+    img{width: 190px;height: 118px;float: left;margin-right: 24px;}
+    h4{@include setFontStyle(-2);color: rgba(0, 0, 0, 0.85);@include single-line-ellipsis;margin-bottom: 8px;}
+    h4:hover{color: #3e7ce7;cursor: pointer;}
+    span{display: block;@include setFontStyle(-6);color: rgba(0, 0, 0, 0.65);margin-bottom: 8px;}
+    p{@include setFontStyle(-6);height: 66px;line-height: 22px;color: rgba(0, 0, 0, 0.65);@include multi-line-ellipsis(3);}
+  }
+}

+ 1 - 3
pages/courseware/index.vue

@@ -139,9 +139,7 @@
           <li style="font-size: 16px" v-for="(item, index) in topCarousels">
             <div>
               <img :src="topCarousels[0].pic" alt="新闻资讯" />
-              <h4 @click="checkInfo(item)">
-                <span>{{ item.yyyy }}</span>{{ item.title }}
-              </h4>
+              <h4 @click="checkInfo(item)">{{ item.title }}</h4>
               <span>发布时间:{{item.yyyy }}-{{ item.mmdd }}</span>
               <p>{{ item.intro }}</p>
             </div>

+ 4 - 6
pages/examsystem/index.vue

@@ -124,12 +124,10 @@
           <ul>
             <li style="font-size: 16px" v-for="(item, index) in topCarousels">
               <div>
-                  <img :src="topCarousels[0].pic" alt="新闻资讯" />
-                <h4 @click="checkInfo(item)">
-                  <span>{{ item.yyyy }}</span>{{ item.title }}
-                </h4>
-                  <span>发布时间:{{item.yyyy }}-{{ item.mmdd }}</span>
-                  <p>{{ item.intro }}</p>
+                <img :src="topCarousels[0].pic" alt="新闻资讯" />
+                <h4 @click="checkInfo(item)">{{ item.title }}</h4>
+                <span>发布时间:{{item.yyyy }}-{{ item.mmdd }}</span>
+                <p>{{ item.intro }}</p>
               </div>
             </li>
           </ul>

+ 1 - 3
pages/trainsystem/index.vue

@@ -147,9 +147,7 @@
           <li style="font-size: 16px" v-for="(item, index) in topCarousels">
             <div>
               <img :src="topCarousels[0].pic" alt="新闻资讯" />
-              <h4 @click="checkInfo(item)">
-                <span>{{ item.yyyy }}</span>{{ item.title }}
-              </h4>
+              <h4 @click="checkInfo(item)">{{ item.title }}</h4>
               <span>发布时间:{{item.yyyy }}-{{ item.mmdd }}</span>
               <p>{{ item.intro }}</p>
             </div>