67 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
			
		
		
	
	
			67 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
| <view class="page">
 | |
| <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">{{tm_current.question.type}}</span>
 | |
|     <span style="color:gray">({{tm_current.question.questioncat_name}})</span>
 | |
|     </view>
 | |
|     <view class="weui-article__title">
 | |
|       <mp-html content="{{tm_current.question.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" wx:if="{{(tm_current.question.type=='单选' ||tm_current.question.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}}" disabled="true"/>
 | |
|           <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.question.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}}" disabled="true"/>
 | |
|           <i class="weui-icon-checked"></i>
 | |
|         </view>
 | |
|       </label>
 | |
|     </checkbox-group>
 | |
|   </view>
 | |
|   <view class="weui-article">
 | |
|     <view class="weui-article__h2" wx:if="{{tm_current.is_right}}" style="color:green;font-weight:bold">回答正确!得{{tm_current.score}}分</view>
 | |
|     <view class="weui-article__h2" wx:else style="color:red;font-weight:bold">回答有误!得{{tm_current.score}}分</view>
 | |
|     <view class="weui-article__h2">正确答案是{{tm_current.question.right}},
 | |
|     <span wx:if="{{tm_current.user_answer}}">你的答案是{{tm_current.user_answer}}</span>
 | |
|     <span wx:else>你未作答</span>
 | |
|     </view>
 | |
|     <view class="weui-article__title">
 | |
|       <span style="color:blue">解析: </span>
 | |
|       <span wx:if="{{tm_current.question.resolution}}">{{tm_current.question.resolution}}</span>
 | |
|       <span wx:else>无</span>
 | |
|     </view>
 | |
|   </view>
 | |
| </scroll-view>
 | |
| <view class="btns">
 | |
|   <view style="width:50%">
 | |
|     <button type="primary" size="mini" bindtap="previous" disabled="{{tm_index==0}}">上题</button>
 | |
|   </view>
 | |
|   <view style="width:50%">
 | |
|     <button type="primary" size="mini" bindtap="next" disabled="{{tm_index==tmtotal-1}}">下题</button>
 | |
|   </view>
 | |
| </view>
 | |
| </view> |