2025-02-26 18:56:47 +08:00

54 lines
3.6 KiB
Plaintext

<view class='container newcontainer'>
<swiper class='swiper' current="{{ swiperCurrent }}" style="height: {{ swiperHeightObj[current] }}rpx;" wx:if="{{ attachment.length > 0 }}" autoplay="{{autoplay}}" circular="{{ circular }}" interval="{{interval}}" duration="{{duration}}" bindanimationfinish="bindchangeSwiper">
<block wx:for="{{ attachment }}" wx:key="index">
<swiper-item>
<form bindsubmit="send_form_id" report-submit='true' data-types="confirm" class='submit-form' data-type="{{ item.type }}" data-statid="{{ item.statid }}" data-url='{{ item.url }}' data-appid="{{ item.appid }}" data-finderUserName="{{ item.finderUserName }}" data-feedId="{{ item.feedId }}">
<view class="img-box">
<block wx:if="{{ index >= swiperCurrent - 1 && index <= swiperCurrent + 1 }}">
<image src="{{ item.image || item.imageurl }}" data-index="{{ index }}" bindload='load' class="slide-image" mode="widthFix" bindtap='previewImg' />
</block>
<image wx:if="{{ item.islive == 1 || item.isvideo == 1 }}" class="play-btn" src="/img/play-btn.svg" data-video="{{ item.video }}"></image>
</view>
<button form-type="submit" hover-class="none" type="default" size="mini"></button>
</form>
</swiper-item>
</block>
</swiper>
<block wx:if="{{ pages!='apartmentDetail'}}">
<view class="{{isInner>0 ? 'indicatorDots indicatorDots-inner2':'indicatorDots indicatorDots-inner'}}" wx:if="{{ attachment.length>0}}">
<view class='inner'>
<view class="{{current==index ?'i active': 'i'}}" wx:for="{{ attachment }}" wx:key="index"></view>
</view>
</view>
</block>
<block wx:if="{{ pages=='apartmentDetail' }}">
<view class="text" wx:if="{{ tab == 'img' }}">{{ (current - videoLength - liveLength) + 1 + '/' + imgLength }}</view>
<view class="text" wx:if="{{ tab == 'video' }}">{{ (current - liveLength) + 1 + '/' + videoLength }}</view>
<view class="text" wx:if="{{ tab == 'live' }}">{{ current + 1 + '/' + liveLength }}</view>
<view class="tab" wx:if="{{ (videoLength>0&& imgLength>0) || (liveLength>0&& imgLength>0) || (liveLength>0&& videoLength>0) }}">
<view wx:if="{{ liveLength > 0 }}" class="{{ tab=='live' ? 'item active':'item'}}" data-tab="live" bindtap='changeTab'>
<view class="inner">
<view class="texts">直播</view>
</view>
</view>
<view wx:if="{{ videoLength > 0 }}" class="{{tab=='video' ? 'item active':'item'}}" data-tab="video" bindtap='changeTab'>
<view class="inner">
<view class="texts">视频</view>
</view>
</view>
<view wx:if="{{ imgLength > 0 }}" class="{{tab=='img' ? 'item active':'item'}}" data-tab="img" bindtap='changeTab'>
<view class="inner">
<view class="texts">图片</view>
</view>
</view>
</view>
</block>
<view class='video-box' wx:if="{{ video }}">
<video src="{{ video }}" custom-cache="{{false}}" autoplay='true'>
<cover-view bindtap="closePage" style="top:{{ screen_data.statusBarHeight -5 }}px;height:{{ screen_data.titleBarHeight +10 }}px;width:{{ screen_data.titleBarHeight +10 }}px" class="cover">
<cover-image class="image" src="/img/close-f.png"></cover-image>
</cover-view>
</video>
</view>
</view>