| | |
| | | </view> |
| | | <!-- 题目列表 --> |
| | | <swiper class="swiper" bind:change="changeSwiper" current="{{currentIndex}}"> |
| | | <swiper-item wx:for="{{questionList}}" wx:key="{{item.id}}"> |
| | | <swiper-item wx:for="{{questionList}}" wx:key="{{id}}"> |
| | | <!-- 题干 --> |
| | | <view class="question-stem title-score" style="color: {{isNight ? '#fff' : '#000'}};"> |
| | | <!-- 题号 --> |
| | |
| | | <!-- 单选题 --> |
| | | <t-radio-group wx:if="{{item.questionType == 'singleChoice' || item.questionType == 'judge'}}" defaultValue="{{item.userAnswer}}" disabled="{{item.isComplete}}" bind:change="onChangeRadio" class="radio-group" data-value="{{item.option}}" data-id="{{item.id}}"> |
| | | <view wx:for="{{item.option}}" wx:for-item="contentItem" wx:for-index="contentIndex" wx:key="contentIndex"> |
| | | <t-radio value="{{contentItem.value}}" icon="none" placement="right" borderless style="color: {{isNight ? '#fff' : '#000'}}; background-color:{{isNight ? '#000' : '#fff'}}"> |
| | | <view class="radio-item {{item.answer == contentItem.value && item.answer == item.userAnswer ? 'radio-correct' : item.userAnswer == contentItem.value && item.userAnswer != item.answer ?'radio-error' :''}}" style="color: {{isNight ? '#fff' : '#000'}}; background-color:{{isNight ? '#000' : '#fff'}}"> |
| | | <t-radio value="{{contentItem.value}}" icon="none" placement="right" borderless> |
| | | <view class="radio-item {{item.userAnswer == contentItem.value ? 'radio-active' : ''}} {{(answerType == 'collectQuestion' || answerType == 'errorQuestion') && (item.answer == contentItem.value && item.answer == item.userAnswer ? 'radio-correct' : item.userAnswer == contentItem.value && item.userAnswer != item.answer ?'radio-error' :'')}}"> |
| | | <!-- 仅文字 --> |
| | | <text wx:if="{{item.optionStyle == 'Txt'}}">{{contentItem.value}}、{{contentItem.txt}}</text> |
| | | <!-- 仅图片 --> |
| | |
| | | <text>{{contentItem.value}}、</text> |
| | | <rich-text nodes="{{contentItem.txt}}"></rich-text> |
| | | </view> |
| | | <text wx:if="{{item.answer == contentItem.value && item.answer == item.userAnswer}}">对</text> |
| | | <text wx:if="{{item.userAnswer == contentItem.value && item.userAnswer != item.answer}}">错</text> |
| | | <text wx:if="{{(answerType == 'collectQuestion' || answerType == 'errorQuestion') && (item.answer == contentItem.value && item.answer == item.userAnswer)}}">对</text> |
| | | <text wx:if="{{(answerType == 'collectQuestion' || answerType == 'errorQuestion') && (item.userAnswer == contentItem.value && item.userAnswer != item.answer)}}">错</text> |
| | | </view> |
| | | </t-radio> |
| | | </view> |
| | |
| | | <!-- 解析 --> |
| | | <view class="analysis" wx:if="{{item.isComplete}}"> |
| | | <view class="analysis-answer"> |
| | | <view class="answer-correct"> |
| | | <view class="answer-correct answer-center"> |
| | | <text class="analysis-title-box">正确答案:</text> |
| | | <rich-text nodes="{{item.answer}}" style="font-size: 40rpx"></rich-text> |
| | | </view> |
| | | <view class="answer-error"> |
| | | <view class="answer-center marginL {{item.isRight ? 'answer-correct' : 'answer-error'}}" wx:if="{{item.questionType !== 'shortAnswer'}}"> |
| | | <text class="analysis-title-box">您的答案:</text><text class="answer-text">{{item.userAnswer}}</text> |
| | | </view> |
| | | </view> |
| | | <view class="analysis-text" wx:if="{{item.analysisCon}}"> |
| | | <view class="analysis-text" wx:if="{{item.analysisCon}}" style="color: {{isNight ? '#fff' : '#000'}};"> |
| | | 答案解析:<rich-text nodes="{{item.analysisCon}}" class="analysis-content"></rich-text> |
| | | </view> |
| | | </view> |