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.

24 lines
1.6 KiB

<view class="question">
<view class="hint">第{{data.q_position}}题</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" color="#00b0f0" disabled="{{exercise.user_exercise_status==1 || exercise.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}}"/>
<text wx:if="{{choice.standard_boolean}}" class="error standard-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="{{exercise.user_exercise_status==1 || exercise.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}}"/>
<text wx:if="{{choice.standard_boolean}}" class="error standard-choice">正确答案</text>
</view>
</checkbox>
</block>
</checkbox-group>
</view>