提交 a7433f1d 编写于 作者: 闲敲棋子丶's avatar 闲敲棋子丶

题目组件 添加ABCDE选项显示

上级 8fdd6b6e
......@@ -16,27 +16,27 @@
<view class="cu-form-group" v-if="subject.xxa">
<radio :disabled="subject['showAnswer']" :value="'A'"
:checked="subject.userAnswer.indexOf('A') > -1 ? true : false"></radio>
<view class="title text-black">{{ subject.xxa }}</view>
<view class="title text-black">{{subject[subjectTypeKey] == 1?'A.':''}}{{ subject.xxa }}</view>
</view>
<view class="cu-form-group" v-if="subject.xxb">
<radio :disabled="subject['showAnswer']" :value="'B'"
:checked="subject.userAnswer.indexOf('B') > -1 ? true : false"></radio>
<view class="title text-black">{{ subject.xxb }}</view>
<view class="title text-black">{{subject[subjectTypeKey] == 1?'B.':''}}{{ subject.xxb }}</view>
</view>
<view class="cu-form-group" v-if="subject.xxc">
<radio :disabled="subject['showAnswer']" :value="'C'"
:checked="subject.userAnswer.indexOf('C') > -1 ? true : false"></radio>
<view class="title text-black">{{ subject.xxc }}</view>
<view class="title text-black">{{subject[subjectTypeKey] == 1?'C.':''}}{{ subject.xxc }}</view>
</view>
<view class="cu-form-group" v-if="subject.xxd">
<radio :disabled="subject['showAnswer']" :value="'D'"
:checked="subject.userAnswer.indexOf('D') > -1 ? true : false"></radio>
<view class="title text-black">{{ subject.xxd }}</view>
<view class="title text-black">{{subject[subjectTypeKey] == 1?'D.':''}}{{ subject.xxd }}</view>
</view>
<view class="cu-form-group" v-if="subject.xxe">
<radio :disabled="subject['showAnswer']" :value="'E'"
:checked="subject.userAnswer.indexOf('E') > -1 ? true : false"></radio>
<view class="title text-black">{{ subject.xxe }}</view>
<view class="title text-black">{{subject[subjectTypeKey] == 1?'E.':''}}{{ subject.xxe }}</view>
</view>
<!-- <view class="cu-form-group" v-for="option in subject.optionList">
<radio :value="option.id" :checked="subject.userAnswer.indexOf(option.id) > -1 ? true : false"></radio>
......@@ -49,31 +49,31 @@
<checkbox :disabled="subject['showAnswer']" :value="'A'"
:class="subject.userAnswer.indexOf('A') > -1 ? 'checked' : ''"
:checked="subject.userAnswer.indexOf('A') > -1 ? true : false"></checkbox>
<view class="title text-black">{{ subject.xxa }}</view>
<view class="title text-black">A.{{ subject.xxa }}</view>
</view>
<view class="cu-form-group" v-if="subject.xxb">
<checkbox :disabled="subject['showAnswer']" :value="'B'"
:class="subject.userAnswer.indexOf('B') > -1 ? 'checked' : ''"
:checked="subject.userAnswer.indexOf('B') > -1 ? true : false"></checkbox>
<view class="title text-black">{{ subject.xxb }}</view>
<view class="title text-black">B.{{ subject.xxb }}</view>
</view>
<view class="cu-form-group" v-if="subject.xxc">
<checkbox :disabled="subject['showAnswer']" :value="'C'"
:class="subject.userAnswer.indexOf('C') > -1 ? 'checked' : ''"
:checked="subject.userAnswer.indexOf('C') > -1 ? true : false"></checkbox>
<view class="title text-black">{{ subject.xxc }}</view>
<view class="title text-black">C.{{ subject.xxc }}</view>
</view>
<view class="cu-form-group" v-if="subject.xxd">
<checkbox :disabled="subject['showAnswer']" :value="'D'"
:class="subject.userAnswer.indexOf('D') > -1 ? 'checked' : ''"
:checked="subject.userAnswer.indexOf('D') > -1 ? true : false"></checkbox>
<view class="title text-black">{{ subject.xxd }}</view>
<view class="title text-black">D.{{ subject.xxd }}</view>
</view>
<view class="cu-form-group" v-if="subject.xxe">
<checkbox :disabled="subject['showAnswer']" :value="'E'"
:class="subject.userAnswer.indexOf('E') > -1 ? 'checked' : ''"
:checked="subject.userAnswer.indexOf('E') > -1 ? true : false"></checkbox>
<view class="title text-black">{{ subject.xxe }}</view>
<view class="title text-black">E.{{ subject.xxe }}</view>
</view>
<!-- <view class="cu-form-group" v-for="option in subject.optionList">
<checkbox
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册