| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 | <template name="news">	<view slot="gBody" class="grace-body">		<!-- 标题 -->		<text :class="['grace-art-margin', 'grace-art-title', graceSkeleton  ? 'grace-skeletons' : '']">{{item.name}}</text>		<!-- 作者信息 -->		<view class="grace-art-margin grace-nowrap grace-flex-vcenter" v-if="info">			<view :class="['grace-art-author','grace-nowrap','grace-flex-vcenter', graceSkeleton ? 'grace-skeletons' : '']">				<image class="grace-art-author-face" :src="item.author.avatar" mode="widthFix"></image>				<text v-if="item.author.name" class="grace-art-author-name">{{item.author.name}}</text>			</view>			<text class="grace-art-btn grace-bg-green">+ 关注</text>		</view>		<!-- 其他基本信息 -->		<view :class="['grace-art-info-line','grace-art-margin','grace-space-between', graceSkeleton ? 'grace-skeletons' : '']"  v-if="info">			<text class="grace-art-info-line-text grace-icons icon-eye" v-if="item.num_view"><text style="margin-left:2px">{{item.num_view}}</text></text>			<text class="grace-art-info-line-text" v-if="item.date">发布于 : {{item.date}}</text>		</view>		<!-- 文章内容 -->		<view class="grace-art-contents">			<dever-content :item="item.content_array" :pics="item.content_pic" :skeleton="graceSkeleton"></dever-content>		</view>	</view></template><script>import deverContent from '@/lib/dever/components/content.vue';export default {	name: "news",	props: {		info : false,		graceSkeleton : true,		control : {			type : Object,			value : null		},		item : {			type    : Object,			value	: null		},	},	methods:{		start : function() {					},		stop : function() {					}	},	components:{		deverContent	}}</script><style>.grace-art-margin{margin-top:20rpx;}.grace-art-title{display:block; width:100%; font-size:38rpx; font-weight:bold; line-height:56rpx;}.grace-skeletons{background-color:#F8F8F8; border-radius:8rpx; height:60rpx;}.grace-skeletons-img{width:100%; background-color:#F8F8F8; height:300rpx; border-radius:8rpx;}.grace-art-author{width:700rpx; font-size:0;}.grace-art-author-face{width:66rpx; height:66rpx; border-radius:66rpx; margin-right:20rpx; flex-shrink:0;}.grace-art-author-name{display:block; line-height:80rpx; font-size:26rpx;}.grace-art-btn{width:120rpx; line-height:60rpx; text-align:center; border-radius:50rpx; font-size:26rpx; display:block; flex-shrink:0; margin-left:30rpx;}.grace-art-info-line{}.grace-art-info-line-text{font-size:22rpx; line-height:50rpx; color:#888888;}.grace-art-contents{padding:20rpx 0;}.grace-art-img{width:100%; margin:10rpx 0;}.grace-art-content{line-height:52rpx; font-size:28rpx;}</style>
 |