|
|
@@ -4,10 +4,10 @@
|
|
|
<SerialNumberPosition v-if="isEnable(data.property.sn_display_mode)" :property="data.property" />
|
|
|
<div class="main">
|
|
|
<div
|
|
|
- class="item-box"
|
|
|
- :class="['item-box-' + data.property.model]"
|
|
|
v-for="(item, index) in data.option_list"
|
|
|
:key="index"
|
|
|
+ class="item-box"
|
|
|
+ :class="['item-box-' + data.property.model]"
|
|
|
>
|
|
|
<div
|
|
|
class="number-box"
|
|
|
@@ -38,15 +38,14 @@
|
|
|
{{ item.pinyin }}
|
|
|
</div>
|
|
|
<div
|
|
|
- class="inputdv pinyin-common"
|
|
|
v-if="data.answer_type.indexOf('pinyin') > -1 && data.property.model === 'input' && item.is_common_pinyin"
|
|
|
+ class="inputdv pinyin-common"
|
|
|
>
|
|
|
<EditDiv
|
|
|
:id="'b' + item.content + index"
|
|
|
- :canEdit="!item.is_example && !disabled"
|
|
|
v-model="userAnswer[index].answer_pinyin"
|
|
|
- :textAlign="'center'"
|
|
|
- @input="changeAnswer(item, index)"
|
|
|
+ :can-edit="!item.is_example && !disabled"
|
|
|
+ :text-align="'center'"
|
|
|
:class="[classNameJudge(userAnswer[index].answer_pinyin, item.answer_pinyin, item.is_example)]"
|
|
|
:style="{
|
|
|
fontSize:
|
|
|
@@ -56,14 +55,15 @@
|
|
|
? data.unified_attrib.assist_color
|
|
|
: '#deebff',
|
|
|
}"
|
|
|
+ @input="changeAnswer(item, index)"
|
|
|
/>
|
|
|
</div>
|
|
|
<div class="items-flex">
|
|
|
<div
|
|
|
- class="items"
|
|
|
- :class="[items.is_example ? 'items-example' : '']"
|
|
|
v-for="(items, indexs) in item.content_list"
|
|
|
:key="indexs"
|
|
|
+ class="items"
|
|
|
+ :class="[items.is_example ? 'items-example' : '']"
|
|
|
>
|
|
|
<div
|
|
|
v-if="
|
|
|
@@ -79,18 +79,17 @@
|
|
|
{{ items.pinyin }}
|
|
|
</div>
|
|
|
<div
|
|
|
- class="inputdv pinyin-common"
|
|
|
- :class="[items.is_example ? 'items-example' : 'items-no-example']"
|
|
|
v-if="
|
|
|
data.answer_type.indexOf('pinyin') > -1 && data.property.model === 'input' && !item.is_common_pinyin
|
|
|
"
|
|
|
+ class="inputdv pinyin-common"
|
|
|
+ :class="[items.is_example ? 'items-example' : 'items-no-example']"
|
|
|
>
|
|
|
<EditDiv
|
|
|
:id="'c' + items.con + index + indexs"
|
|
|
- :canEdit="!items.is_example && !disabled"
|
|
|
v-model="userAnswer[index].item[indexs].answer_pinyin"
|
|
|
- :textAlign="'center'"
|
|
|
- @input="changeAnswer(item, index, indexs)"
|
|
|
+ :can-edit="!items.is_example && !disabled"
|
|
|
+ :text-align="'center'"
|
|
|
:class="[
|
|
|
classNameJudge(userAnswer[index].item[indexs].answer_pinyin, items.answer_pinyin, items.is_example),
|
|
|
]"
|
|
|
@@ -102,20 +101,21 @@
|
|
|
? data.unified_attrib.assist_color
|
|
|
: '#deebff',
|
|
|
}"
|
|
|
+ @input="changeAnswer(item, index, indexs)"
|
|
|
/>
|
|
|
</div>
|
|
|
<div class="items-content">
|
|
|
<template v-if="items && items.type === 'img'">
|
|
|
<el-image
|
|
|
- class="items-image"
|
|
|
v-if="items.file_list[0]"
|
|
|
+ class="items-image"
|
|
|
:src="items.file_list[0].file_url"
|
|
|
fit="contain"
|
|
|
:style="{
|
|
|
borderColor:
|
|
|
data.unified_attrib && data.unified_attrib.topic_color ? data.unified_attrib.topic_color : '',
|
|
|
}"
|
|
|
- ></el-image>
|
|
|
+ />
|
|
|
</template>
|
|
|
<template v-else-if="items && items.type === 'lian'">
|
|
|
<span class="items-lian">{{ items.con }}</span>
|
|
|
@@ -123,8 +123,8 @@
|
|
|
<Strockplayredline
|
|
|
v-if="items && items.type === 'hanzi'"
|
|
|
:Book_text="items.con"
|
|
|
- :playStorkes="isEnable(data.property.is_enable_play_structure)"
|
|
|
- :curItem="
|
|
|
+ :play-storkes="isEnable(data.property.is_enable_play_structure)"
|
|
|
+ :cur-item="
|
|
|
isEnable(data.property.is_enable_high_strokes)
|
|
|
? data.property.model === 'input'
|
|
|
? items.high_strokes
|
|
|
@@ -132,7 +132,7 @@
|
|
|
: null
|
|
|
"
|
|
|
:type="data.property.model === 'input' ? 'newWord-template-input' : data.type"
|
|
|
- :targetDiv="'newWordTemplate-answer' + items.con + index + indexs + randomId"
|
|
|
+ :target-div="'newWordTemplate-answer' + items.con + index + indexs + randomId"
|
|
|
:hz_json="items.hz_info[0].hzDetail.hz_json"
|
|
|
class="hanzi-storck"
|
|
|
:class="[
|
|
|
@@ -144,24 +144,23 @@
|
|
|
: '',
|
|
|
item.content_list.length > 1 && indexs != item.content_list.length - 1 ? 'NoborderRight' : '',
|
|
|
]"
|
|
|
- bgType="tian"
|
|
|
+ bg-type="tian"
|
|
|
:style="{
|
|
|
borderColor:
|
|
|
data.unified_attrib && data.unified_attrib.topic_color ? data.unified_attrib.topic_color : '',
|
|
|
}"
|
|
|
- :playColor="
|
|
|
+ :play-color="
|
|
|
data.unified_attrib && data.unified_attrib.topic_color ? data.unified_attrib.topic_color : ''
|
|
|
"
|
|
|
/>
|
|
|
</div>
|
|
|
- <div class="inputdv" v-if="data.property.model === 'miao'">
|
|
|
+ <div v-if="data.property.model === 'miao'" class="inputdv">
|
|
|
<EditDiv
|
|
|
v-if="items && items.type === 'hanzi' && items.is_can_input_answer"
|
|
|
:id="'a' + items.con + index + indexs"
|
|
|
- :canEdit="!items.is_example && !disabled"
|
|
|
v-model="userAnswer[index].item[indexs].answer"
|
|
|
- :textAlign="'center'"
|
|
|
- @input="changeAnswer(items, index, indexs)"
|
|
|
+ :can-edit="!items.is_example && !disabled"
|
|
|
+ :text-align="'center'"
|
|
|
:class="[classNameJudge(userAnswer[index].item[indexs].answer, items.answer, items.is_example)]"
|
|
|
:style="{
|
|
|
fontSize:
|
|
|
@@ -171,17 +170,17 @@
|
|
|
? data.unified_attrib.assist_color
|
|
|
: '#deebff',
|
|
|
}"
|
|
|
+ @input="changeAnswer(items, index, indexs)"
|
|
|
/>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="inputdv en-common" v-if="data.answer_type.indexOf('en') > -1 && data.property.model === 'input'">
|
|
|
+ <div v-if="data.answer_type.indexOf('en') > -1 && data.property.model === 'input'" class="inputdv en-common">
|
|
|
<EditDiv
|
|
|
:id="'d' + item.content + index"
|
|
|
- :canEdit="!item.is_example && !disabled"
|
|
|
v-model="userAnswer[index].answer_en"
|
|
|
- :textAlign="'center'"
|
|
|
- @input="changeAnswer(item, index)"
|
|
|
+ :can-edit="!item.is_example && !disabled"
|
|
|
+ :text-align="'center'"
|
|
|
:class="[classNameJudge(userAnswer[index].answer_en, item.answer_en, item.is_example)]"
|
|
|
:style="{
|
|
|
fontSize:
|
|
|
@@ -191,9 +190,10 @@
|
|
|
? data.unified_attrib.assist_color
|
|
|
: '#deebff',
|
|
|
}"
|
|
|
+ @input="changeAnswer(item, index)"
|
|
|
/>
|
|
|
</div>
|
|
|
- <div class="en-common" v-if="data.property.model === 'input'">{{ item.shiyi }}</div>
|
|
|
+ <div v-if="data.property.model === 'input'" class="en-common">{{ item.shiyi }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -202,10 +202,10 @@
|
|
|
<div class="title">正确答案</div>
|
|
|
<div class="box">
|
|
|
<div
|
|
|
- class="item-box"
|
|
|
- :class="['item-box-' + data.property.model]"
|
|
|
v-for="(item, index) in data.option_list"
|
|
|
:key="index"
|
|
|
+ class="item-box"
|
|
|
+ :class="['item-box-' + data.property.model]"
|
|
|
>
|
|
|
<div
|
|
|
class="number-box"
|
|
|
@@ -237,15 +237,14 @@
|
|
|
{{ item.pinyin }}
|
|
|
</div>
|
|
|
<div
|
|
|
- class="inputdv pinyin-common"
|
|
|
v-if="data.answer_type.indexOf('pinyin') > -1 && data.property.model === 'input' && item.is_common_pinyin"
|
|
|
+ class="inputdv pinyin-common"
|
|
|
>
|
|
|
<EditDiv
|
|
|
:id="'bz' + item.content + index"
|
|
|
- :canEdit="!item.is_example && !disabled"
|
|
|
v-model="item.answer_pinyin"
|
|
|
- :textAlign="'center'"
|
|
|
- @input="changeAnswer(item, index)"
|
|
|
+ :can-edit="!item.is_example && !disabled"
|
|
|
+ :text-align="'center'"
|
|
|
:style="{
|
|
|
fontSize:
|
|
|
data.unified_attrib && data.unified_attrib.pinyin_size ? data.unified_attrib.pinyin_size : '16px',
|
|
|
@@ -254,14 +253,15 @@
|
|
|
? data.unified_attrib.assist_color
|
|
|
: '#deebff',
|
|
|
}"
|
|
|
+ @input="changeAnswer(item, index)"
|
|
|
/>
|
|
|
</div>
|
|
|
<div class="items-flex">
|
|
|
<div
|
|
|
- class="items"
|
|
|
- :class="[items.is_example ? 'items-example' : '']"
|
|
|
v-for="(items, indexs) in item.content_list"
|
|
|
:key="indexs"
|
|
|
+ class="items"
|
|
|
+ :class="[items.is_example ? 'items-example' : '']"
|
|
|
>
|
|
|
<div
|
|
|
v-if="
|
|
|
@@ -277,17 +277,16 @@
|
|
|
{{ items.pinyin }}
|
|
|
</div>
|
|
|
<div
|
|
|
- class="inputdv pinyin-common"
|
|
|
v-if="
|
|
|
data.answer_type.indexOf('pinyin') > -1 && data.property.model === 'input' && !item.is_common_pinyin
|
|
|
"
|
|
|
+ class="inputdv pinyin-common"
|
|
|
>
|
|
|
<EditDiv
|
|
|
:id="'cz' + items.con + index + indexs"
|
|
|
- :canEdit="!items.is_example && !disabled"
|
|
|
v-model="items.answer_pinyin"
|
|
|
- :textAlign="'center'"
|
|
|
- @input="changeAnswer(item, index, indexs)"
|
|
|
+ :can-edit="!items.is_example && !disabled"
|
|
|
+ :text-align="'center'"
|
|
|
:style="{
|
|
|
fontSize:
|
|
|
data.unified_attrib && data.unified_attrib.pinyin_size
|
|
|
@@ -298,20 +297,21 @@
|
|
|
? data.unified_attrib.assist_color
|
|
|
: '#deebff',
|
|
|
}"
|
|
|
+ @input="changeAnswer(item, index, indexs)"
|
|
|
/>
|
|
|
</div>
|
|
|
<div class="items-content">
|
|
|
<template v-if="items && items.type === 'img'">
|
|
|
<el-image
|
|
|
- class="items-image"
|
|
|
v-if="items.file_list[0]"
|
|
|
+ class="items-image"
|
|
|
:src="items.file_list[0].file_url"
|
|
|
fit="contain"
|
|
|
:style="{
|
|
|
borderColor:
|
|
|
data.unified_attrib && data.unified_attrib.topic_color ? data.unified_attrib.topic_color : '',
|
|
|
}"
|
|
|
- ></el-image>
|
|
|
+ />
|
|
|
</template>
|
|
|
<template v-else-if="items && items.type === 'lian'">
|
|
|
<span class="items-lian">{{ items.con }}</span>
|
|
|
@@ -319,8 +319,8 @@
|
|
|
<Strockplayredline
|
|
|
v-if="items && items.type === 'hanzi'"
|
|
|
:Book_text="items.con"
|
|
|
- :playStorkes="isEnable(data.property.is_enable_play_structure)"
|
|
|
- :curItem="
|
|
|
+ :play-storkes="isEnable(data.property.is_enable_play_structure)"
|
|
|
+ :cur-item="
|
|
|
isEnable(data.property.is_enable_high_strokes)
|
|
|
? data.property.model === 'input'
|
|
|
? items.high_strokes
|
|
|
@@ -328,7 +328,7 @@
|
|
|
: null
|
|
|
"
|
|
|
:type="data.property.model === 'input' ? 'newWord-template-input' : data.type"
|
|
|
- :targetDiv="'newWordTemplatez' + items.con + index + indexs + randomId"
|
|
|
+ :target-div="'newWordTemplatez' + items.con + index + indexs + randomId"
|
|
|
:hz_json="items.hz_info[0].hzDetail.hz_json"
|
|
|
class="hanzi-storck"
|
|
|
:class="[
|
|
|
@@ -344,20 +344,19 @@
|
|
|
borderColor:
|
|
|
data.unified_attrib && data.unified_attrib.topic_color ? data.unified_attrib.topic_color : '',
|
|
|
}"
|
|
|
- :playColor="
|
|
|
+ :play-color="
|
|
|
data.unified_attrib && data.unified_attrib.topic_color ? data.unified_attrib.topic_color : ''
|
|
|
"
|
|
|
- bgType="tian"
|
|
|
+ bg-type="tian"
|
|
|
/>
|
|
|
</div>
|
|
|
- <div class="inputdv" v-if="data.property.model === 'miao'">
|
|
|
+ <div v-if="data.property.model === 'miao'" class="inputdv">
|
|
|
<EditDiv
|
|
|
v-if="items && items.type === 'hanzi' && items.is_can_input_answer"
|
|
|
:id="'az' + items.con + index + indexs"
|
|
|
- :canEdit="!items.is_example && !disabled"
|
|
|
v-model="items.answer"
|
|
|
- :textAlign="'center'"
|
|
|
- @input="changeAnswer(items, index, indexs)"
|
|
|
+ :can-edit="!items.is_example && !disabled"
|
|
|
+ :text-align="'center'"
|
|
|
:style="{
|
|
|
fontSize:
|
|
|
data.unified_attrib && data.unified_attrib.pinyin_size
|
|
|
@@ -368,20 +367,20 @@
|
|
|
? data.unified_attrib.assist_color
|
|
|
: '#deebff',
|
|
|
}"
|
|
|
+ @input="changeAnswer(items, index, indexs)"
|
|
|
/>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div
|
|
|
- class="inputdv en-common"
|
|
|
v-if="data.answer_type.indexOf('en') > -1 && data.property.model === 'input'"
|
|
|
+ class="inputdv en-common"
|
|
|
>
|
|
|
<EditDiv
|
|
|
:id="'dz' + item.content + index"
|
|
|
- :canEdit="!item.is_example && !disabled"
|
|
|
v-model="item.answer_en"
|
|
|
- :textAlign="'center'"
|
|
|
- @input="changeAnswer(item, index)"
|
|
|
+ :can-edit="!item.is_example && !disabled"
|
|
|
+ :text-align="'center'"
|
|
|
:style="{
|
|
|
fontSize:
|
|
|
data.unified_attrib && data.unified_attrib.pinyin_size ? data.unified_attrib.pinyin_size : '16px',
|
|
|
@@ -390,9 +389,10 @@
|
|
|
? data.unified_attrib.assist_color
|
|
|
: '#deebff',
|
|
|
}"
|
|
|
+ @input="changeAnswer(item, index)"
|
|
|
/>
|
|
|
</div>
|
|
|
- <div class="en-common" v-if="data.property.model === 'input'">{{ item.shiyi }}</div>
|
|
|
+ <div v-if="data.property.model === 'input'" class="en-common">{{ item.shiyi }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|