|
|
|
<wxs module="filter" src="../../../../utils/filter.wxs"></wxs>
|
|
|
|
<view class="notice-detail" hidden="{{nodata}}">
|
|
|
|
<view class="banner" wx:if="{{isNeedBanner && bannerList.length>0}}">
|
|
|
|
<view class="page-section page-section-spacing swiper">
|
|
|
|
<swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" circular="{{circular}}" interval="{{interval}}" duration="{{duration}}" bindchange="swiperChange">
|
|
|
|
<block wx:for="{{bannerList}}" wx:for-item="item" wx:for-index="index" wx:key="index">
|
|
|
|
<swiper-item>
|
|
|
|
<view data-banner="{{item}}">
|
|
|
|
<view class="swiper-item" data-id="{{item.id}}">
|
|
|
|
<!-- <view class="altitle">
|
|
|
|
<view class="altitle-name">{{item.title}}</view>
|
|
|
|
</view>
|
|
|
|
<image class="banner" src='{{item.imgUrl}}' mode="aspectFill" />-->
|
|
|
|
<video
|
|
|
|
id="myVideo"
|
|
|
|
src="{{item.videoUrl}}"
|
|
|
|
binderror="videoErrorCallback"
|
|
|
|
show-center-play-btn='{{true}}'
|
|
|
|
show-play-btn="{{true}}"
|
|
|
|
picture-in-picture-mode="{{['push', 'pop']}}"
|
|
|
|
bindplay='bindplay'
|
|
|
|
bindended='bindended'
|
|
|
|
bindenterpictureinpicture='bindVideoEnterPictureInPicture'
|
|
|
|
bindleavepictureinpicture='bindVideoLeavePictureInPicture'
|
|
|
|
></video>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</swiper-item>
|
|
|
|
</block>
|
|
|
|
</swiper>
|
|
|
|
<!-- 重置小圆点的样式 -->
|
|
|
|
<view class="dots">
|
|
|
|
<block wx:for="{{ bannerList }}" wx:key="index">
|
|
|
|
<view class="dot {{index == currentSwiper ? ' active' : '' }}"></view>
|
|
|
|
</block>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="selfContent" wx:if="{{!preloadVisible}}">
|
|
|
|
<view class="detail-title">{{noticeObj.noticeTitle}}</view>
|
|
|
|
<view class="detail-subtitle">
|
|
|
|
<view class="left">
|
|
|
|
<span>{{noticeObj.deptName}}</span>
|
|
|
|
<span>{{filter.formatTime(noticeObj.newsStartTime, 'yyyy-MM-dd')}}</span>
|
|
|
|
</view>
|
|
|
|
<view class="right">
|
|
|
|
<view class="readNum">
|
|
|
|
<image src="../images/ic_yueduliang.png" />
|
|
|
|
</view>
|
|
|
|
<view class="num">{{noticeObj.readingAmount}}</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="richContent">
|
|
|
|
<rich-text space="nbsp" nodes="{{noticeObjContent}}"></rich-text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="preload" wx:else>
|
|
|
|
<view class="preload-title"></view>
|
|
|
|
<view class="preload-content"></view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<no-data isShow="{{nodata}}"></no-data>
|