|
@@ -19,10 +19,11 @@
|
|
<view>
|
|
<view>
|
|
<rich-text nodes="{{index+1}}.[单]{{item.title}}" />
|
|
<rich-text nodes="{{index+1}}.[单]{{item.title}}" />
|
|
<radio-group class="radio-answer" >
|
|
<radio-group class="radio-answer" >
|
|
- <label class="radio" wx:for="{{4}}" wx:for-item="answer" wx:key="anserIndex" >
|
|
|
|
|
|
+ <label class="radio" wx:for="{{preList}}" wx:for-item="answer"
|
|
|
|
+ wx:key="anserIndex" wx:if="{{item['answer'+(index+1)]}}" >
|
|
<view class="radio-answer">
|
|
<view class="radio-answer">
|
|
- <radio color="#2d8cf0" value="{{index}}" checked="{{item.select==index}}" disabled>
|
|
|
|
- {{preList[index]}}. {{item['answer'+(index+1)]}}
|
|
|
|
|
|
+ <radio color="#2d8cf0" value="{{index+1}}" checked="{{item.select==index+1}}" disabled>
|
|
|
|
+ {{answer}}. {{item['answer'+(index+1)]}}
|
|
</radio>
|
|
</radio>
|
|
</view>
|
|
</view>
|
|
</label>
|
|
</label>
|
|
@@ -34,10 +35,10 @@
|
|
<view >
|
|
<view >
|
|
<text> {{index+1}}. [多]{{item.title}} </text>
|
|
<text> {{index+1}}. [多]{{item.title}} </text>
|
|
<checkbox-group class="checkbox-answer" style="margin-top:30rpx" >
|
|
<checkbox-group class="checkbox-answer" style="margin-top:30rpx" >
|
|
- <label class="checkbox" wx:for="{{4}}" wx:for-item="answer" wx:key="index" >
|
|
|
|
|
|
+ <label class="checkbox" wx:for="{{preList}}" wx:for-item="answer" wx:key="index" wx:if="{{item['answer'+(index+1)]}}" >
|
|
<view class="checkbox-answer">
|
|
<view class="checkbox-answer">
|
|
- <checkbox color="#2d8cf0" value="{{index}}" checked="{{filter.isSelect(index,item.select)}}" disabled>
|
|
|
|
- {{preList[index]}}. {{item['answer'+(index+1)]}}
|
|
|
|
|
|
+ <checkbox color="#2d8cf0" value="{{index+1}}" checked="{{filter.isSelect(index,item.select)}}" disabled>
|
|
|
|
+ {{answer}}. {{item['answer'+(index+1)]}}
|
|
</checkbox>
|
|
</checkbox>
|
|
</view>
|
|
</view>
|
|
</label>
|
|
</label>
|
|
@@ -51,7 +52,7 @@
|
|
<radio-group class="radio-answer" >
|
|
<radio-group class="radio-answer" >
|
|
<label class="radio" wx:for="{{2}}" wx:for-item="answer" wx:key="answerIndex" >
|
|
<label class="radio" wx:for="{{2}}" wx:for-item="answer" wx:key="answerIndex" >
|
|
<view class="radio-answer">
|
|
<view class="radio-answer">
|
|
- <radio color="#2d8cf0" value="{{index}}" checked="{{item.select==index}}" disabled>
|
|
|
|
|
|
+ <radio color="#2d8cf0" value="{{index+1}}" checked="{{item.select==index+1}}" disabled>
|
|
{{preList[index]}}. {{item['answer'+(index+1)]}}
|
|
{{preList[index]}}. {{item['answer'+(index+1)]}}
|
|
</radio>
|
|
</radio>
|
|
</view>
|
|
</view>
|
|
@@ -70,8 +71,17 @@
|
|
wx:else>错误</text>
|
|
wx:else>错误</text>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
+ <view class="exam-extend-item" style="padding-left:0px" wx:if="{{item.star}}">
|
|
|
|
+ 难度:
|
|
|
|
+ <i-rate value="{{item.star}}" i-class="exam-item-rate" />
|
|
|
|
+ </view>
|
|
|
|
+
|
|
|
|
+ <view class="exam-extend-item" wx:if="{{item.content}}">
|
|
|
|
+ <rich-text nodes="解析: {{item.content}}" />
|
|
|
|
+ </view>
|
|
|
|
+
|
|
<view class="exam-extend-item">
|
|
<view class="exam-extend-item">
|
|
- <text wx:if="{{item.type==1}}"> 正确答案: {{preList[item.result]}}</text>
|
|
|
|
|
|
+ <text wx:if="{{item.type==1}}"> 正确答案: {{preList[item.result-1]}}</text>
|
|
<text wx:elif="{{item.type==2}}"> 正确答案: {{filter.getMultResult(item.result)}}</text>
|
|
<text wx:elif="{{item.type==2}}"> 正确答案: {{filter.getMultResult(item.result)}}</text>
|
|
<text wx:else> 正确答案: {{item.result==1?'正确':'错误'}}</text>
|
|
<text wx:else> 正确答案: {{item.result==1?'正确':'错误'}}</text>
|
|
</view>
|
|
</view>
|