You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.7 KiB

<view class="question">
<view class="index hint"><text class="gap">第{{data.q_position}}题</text><text class="ques-score">{{data.question_score}}分</text></view>
<rich-md my-class="title" nodes="{{data.question_title}}"/>
<radio-group class="choices" wx:if="{{data.question_type==0 || data.question_type==2}}" bindchange="answer_choice_question" data-question_id="{{data.question_id}}">
<block wx:for="{{data.question_choices}}" wx:for-item="choice" wx:key="choice_id">
<radio class="choice radio" color="{{user_exercise_status==1||user_exercise_status==4?'#a1a0a2':'#00b0f0'}}" checked="{{choice.user_answer_boolean}}" value="{{choice.choice_id}}">
<view class="choice-content">
<rich-md class="choice-text" nodes="{{choice.choice_text}}"/>
</view>
</radio>
</block>
</radio-group>
<checkbox-group class="choices" wx:elif="{{data.question_type==1}}" bindchange="answer_choice_question" data-question_id="{{data.question_id}}">
<block wx:for="{{data.question_choices}}" wx:for-item="choice" wx:key="choice_id">
<checkbox color="#00b0f0" class="choice" disabled="{{user_exercise_status==1||user_exercise_status==4}}" checked="{{choice.user_answer_boolean}}" value="{{choice.choice_id}}">
<view class="choice-content">
<rich-md class="choice-text" nodes="{{choice.choice_text}}"/>
</view>
</checkbox>
</block>
</checkbox-group>
<view class="outcome" wx:if="{{data.user_score}}">
得分:<text class="score-num">{{data.user_score}}</text><text class="gap">/{{data.question_score}}</text>
<block wx:if="{{data.standard_answer_show}}">
正确答案:<text class="stand-answer">{{data.standard_answer_show}}</text>
</block>
</view>
</view>