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.

13 lines
929 B

<view class="attendance" bindtap="onTap">
<view class="header">
<text class="title">{{data.name}}</text>
<button wx:if="{{course_identity==5}}" type="main" size="mini" plain="{{data.attendance_status=='NORMAL'}}" class="attendance-button" disabled="{{data.attendance_status=='NORMAL'}}" catchtap="onButtonTap">{{data.attendance_status=='NORMAL'?'已签到':'签到'}}</button>
</view>
<view wx:if="{{course_identity<5}}">
<progress class="progress" percent="{{data.normal_count/data.all_count*100}}" activeColor="#00b0f0" border-radius="6" backgroundColor="lightgrey"><text class="percent-text">已签到:{{data.normal_count}}/{{data.all_count}}</text></progress>
</view>
<view class="footer">
<text>签到时间:{{data.start_time}}-{{data.end_time}}</text>
<text>{{data.mode=='QUICK'?'快捷签到':data.mode=='QRCODE'?'扫码签到':data.mode=='NUMBER'?'数字签到':''}}</text>
</view>
</view>