|
@@ -62,7 +62,7 @@
|
|
<div
|
|
<div
|
|
:class="[
|
|
:class="[
|
|
'sent-option-items',
|
|
'sent-option-items',
|
|
- itemsWidth == 748 ? 'sent-option-items-0' : 'sent-option-items-8',
|
|
|
|
|
|
+ itemsWidth == 780 ? 'sent-option-items-0' : 'sent-option-items-8',
|
|
]"
|
|
]"
|
|
v-for="(items, indexs) in userErrorList"
|
|
v-for="(items, indexs) in userErrorList"
|
|
:key="'sent-option-items' + judgeAnswer + indexs"
|
|
:key="'sent-option-items' + judgeAnswer + indexs"
|
|
@@ -70,7 +70,7 @@
|
|
width:
|
|
width:
|
|
curQue.sortType == 'col'
|
|
curQue.sortType == 'col'
|
|
? itemsWidth + 'px'
|
|
? itemsWidth + 'px'
|
|
- : Math.floor(748 / curQue.option.length) - 24 + 'px',
|
|
|
|
|
|
+ : Math.floor(780 / curQue.option.length) - 16 + 'px',
|
|
}"
|
|
}"
|
|
>
|
|
>
|
|
<div
|
|
<div
|
|
@@ -434,12 +434,13 @@
|
|
<div
|
|
<div
|
|
:class="[
|
|
:class="[
|
|
'sent-option-items',
|
|
'sent-option-items',
|
|
- itemsWidth == 748 ? 'sent-option-items-0' : 'sent-option-items-8',
|
|
|
|
|
|
+ itemsWidth == 780 ? 'sent-option-items-0' : 'sent-option-items-8',
|
|
]"
|
|
]"
|
|
v-for="(items, indexs) in item"
|
|
v-for="(items, indexs) in item"
|
|
:key="'sent-option-items' + index + indexs"
|
|
:key="'sent-option-items' + index + indexs"
|
|
:style="{
|
|
:style="{
|
|
width: curQue.sortType == 'col' ? itemsWidth + 'px' : '100%',
|
|
width: curQue.sortType == 'col' ? itemsWidth + 'px' : '100%',
|
|
|
|
+
|
|
}"
|
|
}"
|
|
>
|
|
>
|
|
<div
|
|
<div
|
|
@@ -1166,11 +1167,16 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
this.$set(this.curQue, "option", option);
|
|
this.$set(this.curQue, "option", option);
|
|
- let contentWidth = 748;
|
|
|
|
|
|
+ let contentWidth = 780;
|
|
if (this.curQue.img_list && this.curQue.img_list.length > 0) {
|
|
if (this.curQue.img_list && this.curQue.img_list.length > 0) {
|
|
- contentWidth = 748 - this.curQue.img_size;
|
|
|
|
|
|
+ contentWidth = 780 - this.curQue.img_size;
|
|
|
|
+ }
|
|
|
|
+ if(itemLeg==1){
|
|
|
|
+ this.itemsWidth = 780
|
|
|
|
+ }else{
|
|
|
|
+ this.itemsWidth = Math.floor(contentWidth / itemLeg) - 16;
|
|
}
|
|
}
|
|
- this.itemsWidth = Math.floor(contentWidth / itemLeg) - 24;
|
|
|
|
|
|
+
|
|
|
|
|
|
// 把答错的挑出来
|
|
// 把答错的挑出来
|
|
if (this.judgeAnswer == "standardAnswer") {
|
|
if (this.judgeAnswer == "standardAnswer") {
|
|
@@ -1470,7 +1476,7 @@ export default {
|
|
margin: 0px;
|
|
margin: 0px;
|
|
.sent-option-items {
|
|
.sent-option-items {
|
|
&-0 {
|
|
&-0 {
|
|
- margin: 0;
|
|
|
|
|
|
+ margin: 8px 0; // 单列左右间距去掉
|
|
}
|
|
}
|
|
&-8 {
|
|
&-8 {
|
|
margin-left: 8px;
|
|
margin-left: 8px;
|