You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
2.1 KiB
48 lines
2.1 KiB
<view class="dept-list">
|
|
<!-- banner swiperBannerList -->
|
|
<view class="banner" wx:if="{{swiperBannerList.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="{{swiperBannerList}}" 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 wx:if="{{item.imgUrl}}" class="banner" src='{{item.imgUrl}}' mode="aspectFill" />
|
|
<block wx:elif="{{item.videoUrl}}">
|
|
<video id="video{{index}}" class="banner" src="{{item.videoUrl}}" title="{{item.title}}" bindcontrolstoggle="bindcontrolstoggle" bindpause="bindended" bindplay='bindplay' bindended='bindended'/>
|
|
<view class="video-title" hidden="{{!showTitle}}">{{item.title}}</view>
|
|
</block>
|
|
</view>
|
|
</view>
|
|
</swiper-item>
|
|
</block>
|
|
</swiper>
|
|
<!-- 重置小圆点的样式 -->
|
|
<view class="dots">
|
|
<block wx:for="{{ swiperBannerList }}" wx:key="index">
|
|
<view class="dot {{index == currentSwiper ? ' active' : '' }}"></view>
|
|
</block>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view
|
|
wx:for="{{deptList}}"
|
|
wx:for-index="index"
|
|
wx:for-item="item"
|
|
wx:key="index"
|
|
class="list-item" bindtap="navigateToDict" data-dict="{{item}}">
|
|
<view class="list-name">
|
|
<image src="{{item.imgUrl}}" class="list-icon"/>{{item.name}}
|
|
</view>
|
|
<image src="../../images/right.png" class="list-arrow"></image>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- <load-more loadMoreType="{{loadMoreType}}" loadMoreVisible="{{loadMoreVisible}}"></load-more> -->
|
|
|
|
<no-data isShow="{{nodata}}"></no-data>
|
|
|
|
|