59 lines
2.8 KiB
Plaintext
59 lines
2.8 KiB
Plaintext
<view class="head">
|
|
题目详情
|
|
</view>
|
|
<scroll-view scroll-y="true" style="height: {{scrollHeight}}px;">
|
|
<view class="weui-article" style="background: #ffffff;">
|
|
<view class="weui-article__h2">
|
|
<span class="txlabel">{{tm_current.type}}</span>
|
|
<span style="color:gray"> {{tm_current.questioncat_name}}</span>
|
|
</view>
|
|
<view class="weui-article__title">
|
|
<mp-html content="{{tm_current.name}}" domain="{{domain}}"/>
|
|
</view>
|
|
<view wx:if="{{tm_current.img}}" style="text-align:center"><image src="{{tm_current.img}}" mode="aspectFit"></image></view>
|
|
</view>
|
|
<view class="weui-cells weui-cells_radio">
|
|
<radio-group class="radio-group" bindchange="radioChange" wx:if="{{(tm_current.type=='单选' ||tm_current.type=='判断')}}">
|
|
<label class="weui-cell weui-cell_active weui-check__label" wx:for="{{options}}" wx:key="key">
|
|
<view class="weui-cell__bd">
|
|
<view style="float:left;width:10%">{{item.key}}:</view>
|
|
<view style="float:left;width:90%">
|
|
<mp-html content="{{item.value}}" domain="{{domain}}"/>
|
|
</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="{{tm_current.type=='多选'}}">
|
|
<label class="weui-cell weui-cell_active weui-check__label" wx:for="{{options}}" wx:key="key">
|
|
|
|
<view class="weui-cell__bd">
|
|
<view style="float:left;width:10%">{{item.key}}:</view>
|
|
<view style="float:left;width:90%"><mp-html content="{{item.value}}" domain="{{domain}}"/></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}}" style="background: #ffffff;">
|
|
<view class="weui-article__h2" wx:if="{{is_right}}" 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">正确答案是{{tm_current.right}},你的答案是{{tm_current.user_answer}}</view>
|
|
<view class="weui-article__title">
|
|
<span style="color:blue">解析: </span>
|
|
<span wx:if="{{tm_current.resolution}}">{{tm_current.resolution}}</span>
|
|
<span wx:else>无</span>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
<view class="btns">
|
|
<a class="weui-btn weui-btn_primary" bindtap="showAnswer" style="background: #438af4;">查看答案</a>
|
|
</view> |