12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <wxs module="filter" src="../../../wxs/exam-fun.wxs"></wxs>
- <view class="exam-page">
- <view class="view-wrap-hidden">
- </view>
- <view>
- <view class="exam-name-title">
- <h1>{{info.title}}</h1>
- </view>
- <view class="exam-result mt50">
- <h1 class=""> 试卷结果: {{info.correct}}/{{info.counter}}</h1>
- <h1 class="exam-result-detail">试卷耗时: {{info.useTime}}秒</h1>
- </view>
- <i-panel wx:for="{{answers}}" wx:for-item="item" wx:key="answerId" i-class="exam-panel-title">
- <i-cell-group i-class="exam-cell">
- <!-- 单选题 -->
- <i-cell wx:if="{{item.type==1}}">
- <view>
- <rich-text nodes="{{index+1}}.[单]{{item.title}}" />
- <radio-group class="radio-answer" >
- <label class="radio" wx:for="{{4}}" wx:for-item="answer" wx:key="anserIndex" >
- <view class="radio-answer">
- <radio color="#2d8cf0" value="{{index}}" checked="{{item.select==index}}" disabled>
- {{preList[index]}}. {{item['answer'+(index+1)]}}
- </radio>
- </view>
- </label>
- </radio-group>
- </view>
- </i-cell>
- <!-- 多选题 -->
- <i-cell wx:if="{{item.type==2}}">
- <view >
- <text> {{index+1}}. [多]{{item.title}} </text>
- <checkbox-group class="checkbox-answer" style="margin-top:30rpx" >
- <label class="checkbox" wx:for="{{4}}" wx:for-item="answer" wx:key="index" >
- <view class="checkbox-answer">
- <checkbox color="#2d8cf0" value="{{index}}" checked="{{filter.isSelect(index,item.select)}}" disabled>
- {{preList[index]}}. {{item['answer'+(index+1)]}}
- </checkbox>
- </view>
- </label>
- </checkbox-group>
- </view>
- </i-cell>
- <!-- 判断 -->
- <i-cell wx:if="{{item.type==3}}">
- <view>
- <rich-text nodes="{{index+1}}.[判]{{item.title}}" />
- <radio-group class="radio-answer" >
- <label class="radio" wx:for="{{2}}" wx:for-item="answer" wx:key="answerIndex" >
- <view class="radio-answer">
- <radio color="#2d8cf0" value="{{index}}" checked="{{item.select==index}}" disabled>
- {{preList[index]}}. {{item['answer'+(index+1)]}}
- </radio>
- </view>
- </label>
- </radio-group>
- </view>
- </i-cell>
- <view class="exam-clear">
- <view class="exam-extend-item" style="padding-left:0px">
- 结果:
- <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" style="padding-left:0px">
- 难度:
- <i-rate value="{{item.star||1}}" i-class="exam-item-rate" />
- </view>
- <view class="exam-extend-item">
- <rich-text nodes="解析: {{item.content||'无'}}" />
- </view>
- <view class="exam-extend-item">
- <text wx:if="{{item.type==1}}"> 正确答案: {{preList[item.result]}}</text>
- <text wx:elif="{{item.type==2}}"> 正确答案: {{filter.getMultResult(item.result)}}</text>
- <text wx:else> 正确答案: {{item.result==1?'正确':'错误'}}</text>
- </view>
- </view>
- </i-cell-group>
- </i-panel>
- <i-spin size="large" fix wx:if="{{ spinShow }}"></i-spin>
- <i-message id="message" />
- </view>
- </view>
|