| | |
| | | <!-- 单选题 --> |
| | | <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.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> |
| | | <!-- 仅图片 --> |
| | |
| | | <!-- 解析 --> |
| | | <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> |