61 lines
2.3 KiB
Plaintext
61 lines
2.3 KiB
Plaintext
<view class="head">
|
|
<view style="width:50%">
|
|
倒计时 {{countdown}}
|
|
</view>
|
|
<view style="width:50%;text-align:right">
|
|
题量:{{tmIndex+1}}/{{tmtotal}}
|
|
</view>
|
|
|
|
</view>
|
|
<scroll-view scroll-y="true" style="height: {{scrollHeight}}px;">
|
|
<view class="weui-article">
|
|
<view class="weui-article__h2">{{tmIndex+1}}.
|
|
<span wx:if="{{currentTm.type==1}}" class="txlabel">单选题</span>
|
|
<span wx:if="{{currentTm.type==2}}" class="txlabel">多选题</span>
|
|
<span wx:if="{{currentTm.type==3}}" class="txlabel">判断题</span>
|
|
<span>({{currentTm.score}}分)</span>
|
|
</view>
|
|
<view class="weui-article__title">{{currentTm.name}}</view>
|
|
</view>
|
|
<view class="weui-cells weui-cells_radio">
|
|
<radio-group class="radio-group" bindchange="radioChange" wx:if="{{(currentTm.type==1 ||currentTm.type==3)}}">
|
|
<label class="weui-cell weui-cell_active weui-check__label" wx:for="{{options}}" wx:key="key">
|
|
<view class="weui-cell__bd">
|
|
<view>{{item.value}}</view>
|
|
</view>
|
|
<view class="weui-cell__ft">
|
|
<radio class="weui-check" value="{{item.key}}" checked="{{item.checked}}" />
|
|
<i class="weui-icon-checked"></i>
|
|
</view>
|
|
</label>
|
|
</radio-group>
|
|
</view>
|
|
<view class="weui-cells weui-cells_checkbox">
|
|
<checkbox-group bindchange="checkboxChange" wx:if="{{currentTm.type==2}}">
|
|
<label class="weui-cell weui-cell_active weui-check__label" wx:for="{{options}}" wx:key="key">
|
|
|
|
<view class="weui-cell__bd">
|
|
<view>{{item.value}}</view>
|
|
</view>
|
|
<view class="weui-cell__hd">
|
|
<checkbox class="weui-check" value="{{item.key}}" checked="{{item.checked}}"/>
|
|
<i class="weui-icon-checked"></i>
|
|
</view>
|
|
</label>
|
|
</checkbox-group>
|
|
</view>
|
|
</scroll-view>
|
|
<view class="btns">
|
|
<view style="width:25%">
|
|
<button type="primary" size="mini" bindtap="previous" disabled="{{tmIndex==0}}">上题</button>
|
|
</view>
|
|
<view style="width:25%">
|
|
<button type="primary" size="mini" bindtap="next" disabled="{{tmIndex==tmtotal-1}}">下题</button>
|
|
</view>
|
|
<view style="width:25%">
|
|
<button type="primary" size="mini" bindtap="showAnswer">答题卡</button>
|
|
</view>
|
|
<view style="width:25%">
|
|
<a class="weui-btn weui-btn_mini weui-btn_warn">交卷</a>
|
|
</view>
|
|
</view> |