guhongwei 5 år sedan
förälder
incheckning
f212a0803c
2 ändrade filer med 6 tillägg och 4 borttagningar
  1. 3 2
      src/layout/news/moreList.vue
  2. 3 2
      src/views/news/moreList.vue

+ 3 - 2
src/layout/news/moreList.vue

@@ -29,7 +29,7 @@
                 <p>{{item.publish_time}}</p>
               </el-col>
               <el-col :span="24" class="content">
-                <p>{{item.content}}</p>
+                <p v-html="item.content"></p>
               </el-col>
               <el-col :span="24" class="button">
                 <el-button type="primary" @click.native="$router.push({ name: 'detail', params:{id:item.id} })">进入
@@ -131,7 +131,7 @@ p {
   color: #999;
   padding: 0 0 5px 0;
 }
-.mainRightList .content p {
+/deep/.mainRightList .content p p {
   text-indent: 2rem;
   font-size: 18px;
   line-height: 25px;
@@ -155,3 +155,4 @@ p {
   margin: 0 0 20px 0;
 }
 </style>
+

+ 3 - 2
src/views/news/moreList.vue

@@ -13,7 +13,7 @@
       </el-col>
       <el-col :span="24" class="main">
         <div class="w_1200">
-          <moreList :newsList="newsList"></moreList>
+          <moreList :newsList="newsList" :total="total"></moreList>
         </div>
       </el-col>
       <el-col :span="24" class="down">
@@ -33,7 +33,8 @@ export default {
   props: {
     topInfos: null,//头部
     topInfo: null,//数据头部
-    newsList:null,//新闻列表
+    newsList: null,//新闻列表
+    total: null,
     type: { type: Boolean, default: false }
   },
   components: {