|
@@ -54,6 +54,7 @@
|
|
|
:type="data.property.model === 'input' ? 'newWord-template-input' : data.type"
|
|
|
:targetDiv="'newWordTemplate' + items.con + index + indexs"
|
|
|
:hz_json="items.hz_info[0].hzDetail.hz_json"
|
|
|
+ :bgType="data.property.frame_type"
|
|
|
class="hanzi-storck"
|
|
|
:class="[
|
|
|
!item.is_margin && item.content_list.length > 1 && indexs == 0 ? 'leftBorderRadius' : '',
|
|
@@ -100,7 +101,16 @@
|
|
|
)
|
|
|
"
|
|
|
>
|
|
|
- <SvgIcon icon-class="hanzi-writer-bg" class="character-target-bg" />
|
|
|
+ <SvgIcon
|
|
|
+ icon-class="hanzi-writer-bg"
|
|
|
+ class="character-target-bg"
|
|
|
+ v-if="data.property.frame_type === 'tian'"
|
|
|
+ />
|
|
|
+ <SvgIcon
|
|
|
+ icon-class="mi"
|
|
|
+ class="character-target-bg"
|
|
|
+ v-else-if="data.property.frame_type === 'mi'"
|
|
|
+ />
|
|
|
<img
|
|
|
v-if="
|
|
|
!play_status &&
|
|
@@ -124,23 +134,34 @@
|
|
|
<div v-for="(item, index) in data.option_list" :key="index" :class="['words-item']">
|
|
|
<div class="words-top">
|
|
|
<div class="words-left" :style="{}">
|
|
|
- <AudioPlay :file-id="item.audio_file_id" theme-color="gray" />
|
|
|
- <span class="pinyin">{{ item.pinyin }}</span>
|
|
|
+ <AudioPlay
|
|
|
+ :file-id="item.audio_file_id"
|
|
|
+ theme-color="gray"
|
|
|
+ v-if="isEnable(data.property.is_enable_voice)"
|
|
|
+ />
|
|
|
+ <span class="pinyin" v-if="isEnable(data.property.is_enable_pinyin) && item.is_common_pinyin">{{
|
|
|
+ item.pinyin
|
|
|
+ }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="card-box">
|
|
|
<!-- 描红 -->
|
|
|
<template v-for="(items, indexs) in item.content_list">
|
|
|
- <Strockplayredline
|
|
|
- :key="'miao' + indexs"
|
|
|
- :Book_text="items.con"
|
|
|
- :playStorkes="isEnable(data.property.is_enable_stroke)"
|
|
|
- :curItem="null"
|
|
|
- :targetDiv="'newWordTemplate' + items.con + index + indexs"
|
|
|
- :hz_json="items.hz_info[0].hzDetail.hz_json"
|
|
|
- class="hanzi-storck"
|
|
|
- :class="['strock-chinese', 'border-right-none']"
|
|
|
- />
|
|
|
+ <div v-if="item.is_show_ben" :key="'miao' + indexs">
|
|
|
+ <!-- <div v-if="isEnable(data.property.is_enable_pinyin) && !item.is_common_pinyin" class="pinyin">
|
|
|
+ {{ items.pinyin }}
|
|
|
+ </div> -->
|
|
|
+ <Strockplayredline
|
|
|
+ :Book_text="items.con"
|
|
|
+ :playStorkes="isEnable(data.property.is_enable_stroke)"
|
|
|
+ :curItem="null"
|
|
|
+ :targetDiv="'newWordTemplate' + items.con + index + indexs"
|
|
|
+ :hz_json="items.hz_info[0].hzDetail.hz_json"
|
|
|
+ class="hanzi-storck"
|
|
|
+ :class="['strock-chinese', 'border-right-none']"
|
|
|
+ :bgType="data.property.frame_type"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<div
|
|
@@ -159,6 +180,7 @@
|
|
|
:target-div="'write-praT' + Math.random().toString(36).substring(2, 10)"
|
|
|
:book-strokes="itemI.strokes"
|
|
|
:class="['strock-chinese']"
|
|
|
+ :bgType="data.property.frame_type"
|
|
|
/>
|
|
|
<Strockplayredlines
|
|
|
v-else
|
|
@@ -168,6 +190,7 @@
|
|
|
:book-strokes="itemI.strokes"
|
|
|
:stroke-color="'#ddd'"
|
|
|
:class="['strock-chinese']"
|
|
|
+ :bgType="data.property.frame_type"
|
|
|
/>
|
|
|
</div>
|
|
|
<!-- 书写 -->
|
|
@@ -184,7 +207,12 @@
|
|
|
)
|
|
|
"
|
|
|
>
|
|
|
- <SvgIcon icon-class="hanzi-writer-bg" class="character-target-bg" />
|
|
|
+ <SvgIcon
|
|
|
+ icon-class="hanzi-writer-bg"
|
|
|
+ class="character-target-bg"
|
|
|
+ v-if="data.property.frame_type === 'tian'"
|
|
|
+ />
|
|
|
+ <SvgIcon icon-class="mi" class="character-target-bg" v-else-if="data.property.frame_type === 'mi'" />
|
|
|
<img
|
|
|
v-if="
|
|
|
!play_status &&
|
|
@@ -199,7 +227,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="words-bottom" v-if="item.shiyi">
|
|
|
+ <div class="words-bottom" v-if="item.shiyi && isEnable(data.property.is_enable_shiyi)">
|
|
|
{{ item.shiyi }}
|
|
|
</div>
|
|
|
</div>
|
|
@@ -219,6 +247,7 @@
|
|
|
@changePraShow="changePraShow"
|
|
|
@changeCurQue="changeCurQue"
|
|
|
@deleteWriteRecord="deleteWriteRecord"
|
|
|
+ :bgType="data.property.frame_type"
|
|
|
/>
|
|
|
</div>
|
|
|
<div v-if="if_miao_show" class="practiceBox practice-box-strock">
|
|
@@ -242,6 +271,7 @@
|
|
|
? '#ddd'
|
|
|
: ''
|
|
|
"
|
|
|
+ :bgType="data.property.frame_type"
|
|
|
/>
|
|
|
<Strockred
|
|
|
ref="strockRed"
|
|
@@ -258,6 +288,7 @@
|
|
|
: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)"
|
|
|
+ :bgType="data.property.frame_type"
|
|
|
/>
|
|
|
<div v-if="!disabled" :class="['reset-box']" @click="resetHanzi">
|
|
|
<SvgIcon icon-class="reset" class="reset-btn" />
|
|
@@ -325,7 +356,6 @@ export default {
|
|
|
created() {},
|
|
|
methods: {
|
|
|
handleData() {
|
|
|
- console.log(this.data.option_list);
|
|
|
let answer_list = [];
|
|
|
this.data.option_list.forEach((item, index) => {
|
|
|
if (this.data.property.model === 'write') {
|