|
|
@@ -17,15 +17,35 @@
|
|
|
marginTop: isEnable(data.property.view_pinyin) ? '30px' : '',
|
|
|
}"
|
|
|
>
|
|
|
- <span class="number">{{ index + 1 }}</span>
|
|
|
+ <span
|
|
|
+ class="number"
|
|
|
+ :style="{
|
|
|
+ background:
|
|
|
+ data.unified_attrib && data.unified_attrib.topic_color ? data.unified_attrib.topic_color : '',
|
|
|
+ }"
|
|
|
+ >{{ index + 1 }}</span
|
|
|
+ >
|
|
|
</div>
|
|
|
<div class="pinyin-en" :class="[item.is_example ? 'item-example' : '']">
|
|
|
- <div v-if="isEnable(data.property.view_pinyin) && item.is_common_pinyin" class="pinyin">
|
|
|
+ <div
|
|
|
+ v-if="isEnable(data.property.view_pinyin) && item.is_common_pinyin"
|
|
|
+ class="pinyin"
|
|
|
+ :style="{
|
|
|
+ fontSize: data.unified_attrib && data.unified_attrib.pinyin_size ? data.unified_attrib.pinyin_size : '',
|
|
|
+ }"
|
|
|
+ >
|
|
|
{{ item.pinyin }}
|
|
|
</div>
|
|
|
<div class="items-flex">
|
|
|
<div class="items" v-for="(items, indexs) in item.content_list" :key="indexs">
|
|
|
- <div v-if="isEnable(data.property.view_pinyin) && !item.is_common_pinyin" class="pinyin">
|
|
|
+ <div
|
|
|
+ v-if="isEnable(data.property.view_pinyin) && !item.is_common_pinyin"
|
|
|
+ class="pinyin"
|
|
|
+ :style="{
|
|
|
+ fontSize:
|
|
|
+ data.unified_attrib && data.unified_attrib.pinyin_size ? data.unified_attrib.pinyin_size : '',
|
|
|
+ }"
|
|
|
+ >
|
|
|
{{ items.pinyin }}
|
|
|
</div>
|
|
|
<div class="items-content">
|
|
|
@@ -38,7 +58,14 @@
|
|
|
></el-image>
|
|
|
</template>
|
|
|
<template v-else-if="items && items.type === 'lian'">
|
|
|
- <span class="items-lian">{{ items.con }}</span>
|
|
|
+ <span
|
|
|
+ class="items-lian"
|
|
|
+ :style="{
|
|
|
+ background:
|
|
|
+ data.unified_attrib && data.unified_attrib.topic_color ? data.unified_attrib.topic_color : '',
|
|
|
+ }"
|
|
|
+ >{{ items.con }}</span
|
|
|
+ >
|
|
|
</template>
|
|
|
<Strockplayredline
|
|
|
v-if="items && items.type === 'hanzi'"
|
|
|
@@ -52,7 +79,7 @@
|
|
|
: null
|
|
|
"
|
|
|
:type="data.property.model === 'input' ? 'newWord-template-input' : data.type"
|
|
|
- :targetDiv="'newWordTemplates' + items.con + index + indexs + Math.random().toString(36)"
|
|
|
+ :targetDiv="'newWordTemplate-character' + items.con + index + indexs + randomId"
|
|
|
:hz_json="items.hz_info[0].hzDetail.hz_json"
|
|
|
:bgType="data.property.frame_type"
|
|
|
class="hanzi-storck"
|
|
|
@@ -72,6 +99,15 @@
|
|
|
? 'NoborderRight'
|
|
|
: '',
|
|
|
]"
|
|
|
+ :playColor="
|
|
|
+ data.unified_attrib && data.unified_attrib.topic_color ? data.unified_attrib.topic_color : ''
|
|
|
+ "
|
|
|
+ :style="{
|
|
|
+ borderColor:
|
|
|
+ data.unified_attrib && data.unified_attrib.topic_color
|
|
|
+ ? data.unified_attrib.topic_color
|
|
|
+ : '#346cda',
|
|
|
+ }"
|
|
|
/>
|
|
|
|
|
|
<div
|
|
|
@@ -100,6 +136,12 @@
|
|
|
indexs,
|
|
|
)
|
|
|
"
|
|
|
+ :style="{
|
|
|
+ borderColor:
|
|
|
+ data.unified_attrib && data.unified_attrib.topic_color
|
|
|
+ ? data.unified_attrib.topic_color
|
|
|
+ : '#346cda',
|
|
|
+ }"
|
|
|
>
|
|
|
<SvgIcon
|
|
|
icon-class="hanzi-writer-bg"
|
|
|
@@ -136,12 +178,20 @@
|
|
|
<div class="words-left" :style="{}">
|
|
|
<AudioPlay
|
|
|
:file-id="item.audio_file_id"
|
|
|
- theme-color="gray"
|
|
|
+ :theme-color="
|
|
|
+ data.unified_attrib && data.unified_attrib.topic_color ? data.unified_attrib.topic_color : ''
|
|
|
+ "
|
|
|
v-if="isEnable(data.property.is_enable_voice)"
|
|
|
/>
|
|
|
- <span class="pinyin" v-if="isEnable(data.property.view_pinyin) && item.is_common_pinyin">{{
|
|
|
- item.pinyin
|
|
|
- }}</span>
|
|
|
+ <span
|
|
|
+ class="pinyin"
|
|
|
+ v-if="isEnable(data.property.view_pinyin) && item.is_common_pinyin"
|
|
|
+ :style="{
|
|
|
+ fontSize:
|
|
|
+ data.unified_attrib && data.unified_attrib.pinyin_size ? data.unified_attrib.pinyin_size : '',
|
|
|
+ }"
|
|
|
+ >{{ item.pinyin }}</span
|
|
|
+ >
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="card-box">
|
|
|
@@ -155,11 +205,22 @@
|
|
|
:Book_text="items.con"
|
|
|
:playStorkes="isEnable(data.property.is_enable_stroke)"
|
|
|
:curItem="null"
|
|
|
- :targetDiv="'newWordTemplates' + items.con + index + indexs + Math.random().toString(36)"
|
|
|
- :hz_json="items.hz_info[0].hzDetail.hz_json"
|
|
|
+ :targetDiv="'newWordTemplate-character-answer' + items.con + index + indexs"
|
|
|
+ :hz_json="
|
|
|
+ items.hz_info && items.hz_info[0].hzDetail.hz_json ? items.hz_info[0].hzDetail.hz_json : []
|
|
|
+ "
|
|
|
class="hanzi-storck"
|
|
|
:class="['strock-chinese', 'border-right-none']"
|
|
|
:bgType="data.property.frame_type"
|
|
|
+ :playColor="
|
|
|
+ data.unified_attrib && data.unified_attrib.topic_color ? data.unified_attrib.topic_color : ''
|
|
|
+ "
|
|
|
+ :style="{
|
|
|
+ borderColor:
|
|
|
+ data.unified_attrib && data.unified_attrib.topic_color
|
|
|
+ ? data.unified_attrib.topic_color
|
|
|
+ : '#346cda',
|
|
|
+ }"
|
|
|
/>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -169,6 +230,12 @@
|
|
|
:key="indexI + index"
|
|
|
style="display: flex"
|
|
|
@click="miaoStorkes(index, indexI, item.mark, item.content, itemI.strokes)"
|
|
|
+ :style="{
|
|
|
+ borderColor:
|
|
|
+ data.unified_attrib && data.unified_attrib.topic_color
|
|
|
+ ? data.unified_attrib.topic_color
|
|
|
+ : '#346cda',
|
|
|
+ }"
|
|
|
>
|
|
|
<Strockplayredlines
|
|
|
v-if="
|
|
|
@@ -177,20 +244,38 @@
|
|
|
"
|
|
|
:play-storkes="false"
|
|
|
:book-text="item.content"
|
|
|
- :target-div="'write-praT' + Math.random().toString(36).substring(2, 10)"
|
|
|
+ :target-div="'write-praT-1' + indexI + index + randomId"
|
|
|
:book-strokes="itemI.strokes"
|
|
|
:class="['strock-chinese']"
|
|
|
:bgType="data.property.frame_type"
|
|
|
+ :playColor="
|
|
|
+ data.unified_attrib && data.unified_attrib.topic_color ? data.unified_attrib.topic_color : ''
|
|
|
+ "
|
|
|
+ :style="{
|
|
|
+ borderColor:
|
|
|
+ data.unified_attrib && data.unified_attrib.topic_color
|
|
|
+ ? data.unified_attrib.topic_color
|
|
|
+ : '#346cda',
|
|
|
+ }"
|
|
|
/>
|
|
|
<Strockplayredlines
|
|
|
v-else
|
|
|
:play-storkes="false"
|
|
|
:book-text="item.content"
|
|
|
- :target-div="'write-praT' + Math.random().toString(36).substring(2, 10)"
|
|
|
+ :target-div="'write-praT-2' + indexI + index + randomId"
|
|
|
:book-strokes="itemI.strokes"
|
|
|
:stroke-color="'#ddd'"
|
|
|
:class="['strock-chinese']"
|
|
|
:bgType="data.property.frame_type"
|
|
|
+ :playColor="
|
|
|
+ data.unified_attrib && data.unified_attrib.topic_color ? data.unified_attrib.topic_color : ''
|
|
|
+ "
|
|
|
+ :style="{
|
|
|
+ borderColor:
|
|
|
+ data.unified_attrib && data.unified_attrib.topic_color
|
|
|
+ ? data.unified_attrib.topic_color
|
|
|
+ : '#346cda',
|
|
|
+ }"
|
|
|
/>
|
|
|
</div>
|
|
|
<!-- 书写 -->
|
|
|
@@ -206,6 +291,12 @@
|
|
|
indexs,
|
|
|
)
|
|
|
"
|
|
|
+ :style="{
|
|
|
+ borderColor:
|
|
|
+ data.unified_attrib && data.unified_attrib.topic_color
|
|
|
+ ? data.unified_attrib.topic_color
|
|
|
+ : '#346cda',
|
|
|
+ }"
|
|
|
>
|
|
|
<SvgIcon
|
|
|
icon-class="hanzi-writer-bg"
|
|
|
@@ -248,6 +339,7 @@
|
|
|
@changeCurQue="changeCurQue"
|
|
|
@deleteWriteRecord="deleteWriteRecord"
|
|
|
:bgType="data.property.frame_type"
|
|
|
+ :attrib="data.unified_attrib"
|
|
|
/>
|
|
|
</div>
|
|
|
<div v-if="if_miao_show" class="practiceBox practice-box-strock">
|
|
|
@@ -261,7 +353,7 @@
|
|
|
"
|
|
|
:play-storkes="false"
|
|
|
:book-text="current_hz"
|
|
|
- :target-div="'write-praT' + current_hz + active_col_index + Math.random().toString(36).substring(2, 10)"
|
|
|
+ :target-div="'write-praT-3' + current_hz + active_col_index + active_index + randomId"
|
|
|
:book-strokes="current_hz_data"
|
|
|
:stroke-color="
|
|
|
disabled &&
|
|
|
@@ -272,6 +364,7 @@
|
|
|
: ''
|
|
|
"
|
|
|
:bgType="data.property.frame_type"
|
|
|
+ :playColor="data.unified_attrib && data.unified_attrib.topic_color ? data.unified_attrib.topic_color : ''"
|
|
|
/>
|
|
|
<Strockred
|
|
|
ref="strockRed"
|
|
|
@@ -284,7 +377,7 @@
|
|
|
]"
|
|
|
:book-text="current_hz"
|
|
|
:hanzi-color="hanzi_color"
|
|
|
- :target-div="'write-praT' + current_hz + active_col_index + Math.random().toString(36).substring(2, 10)"
|
|
|
+ :target-div="'write-praT' + current_hz + active_col_index + active_index + randomId"
|
|
|
:book-strokes="current_hz_data"
|
|
|
:is-answer.sync="userAnswer[active_index].strokes_content_list[active_col_index].flag"
|
|
|
:show-error-tip="isEnable(data.property.is_enable_error)"
|
|
|
@@ -339,6 +432,7 @@ export default {
|
|
|
show_preview: false,
|
|
|
miao_arr: [],
|
|
|
if_miao_show: false, // 描红模块
|
|
|
+ randomId: Math.random().toString(36).substring(2, 12),
|
|
|
};
|
|
|
},
|
|
|
computed: {},
|
|
|
@@ -422,7 +516,12 @@ export default {
|
|
|
this.active_index = index;
|
|
|
this.active_col_index = indexs;
|
|
|
|
|
|
- this.current_hz = this.data.option_list[index].content_list[indexs].con;
|
|
|
+ this.current_hz =
|
|
|
+ this.data.option_list[index] &&
|
|
|
+ this.data.option_list[index].content_list[indexs] &&
|
|
|
+ this.data.option_list[index].content_list[indexs].con
|
|
|
+ ? this.data.option_list[index].content_list[indexs].con
|
|
|
+ : '';
|
|
|
this.current_hz_data = imgUrl;
|
|
|
},
|
|
|
// 删除记录
|
|
|
@@ -487,12 +586,13 @@ export default {
|
|
|
}
|
|
|
|
|
|
.audio-wrapper-nobg {
|
|
|
- height: 16px;
|
|
|
+ height: 24px;
|
|
|
|
|
|
:deep .audio-play {
|
|
|
- width: 16px;
|
|
|
- height: 16px;
|
|
|
- color: #000;
|
|
|
+ width: 24px;
|
|
|
+ height: 24px;
|
|
|
+
|
|
|
+ // color: #000;
|
|
|
background-color: initial;
|
|
|
}
|
|
|
|
|
|
@@ -590,6 +690,7 @@ export default {
|
|
|
font-family: 'League';
|
|
|
font-size: 20px;
|
|
|
font-weight: 400;
|
|
|
+ line-height: 30px;
|
|
|
color: rgba(0, 0, 0, 50%);
|
|
|
text-align: center;
|
|
|
}
|
|
|
@@ -751,7 +852,7 @@ export default {
|
|
|
:deep .strockplay-redInner {
|
|
|
width: 80px;
|
|
|
height: 80px;
|
|
|
- border: 2px solid #346cda !important;
|
|
|
+ border-width: 2px !important;
|
|
|
border-radius: 8px;
|
|
|
}
|
|
|
|