Authored by 郭成尧

'去掉tag'

<template>
<resources v-bind:content-code.sync="contentCode"></resources>
<div v-for="news in newsList" class="news-box" v-infinite-scroll="getNewsList()">
<span v-if='news.categoryName !== "最新"' class="tag">{{news.categoryName}}</span>
<div class="img">
<a href='{{"/news/" + news.id}}'>
<img v-lazy="news.src | resize 750 470" alt="" />
... ... @@ -23,15 +22,6 @@
.news-box {
background: #f6f6f6;
.tag {
position: relative;
top: 42px;
left: 0;
padding: 12px 24px;
background: #000;
color: #fff;
}
.img {
width: 100%;
height: 470px;
... ...