46 lines
2.7 KiB
Plaintext
46 lines
2.7 KiB
Plaintext
<view class="found" bind:touchend="onTouchEnd" bind:touchstart="onTouchStart" capture-bind:touchforcechange="onTouchForChange">
|
|
<view class="found-cont">
|
|
<video
|
|
catch:tap="onVideoPause"
|
|
wx:if="{{lists[currentIndex].type=='video'}}"
|
|
id="found-cont-video"
|
|
src="{{lists[currentIndex].video}}"
|
|
loop="{{true}}"
|
|
controls="{{false}}"
|
|
show-center-play-btn="{{false}}"
|
|
enable-play-gesture="{{true}}"
|
|
/>
|
|
<block wx:if="{{lists[currentIndex].type=='pictures'}}">
|
|
<swiper class="swiper" bindchange="nextVideo" indicator-dots="{{true}}" indicator-color="rgba(255, 255, 255, .3)" indicator-active-color="#fff">
|
|
<swiper-item class="swiper-item" wx:for="{{lists[currentIndex].pictures}}" wx:key='idx' wx:for-index="idx" wx:for-item="it">
|
|
<image src="{{it}}" mode="widthFix" />
|
|
</swiper-item>
|
|
</swiper>
|
|
</block>
|
|
<view class="zanting" catch:tap="onVideoPause" wx:if="{{!playing && lists[currentIndex].video != ''}}" >
|
|
<image src="/static/imgs/icon-zanting.png" mode="widthFix"/>
|
|
</view>
|
|
</view>
|
|
<view class="right-cont">
|
|
<view class="right">
|
|
<image class="avatar" src="{{lists[currentIndex].user.avatar}}" mode="aspectFill" />
|
|
<view class="right-item" catch:tap="doSubscribeFavorite" data-type='favorite' data-index='{{currentIndex}}'>
|
|
<image src="{{!lists[currentIndex].is.favorite?'/static/imgs/icon_un_zan@2x.png':'/static/imgs/icon_zaned@2x.png'}}" mode="widthFix" />
|
|
<!-- {{!lists[currentIndex].is.favorite?'点赞':lists[currentIndex].count.favorite}} -->
|
|
{{lists[currentIndex].count.favorite}}
|
|
</view>
|
|
<view class="right-item" catch:tap="doSubscribeFavorite" data-type='subscribe' data-index='{{currentIndex}}'>
|
|
<image src="{{!lists[currentIndex].is.subscribe?'/static/imgs/icon_un_shou@2x.png':'/static/imgs/icon_shoued@2x.png'}}" mode="widthFix" />
|
|
<!-- {{!lists[currentIndex].is.subscribe?'收藏':lists[currentIndex].count.subscribe}} -->
|
|
{{lists[currentIndex].count.subscribe}}
|
|
</view>
|
|
<button class="right-item" open-type="share" hover-class="none" data-obj='{{lists[currentIndex]}}'>
|
|
<image style="width:40rpx;" src="/static/imgs/icon_share@2x.png" mode="widthFix" />分享
|
|
</button>
|
|
</view>
|
|
</view>
|
|
<view class="nickname" style="padding-bottom:70rpx;">
|
|
<view class="name"><span>@</span>{{lists[currentIndex].user.name}}</view>
|
|
<view class="des">{{lists[currentIndex].describe}}</view>
|
|
</view>
|
|
</view> |