66 lines
2.8 KiB
Plaintext
66 lines
2.8 KiB
Plaintext
<view class="head">
|
|
题量: {{tm_index+1}}/{{tmtotal}}
|
|
</view>
|
|
<scroll-view scroll-y="true" style="height: {{scrollHeight}}px;">
|
|
<view class="weui-article">
|
|
<view class="weui-article__h2">{{tm_index+1}}.
|
|
<span class="txlabel">{{currentTm.type}}</span>
|
|
</view>
|
|
<view style="text-align:center">
|
|
<span style="color:drakblue;font-weight:bold;font-size:14px">{{currentTm.questioncat_name}}(</span>
|
|
<span style="color:orange;font-weight:bold;font-size:14px">{{currentTm.dtime}})</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=='单选' ||currentTm.type=='判断')}}">
|
|
<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=='多选'}}">
|
|
<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>
|
|
<view class="weui-article" wx:if="{{answerP}}">
|
|
<view class="weui-article__h2" wx:if="{{isright}}" style="color:green;font-weight:bold">回答正确!</view>
|
|
<view class="weui-article__h2" wx:else style="color:red;font-weight:bold">回答有误!</view>
|
|
<view class="weui-article__h2">正确答案是{{currentTm.right}},你的答案是{{currentTm.user_answer}}</view>
|
|
<view class="weui-article__title">
|
|
<span style="color:blue">解析: </span>
|
|
<span wx:if="{{currentTm.resolution != null}}">{{currentTm.resolution}}</span>
|
|
<span wx:else>无</span>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
<view class="btns">
|
|
<view style="width:25%">
|
|
<button type="primary" size="mini" bindtap="previous" disabled="{{tm_index==0}}">上题</button>
|
|
</view>
|
|
<view style="width:25%">
|
|
<button type="primary" size="mini" bindtap="next" disabled="{{tm_index==tmtotal-1}}">下题</button>
|
|
</view>
|
|
<view style="width:25%">
|
|
<button type="primary" size="mini" bindtap="showAnswer">答案</button>
|
|
</view>
|
|
<view style="width:25%">
|
|
<button type="primary" size="mini" bindtap="remove">移除</button>
|
|
</view>
|
|
</view> |