123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- <wxs module="filter" src="../../../wxs/exam-fun.wxs"></wxs>
- <view class="exam-page p10" wx:if="{{answerId>0}}">
- <view class="view-wrap">
- <view class="exam-count-down" >
- {{types[type]}} ({{unfinish}}/{{total}})
- </view>
- </view>
- <i-panel i-class="exam-panel-title">
- <i-cell-group i-class="exam-cell">
- <!-- 单选题 -->
- <i-cell wx:if="{{info.type ==2}}">
- <view class="single">
- <rich-text nodes="[单]{{info.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="{{info['answer'+(index+1)]}}">
- <view class="radio-answer">
- <radio color="#2d8cf0" value="{{index+1}}" checked="{{info.select==index+1}}"
- disabled="{{info.select>0?true:false}}">
- {{preList[index]}}. {{info['answer'+(index+1)]}}
- </radio>
- </view>
- </label>
- </radio-group>
- <view class="exam-clear mt20" wx:if="{{info.select>0}}">
- <view class="exam-extend-item">
- 答题结果:
- <text class="question-answer-right question-answer-result" wx:if="{{info.select==info.result}}">正确
- </text>
- <text class="question-answer-error question-answer-result" wx:else>错误</text>
- </view>
- <view class="exam-extend-item">
- 正确答案:
- <text wx:if="{{info.type==2}}"> {{preList[info.result-1]}}</text>
- </view>
- </view>
- </view>
- </i-cell>
- <!-- 多选题 -->
- <i-cell wx:if="{{info.type==3}}">
- <view>
- <rich-text nodes="[多]{{info.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="{{info['answer'+(index+1)]}}">
- <view class="checkbox-answer">
- <checkbox color="#2d8cf0" value="{{index+1}}" disabled="{{!!info._select}}"
- checked="{{filter.isSelect(index+1,info.select)}}">
- {{answer}}. {{info['answer'+(index+1)]}}
- </checkbox>
- </view>
- </label>
- </checkbox-group>
- </view>
- <view class="exam-clear mt20" wx:if="{{isFinish || info._select}}">
- <view class="exam-extend-item">
- 答题结果:
- <text class="question-answer-right question-answer-result" wx:if="{{info.select==info.result}}">正确
- </text>
- <text class="question-answer-error question-answer-result" wx:else>错误</text>
- </view>
- <view class="exam-extend-item">
- 正确答案:
- <text> {{filter.getMultResult(info.result)}}</text>
- </view>
- </view>
- </i-cell>
- <!-- 判断 -->
- <i-cell wx:if="{{info.type==1}}">
- <view>
- <rich-text nodes="[判]{{info.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="{{info.select==index+1}}"
- disabled="{{info.select>0?true:false}}">
- {{preList[index]}}. {{info['answer'+(index+1)]}}
- </radio>
- </view>
- </label>
- </radio-group>
- </view>
- <view class="exam-clear mt20" wx:if="{{ info.select>0}}">
- <view class="exam-extend-item">
- 答题结果:
- <text class="question-answer-right question-answer-result" wx:if="{{info.select==info.result}}">正确
- </text>
- <text class="question-answer-error question-answer-result" wx:else>错误</text>
- </view>
- <view class="exam-extend-item">
- 正确答案:
- <text> {{info.result==1?'正确':'错误'}}</text>
- </view>
- </view>
- </i-cell>
- </i-cell-group>
- </i-panel>
- <view class="mt50">
- <button class="i-btn i-btn-primary i-btn-square" bindtap='finishAnswer'>下一题</button>
- </view>
- </view>
- <view wx:else style="text-align:center;margin-top:40rpx">
- <button class="i-btn i-btn-primary i-btn-square" bindtap='restartAnswer'>重新再刷一遍</button>
- </view>
|