myExam.wxml
1.31 KB
<!--packageStudyCenter/pages/myExam/myExam.wxml-->
<view class="container">
<view class="tab-box">
<view class="tab-item {{tabIndex == index ? 'active' : ''}}" wx:for="{{tabList}}" wx:key="index" bindtap="changeTab" data-index="{{index}}">{{item.label}}<text>{{item.num != null ? item.num : '-'}}</text></view>
</view>
<scroll-view scroll-y enhanced="{{true}}" class="list-scroll" show-scrollbar="{{false}}" scroll-top="{{scrollTop}}" bindscrolltolower="scrollonReachBottom">
<block wx:if="{{examList.length}}">
<view class="list-container">
<view class="exam-item" wx:for="{{examList}}" wx:key="index" data-target="{{item}}">
<card-item infoData="{{item}}" bindgoPage="goPage" formItems="{{formItems}}"/>
</view>
</view>
</block>
<block wx:else>
<view class="nothing flex">
<image class="icon" src="{{IMG_URL}}studyCenter/empty_data.png" />
暂无数据
</view>
</block>
<view class="end-text" wx:if="{{loadingList}}">更多考试加载中...</view>
<view class="end-text" wx:if="{{nothing && examList.length && !loadingList}}">已展示所有考试</view>
</scroll-view>
</view>
<exam-submit-popup id="examPopup" bindcancel="examHandleCancel" bindconfirm="examHandleConfirm" showClose="{{true}}" examSubmitText="{{examSubmitText}}" />