<template name="tempCommonList">

	<block wx:for="{{postsList}}" wx:key="id">
		<view class="list-item-ad" index="{{index}}" wx:if="{{index%item.listAdEvery ==0  && index!=0 && item.listAd =='1' && item.listAdId !=''  && listAdsuccess}}">
			<block wx:if="{{(index/item.listAdEvery)%2==0}}">
				<ad unit-id="{{item.videoAdId}}" ad-type="video" ad-theme="white" binderror="adbinderror"></ad>
			</block>
			<block wx:else>
				<ad unit-id="{{item.listAdId}}" ad-intervals="30" binderror="adbinderror"></ad>
			</block>
		</view>
		<view class="cent-div" index="{{index}}" id="{{item.id}}" bindtap="redictDetail">
			<view class="cent-dw">
				<view class="cnet-img-w">
					<image class="fr-swiper-img" src="{{item.post_medium_image}}" mode="aspectFill"></image>
				</view>
				<view class="cent-wz-h">{{item.title.rendered}}</view>
				<view class="cent-wz-f">
					<rich-text nodes="	{{item.excerpt.rendered}}"></rich-text>
				</view>
				<view class="cent-wz-icon">
					<view class="post-data">
						<image src="../../images/calendar.png"></image>
						<text>{{item.date}}</text>
						<image src="../../images/comments.png"></image>
						<text class="">{{item.total_comments}}</text>
						<image src="../../images/home-like.png"></image>
						<text class="">{{item.like_count}}</text>
						<image src="../../images/pageviews.png"></image>
						<text class="">{{item.pageviews}}</text>
					</view>
				</view>
			</view>
		</view>
	</block>
</template>
