浏览代码

新闻动态更新

guhongwei 5 年之前
父节点
当前提交
6e99ace488
共有 1 个文件被更改,包括 8 次插入7 次删除
  1. 8 7
      src/layout/index/news.vue

+ 8 - 7
src/layout/index/news.vue

@@ -11,13 +11,14 @@
           </el-col>
         </el-col>
         <el-col :span="24" class="newsMain">
-          <el-col class="chengguolist" :span="24" v-for="(tag, index) in newslist" :key="index" :type="tag.type"
-                  @click="$router.push({ path: '/detail', params:{id:tag.id} })">
-            <el-col :span="20">
-              {{tag.title}}
-            </el-col>
-            <el-col :span="4" style="text-align:right;">
-              {{tag.time}}
+          <el-col :span="24" v-for="(tag, index) in newslist.children" :key="index" :type="tag.type" >
+            <el-col class="chengguolist" :span="24" v-for="(item, index) in tag.children" :key="index">
+              <el-col :span="20" @click="$router.push({ path: '/detail', params:{id:item.id} })">
+                {{item.title}}
+              </el-col>
+              <el-col :span="4" style="text-align:right;">
+                {{item.publish_time}}
+              </el-col>
             </el-col>
           </el-col>
         </el-col>