<!--packageI/newMedia/newMediaAdVideo/newMediaAdVideo.wxml-->
<view class="firstcontent" wx:if="{{firstcontent}}">
	<view class="wrap" style="{{'height:'+ heightauto +';'}}">
		<view class="my-video" hidden="{{!show}}" style="{{'height:'+ heightauto +';'}} {{'width:'+ widthauto +';'}}">
			<video id="myvideo" wx:if="{{show}}" 
				bindended="endedPlay" bindplay='onPlaying' poster="{{showVideo.cover_picture}}" 
				style="{{'height:'+ heightauto +';'}} {{'width:'+ widthauto +';'}} display:block;" src="{{showVideo.resources_url}}" loop="{{true}}"
				controls="{{false}}" object-fit="{{minStyle?'contain':'fill'}}" autoplay="{{true}}"></video>
		</view>
		<swiper style="{{'height:'+ heightauto +';'}} {{'width:'+ widthauto +';'}} position: absolute;  z-index: 10;"
			wx:if="{{popularVideo.length > 0}}" vertical="{{true}}" bindchange="popularVideoChange">
			<swiper-item wx:for="{{popularVideo}}" wx:key="index">
				<view>
					<view class="works_wrap" wx:if="{{!item.show}}" catchtap="clickSwiperbtn" data-index="{{index}}">
						<view class="poster">
							<view class="pic">
								<image id="pic_{{index}}" bindload="imgLoadFunc" src="{{item.cover_picture}}" mode='widthFix' />
							</view>
						</view>
						<view class="playWorks"></view>
						<view class="play">
							<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/find_play@2x.png" mode='widthFix' />
						</view>
					</view>
					<view class="side-bar">
						<view class="avatar view" wx:if="{{item.avatar}}">
							<view class="img" style="width: 110rpx;height: 110rpx;" catchtap="chooseUser" data-item="{{item}}">
								<image src="{{item.avatar}}" mode='widthFix' />
							</view>
							<view class="follow-box" bindtap="sendAttention" wx:if="{{!item.is_self}}" data-index="{{index}}"  data-item="{{item}}">
								<icon wx:if="{{!item.is_attention}}" class="iconfont icon-life-game-plus"></icon>
								<icon wx:else class="iconfont icon-record_go"></icon>
              </view>
						</view>
						<content-statistics-bar path="adVideo" details="{{item}}" bind:commentClick="setCommentShow" bind:reward="handAttentionRewaed" bind:favorites="handFavorites" bind:like="handLike" data-index="{{index}}"></content-statistics-bar>
						<view class="content_author-reward_fixed" bindtap="setRewardShow">
							<i class="iconfont icon-fontclass-dashang"></i>
							<text>{{reward_name || '打赏'}}</text>
						</view>
					</view>

					<view class="advertisement" wx:if="{{false}}">点击查看</view>
					<view class="play-video" wx:if="{{item.show}}" catchtap="clickSwiperbtn" data-index="{{index}}"></view>
				</view>
			</swiper-item>
		</swiper>
	</view>
</view>


<!-- 评论 -->
<comment commentsShow="{{commentsShow}}" id="commentList" advertisingt_id="{{showVideo.id}}" bind:closeComment="setCommentShow"  bind:reward="handAttentionRewaed" bind:commentSuccess="handCommentSuccess"></comment>

<!-- 打赏弹窗 -->
<reward-popup show="{{rewardShow}}" details="{{showVideo}}" reward_button="{{reward_button}}" bind:close="setRewardShow"></reward-popup>

<!-- 关注后是否奖励信息 -->
<attention-rewaed attentionRewaedShow="{{attentionRewaedShow}}" attentionRewaedData="{{attentionRewaedData}}" bind:submit="setAttentionRewaedShow"></attention-rewaed>









