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.
66 lines
2.3 KiB
66 lines
2.3 KiB
<view class="container">
|
|
<view class="page-body">
|
|
<view class="page-section page-section-spacing swiper">
|
|
<swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" circular="{{circular}}" interval="{{interval}}" duration="{{duration}}" bindchange="swiperChange">
|
|
<block wx:if="{{banner.length > 0}}">
|
|
<block wx:for="{{banner}}" wx:key="*this">
|
|
<swiper-item>
|
|
<view bindtap="toActDetail" class="swiper-item" data-id="{{item.actId}}">
|
|
<image class="banner" src='{{item.bannerImg}}' mode="scaleToFill" />
|
|
</view>
|
|
</swiper-item>
|
|
</block>
|
|
</block>
|
|
<block wx:else>
|
|
<swiper-item>
|
|
<view>
|
|
<image class="banner" src="https://epdc-shibei.elinkservice.cn/epdcFile/M00/02/B2/rBAAM16W7SqAY1XjAAMWUuGo2D4654.jpg" mode="aspectFill" />
|
|
</view>
|
|
</swiper-item>
|
|
</block>
|
|
|
|
</swiper>
|
|
<!-- 重置小圆点的样式 -->
|
|
<view class="dots">
|
|
<block wx:for="{{ banner }}" wx:key="index">
|
|
<view class="dot {{index == currentSwiper ? ' active' : '' }}"></view>
|
|
</block>
|
|
</view>
|
|
</view>
|
|
|
|
</view>
|
|
<view class="toptabs">
|
|
<!-- scroll -->
|
|
<wux-tabs controlled current="{{ key }}" bindchange="onTabsChange">
|
|
<wux-tab key="tab1" title="招募令"></wux-tab>
|
|
<wux-tab key="tab2" title="精彩活动"></wux-tab>
|
|
<wux-tab key="tab3" title="已报名"></wux-tab>
|
|
</wux-tabs>
|
|
<view class="top" bindtap="toLeaderboard">
|
|
<view class="imgtop">
|
|
<image class="topimg" src="/images/top.png" />
|
|
</view>
|
|
<view class="toptxt">初心榜</view>
|
|
</view>
|
|
</view>
|
|
<block>
|
|
|
|
<view class="swiper-item-con" hidden="{{zml}}">
|
|
<activity bind:toActDetail="toActDetailDown" id="state-0" state="0"></activity>
|
|
</view>
|
|
|
|
<block wx:if="{{ index == '1' }}">
|
|
<view class="swiper-item-con">
|
|
<activity bind:toActDetail="toActDetailDown" id="state-1" state="1"></activity>
|
|
</view>
|
|
</block>
|
|
<block wx:if="{{ index == '2' }}">
|
|
<view class="swiper-item-con">
|
|
<activity bind:toActDetail="toActDetailDown" id="state-2" state="2"></activity>
|
|
</view>
|
|
</block>
|
|
</block>
|
|
|
|
|
|
<load-more loadMoreVisible="{{loadMoreVisible}}" loadMoreType="{{loadMoreType}}"></load-more>
|
|
</view>
|