|
|
|
@ -4,7 +4,7 @@
|
|
|
|
|
<view class="question">
|
|
|
|
|
<text class="hint">第{{question.q_position}}题</text>
|
|
|
|
|
<text class="question-title">{{question.question_title}}</text>
|
|
|
|
|
<view wx:if="{{question.question_type==0}}">
|
|
|
|
|
<view wx:if="{{question.question_type==0 || question.question_type==2}}">
|
|
|
|
|
<radio-group class="choices" bindchange="answer_choice_question" data-question_id="{{question.question_id}}">
|
|
|
|
|
<radio disabled="{{exercise.user_exercise_status==1 || exercise.user_exercise_status==4}}" class="choice" wx:for="{{question.question_choices}}" wx:for-item="choice" wx:key="choice_id" checked="{{choice.user_answer_boolean}}" value="{{choice.choice_id}}">
|
|
|
|
|
<text class="choice-text">{{choice.choice_text}}</text>
|
|
|
|
@ -14,20 +14,21 @@
|
|
|
|
|
</view>
|
|
|
|
|
<view wx:elif="{{question.question_type==1}}">
|
|
|
|
|
<checkbox-group class="choices" bindchange="answer_choice_question" data-question_id="{{question.question_id}}">
|
|
|
|
|
<checkbox disabled="{{exercise.user_exercise_status==1 || exercise.user_exercise_status==4}}" class="choice" wx:for="{{question.question_choices}}" wx:for-item="choice" wx:key="choice_id" checked="{{choice.user_answer_boolean}}" value="{{choice.choice_id}}">
|
|
|
|
|
|
|
|
|
|
<checkbox class="choice" disabled="{{exercise.user_exercise_status==1 || exercise.user_exercise_status==4}}" wx:for="{{question.question_choices}}" wx:for-item="choice" wx:key="choice_id" checked="{{choice.user_answer_boolean}}" value="{{choice.choice_id}}">
|
|
|
|
|
<text class="choice-text">{{choice.choice_text}}</text>
|
|
|
|
|
<text wx:if="{{choice.standard_boolean}}" class="error standard-choice">正确答案</text>
|
|
|
|
|
</checkbox>
|
|
|
|
|
</checkbox-group>
|
|
|
|
|
</view>
|
|
|
|
|
<view wx:elif="{{question.question_type==2}}">
|
|
|
|
|
<!--view wx:elif="{{question.question_type==2}}">
|
|
|
|
|
<radio-group class="choices" bindchange="answer_choice_question" data-question_id="{{question.question_id}}">
|
|
|
|
|
<radio disabled="{{exercise.user_exercise_status==1 || exercise.user_exercise_status==4}}" class="choice" wx:for="{{question.question_choices}}" wx:for-item="choice" wx:key="choice_id" checked="{{choice.user_answer_boolean}}" value="{{choice.choice_id}}">
|
|
|
|
|
<radio class="choice" disabled="{{exercise.user_exercise_status==1 || exercise.user_exercise_status==4}}" wx:for="{{question.question_choices}}" wx:for-item="choice" wx:key="choice_id" checked="{{choice.user_answer_boolean}}" value="{{choice.choice_id}}">
|
|
|
|
|
<text class="choice-text">{{choice.choice_text}}</text>
|
|
|
|
|
<text wx:if="{{choice.standard_boolean}}" class="error standard-choice">正确答案</text>
|
|
|
|
|
</radio>
|
|
|
|
|
</radio-group>
|
|
|
|
|
</view>
|
|
|
|
|
</view-->
|
|
|
|
|
<view wx:elif="{{question.question_type==3}}">
|
|
|
|
|
<block wx:for="{{question.null_inputs}}" wx:for-item="null_input">
|
|
|
|
|
<view class="null-input flex-wrap">
|
|
|
|
@ -44,7 +45,7 @@
|
|
|
|
|
<view wx:if="{{question.standard_answer}}" class="standard-null-inputs">
|
|
|
|
|
<view class="standard-null-input flex-wrap" wx:for="{{question.standard_answer}}" wx:for-item="answer">
|
|
|
|
|
<text class="hint">第{{answer.choice_id}}空答案:</text>
|
|
|
|
|
<text class="error" style="padding-top: 6rpx;">{{answer.answer_text}}</text>
|
|
|
|
|
<text class="error" style="padding-top: 12rpx;">{{answer.answer_text}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
@ -67,7 +68,7 @@
|
|
|
|
|
</block>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<cover-view wx:if="{{exercise.user_exercise_status!=1 && exercise.user_exercise_status!=4}}" class="foot flex-wrap" >
|
|
|
|
|
<button bindtap="save_exercise">保存</button>
|
|
|
|
|
<button bindtap="commit_exercise">交卷</button>
|
|
|
|
|
<cover-view wx:if="{{exercise.user_exercise_status!=1 && exercise.user_exercise_status!=4}}" hidden="{{loading}}" class="foot flex-wrap" >
|
|
|
|
|
<button class="save operation" catchtap="save_exercise">保存</button>
|
|
|
|
|
<button class="commit operation" catchtap="commit_exercise">交卷</button>
|
|
|
|
|
</cover-view>
|