37 lines
2.1 KiB
Plaintext
37 lines
2.1 KiB
Plaintext
<header-nav inner-text="Some text">
|
|
|
|
|
|
{{ !frompage ? '视频' : (tab=='img' ? (imgIndex*1+1 + '/' + imgLength) : (videoIndex*1+1 + '/' + videoLength)) }}</header-nav>
|
|
<view class='video-box' wx:if="{{ !frompage }}">
|
|
<!-- <image src="../../img/close.png" class='close' bindtap='close_video'></image> -->
|
|
<!-- <video src="{{ src}}" loop="{{ loop }}" initial-time="{{ currentTime }}" custom-cache="{{false}}" autoplay='{{true}}'> -->
|
|
<video src="{{ src}}" id="videobox" loop="{{ loop }}" initial-time="{{ currentTime }}" custom-cache="{{false}}" autoplay='{{false}}'>
|
|
<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-view class="inner" style="height:{{ screen_data.titleBarHeight }}px;width:{{ screen_data.titleBarHeight }}px">
|
|
<cover-image class="image" src="../../img/close-f.png"></cover-image>
|
|
</cover-view>
|
|
</cover-view>
|
|
</video>
|
|
</view>
|
|
|
|
<view class="video-img-box" style="padding-top:{{screen_data.totalTopHeight}}px" wx:if="{{ frompage=='apartment' }}">
|
|
<view class="tab">
|
|
<view class="{{ tab=='video' ? 'item active':'item'}}" wx:if="{{ videoLength>0}}" data-tab="video" bindtap='changeTab'>视频({{ videoLength }})</view>
|
|
<view class="{{ tab=='img' ? 'item active':'item'}}" wx:if="{{ imgLength>0}}" data-tab="img" bindtap='changeTab'>图片({{ imgLength }})</view>
|
|
</view>
|
|
|
|
<view class="content">
|
|
<swiper class='swiper' style="height:{{ swiperHeight }}px" wx:if="{{ attachment.length>0}}" autoplay="{{autoplay}}" current="{{ current }}" circular="{{ circular }}" interval="{{interval}}" duration="{{duration}}" bindchange="bindchangeSwiper">
|
|
<block wx:for="{{ attachment }}" wx:key="index">
|
|
<swiper-item>
|
|
<view class="img-box">
|
|
<image wx:if="{{ !item.video }}" src="{{item.image }}" bindload='load' class="slide-image" mode="widthFix" />
|
|
|
|
<video src="{{ item.video }}" id="video{{ index }}" data-index="{{ index }}" wx:if="{{ item.video }}"></video>
|
|
</view>
|
|
</swiper-item>
|
|
</block>
|
|
</swiper>
|
|
|
|
</view>
|
|
</view> |