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.

49 lines
2.4 KiB

<page-meta>
<navigation-bar title="{{name?'签到-'+name:'签到'}}" />
</page-meta>
<require-login message="登陆后才可以查看哦,点击这里登录吧"/>
<view class="err-msg" wx:if="{{code!=200&&message}}">{{message}}</view>
<view class="info">
<view class="tea-title">{{name}}</view>
<view class="tea-time-wrap" wx:if="{attendance_date{}}">签到时间:
<text class="tea-time">{{attendance_date}} {{start_time}}-{{end_time}}</text>
</view>
</view>
<block wx:if="{{course_identity&&course_identity<5}}">
<view class="tea-info">
<view class="qrcode-wrap" wx:if="{{mode=='QRCODE'}}">
<image class="qrcode" bindtap="previewQrCode" src="{{code_url}}" mode="aspectFit" binderror="onCodeLoadError"></image>
<view class="qrcode-tip">学生需要扫码签到</view>
</view>
<view class="number-wrap" wx:elif="{{mode=='NUMBER'}}">
<view class="tea-code-wrap" bindtap="copyCode">学生签到码:
<text class="tea-code">{{code}}</text>
<iconfont type="fuzhilianjie" size="18" />
</view>
</view>
<view class="quick-wrap" wx:elif="{{mode}}">
<image class="quick-img" src="{{attachDir}}753481" mode="aspectFit"></image>
<view class="share-tip">分享链接,学生点击按钮快速签到<button size="mini" class="share-button" open-type="share"><text class="button-text">转发</text><iconfont type="fenxiang" size="18"/></button></view>
</view>
</view>
</block>
<block wx:elif="{{course_identity==5}}">
<view class="stu-attendance">
<form bindsubmit="onSubmit">
<view class="input-wrap" hidden="{{mode=='QUICK'}}">
<input name="code" value="{{scaned_code}}" />
<iconfont type="saoma" color="dimgrey" bindtap="scanCode" />
</view>
<view class="quick-img-wrap" wx:if="{{mode=='QUICK'}}">
<image class="quick-img" src="{{attachDir}}753481" mode="aspectFit"></image>
</view>
<input hidden="1" name="attendance_id" value="{{attendance_id}}"></input>
<view class="tip">{{mode=='QRCODE'?'请扫二维码签到':mode=='NUMBER'?'请输入签到码签到':mode=='QUICK'?'点击签到按钮,快速签到':''}}</view>
<view>
<button id="stu-attendance" form-type="submit" type="main">{{mode=='QUICK'?'快速签到':'签到'}}</button>
<button class="nav-back" type="main" plain="1" bindtap="navBack">返回</button>
</view>
</form>
</view>
</block>