123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- <wxs module="filter" src="../../../wxs/exam-fun.wxs"></wxs>
- <view class="exam-page p10">
- <view class="view-wrap-hidden"> </view>
- <view class="exam-name-title">
- <h1></h1>
- </view>
- <i-panel wx:for="{{list}}" i-class="exam-panel-title">
- <i-cell-group i-class="exam-cell">
- <!-- 单选题 -->
- <i-cell wx:if="{{item.type ==2}}">
- <view class="single">
- <rich-text nodes="{{index+1}}.[单]{{item.title}}" />
- <radio-group class="radio-answer" bindchange="radioChange" data-index="{{index}}">
- <label class="radio" wx:for="{{preList}}" wx:for-item="answer" wx:key="anserIndex"
- wx:if="{{item['answer'+(index+1)]}}">
- <view class="radio-answer">
- <radio color="#2d8cf0" value="{{index+1}}" checked="{{item.select==index+1}}"
- disabled="{{item.select>0?true:false}}">
- {{preList[index]}}. {{item['answer'+(index+1)]}}
- </radio>
- </view>
- </label>
- </radio-group>
- <view class="exam-clear mt20" wx:if="{{item.select>0}}">
- <view class="exam-extend-item">
- 答题结果:
- <text class="question-answer-right question-answer-result" wx:if="{{item.select==item.result}}">正确
- </text>
- <text class="question-answer-error question-answer-result" wx:else>错误</text>
- </view>
- <view class="exam-extend-item">
- 正确答案:
- <text wx:if="{{item.type==2}}"> {{preList[item.result-1]}}</text>
- </view>
- </view>
- </view>
- </i-cell>
- <!-- 多选题 -->
- <i-cell wx:if="{{item.type==3}}">
- <view>
- <rich-text nodes="{{index+1}}.[多]{{item.title}}" />
- <checkbox-group class="checkbox-answer" style="margin-top:30rpx" bindchange="checkboxChange"
- data-index="{{index}}">
- <label class="checkbox" wx:for="{{preList}}" wx:for-item="answer" wx:key=""
- wx:if="{{item['answer'+(index+1)]}}">
- <view class="checkbox-answer">
- <checkbox color="#2d8cf0" value="{{index+1}}" disabled="{{!!item._select}}"
- checked="{{filter.isSelect(index+1,item.select)}}">
- {{answer}}. {{item['answer'+(index+1)]}}
- </checkbox>
- </view>
- </label>
- </checkbox-group>
- </view>
- <view class="exam-clear mt20" wx:if="{{isFinish || item._select}}">
- <view class="exam-extend-item">
- 答题结果:
- <text class="question-answer-right question-answer-result" wx:if="{{item.select==item.result}}">正确
- </text>
- <text class="question-answer-error question-answer-result" wx:else>错误</text>
- </view>
- <view class="exam-extend-item">
- 正确答案:
- <text> {{filter.getMultResult(item.result)}}</text>
- </view>
- </view>
- </i-cell>
- <!-- 判断 -->
- <i-cell wx:if="{{item.type==1}}">
- <view>
- <rich-text nodes="{{index+1}}.[判]{{item.title}}" />
- <radio-group class="radio-answer" bindchange="radioChange" data-index="{{index}}">
- <label class="radio" wx:for="{{2}}" wx:for-item="answer">
- <view class="radio-answer">
- <radio color="#2d8cf0" value="{{index+1}}" checked="{{item.select==index+1}}"
- disabled="{{item.select>0?true:false}}">
- {{preList[index]}}. {{item['answer'+(index+1)]}}
- </radio>
- </view>
- </label>
- </radio-group>
- </view>
- <view class="exam-clear mt20" wx:if="{{ item.select>0}}">
- <view class="exam-extend-item">
- 答题结果:
- <text class="question-answer-right question-answer-result" wx:if="{{item.select==item.result}}">正确
- </text>
- <text class="question-answer-error question-answer-result" wx:else>错误</text>
- </view>
- <view class="exam-extend-item">
- 正确答案:
- <text> {{item.result==1?'正确':'错误'}}</text>
- </view>
- </view>
- </i-cell>
- </i-cell-group>
- </i-panel>
- <view wx:if="{{from==-1}}" style="text-align:center;margin-top:40rpx">
- <view wx:if="{{list.length>0}}">
- <i-button bindtap="emptyAnswer" type="primary" size="default">清空重做</i-button>
- </view>
- <view wx:else>
- <span>恭喜你,清空所有错题</span>
- </view>
- </view>
- </view>
|