|
|
@@ -22,19 +22,30 @@
|
|
|
<div class="tab-box" :class="[isPhone ? 'tab-box-phone' : '']">
|
|
|
<div class="tab-box_0" :class="[isShow == '0' ? 'z-top' : '']">
|
|
|
<div class="left-content">
|
|
|
- <div class="strockplay">
|
|
|
+ <div
|
|
|
+ class="strockplay"
|
|
|
+ :style="{
|
|
|
+ borderColor: attrib ? attrib.topic_color : '',
|
|
|
+ }"
|
|
|
+ >
|
|
|
<Strockplayredline
|
|
|
:play-storkes="true"
|
|
|
:word-num="item.con.length"
|
|
|
:Book_text="item.con"
|
|
|
:target-div="'pra' + item.con + index"
|
|
|
+ :attrib="attrib"
|
|
|
/>
|
|
|
</div>
|
|
|
<div class="left-content-pra">
|
|
|
<div>
|
|
|
<span v-if="item.pinyin">{{ item.pinyin.toLowerCase() }}</span>
|
|
|
<div v-if="mp3Url" style="margin-left: 4px">
|
|
|
- <Audio :mp3="mp3Url ? mp3Url : ''" :theme-color="themeColor" :bg="bg" :ed="ed" />
|
|
|
+ <Audio
|
|
|
+ :mp3="mp3Url ? mp3Url : ''"
|
|
|
+ :theme-color="attrib ? attrib.topic_color : '#e35454'"
|
|
|
+ :bg="bg"
|
|
|
+ :ed="ed"
|
|
|
+ />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -81,6 +92,7 @@
|
|
|
:hanzicolor="hanzicolor"
|
|
|
:play-storkes="true"
|
|
|
:target-div="'write-pra' + cur.stem[0].con"
|
|
|
+ :attrib="attrib"
|
|
|
/>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
@@ -94,6 +106,7 @@
|
|
|
:TaskModel="TaskModel"
|
|
|
:write-list="writeList"
|
|
|
@saveWriteAnswer="saveWriteAnswer"
|
|
|
+ :attrib="attrib"
|
|
|
/>
|
|
|
<div class="footer">
|
|
|
<div class="pen-colors"></div>
|
|
|
@@ -103,20 +116,43 @@
|
|
|
</div>
|
|
|
|
|
|
<ul v-if="TaskModel != 'ANSWER'" class="nav-list">
|
|
|
- <li :class="navIndex == 0 ? 'active' : ''" @click="changeNav(0)">描红</li>
|
|
|
- <li :class="navIndex == 1 ? 'active' : ''" @click="changeNav(1)">临摹</li>
|
|
|
+ <li
|
|
|
+ :class="navIndex == 0 ? 'active' : ''"
|
|
|
+ @click="changeNav(0)"
|
|
|
+ :style="{
|
|
|
+ background: attrib ? attrib.topic_color : '',
|
|
|
+ }"
|
|
|
+ >
|
|
|
+ 描红
|
|
|
+ </li>
|
|
|
+ <li
|
|
|
+ :class="navIndex == 1 ? 'active' : ''"
|
|
|
+ @click="changeNav(1)"
|
|
|
+ :style="{
|
|
|
+ background: attrib ? attrib.assist_color : '',
|
|
|
+ color: attrib ? attrib.topic_color : '',
|
|
|
+ }"
|
|
|
+ >
|
|
|
+ 临摹
|
|
|
+ </li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
</template>
|
|
|
</div>
|
|
|
<div class="tab-box_1" :class="[isShow == '1' ? 'z-top' : '']">
|
|
|
<div class="left-content">
|
|
|
- <div class="strockplay">
|
|
|
+ <div
|
|
|
+ class="strockplay"
|
|
|
+ :style="{
|
|
|
+ borderColor: attrib ? attrib.topic_color : '',
|
|
|
+ }"
|
|
|
+ >
|
|
|
<Strockplayredline
|
|
|
:play-storkes="true"
|
|
|
:word-num="item.TChinese.length"
|
|
|
:Book_text="item.TChinese"
|
|
|
:target-div="'praT' + item.TChinese + index"
|
|
|
+ :attrib="attrib"
|
|
|
/>
|
|
|
</div>
|
|
|
<div class="left-content-pra"></div>
|
|
|
@@ -163,6 +199,7 @@
|
|
|
:hanzicolor="hanzicolor"
|
|
|
:play-storkes="true"
|
|
|
:target-div="'write-praT' + cur.stem[0].TChinese"
|
|
|
+ :attrib="attrib"
|
|
|
/>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
@@ -176,6 +213,7 @@
|
|
|
:TaskModel="TaskModel"
|
|
|
:write-list="writeList"
|
|
|
@saveWriteAnswer="saveWriteAnswer"
|
|
|
+ :attrib="attrib"
|
|
|
/>
|
|
|
<div class="footer">
|
|
|
<div class="pen-colors"></div>
|
|
|
@@ -185,8 +223,25 @@
|
|
|
</div>
|
|
|
|
|
|
<ul v-if="TaskModel != 'ANSWER'" class="nav-list">
|
|
|
- <li :class="navIndex == 0 ? 'active' : ''" @click="changeNav(0)">描红</li>
|
|
|
- <li :class="navIndex == 1 ? 'active' : ''" @click="changeNav(1)">临摹</li>
|
|
|
+ <li
|
|
|
+ :class="navIndex == 0 ? 'active' : ''"
|
|
|
+ @click="changeNav(0)"
|
|
|
+ :style="{
|
|
|
+ background: attrib ? attrib.topic_color : '',
|
|
|
+ }"
|
|
|
+ >
|
|
|
+ 描红
|
|
|
+ </li>
|
|
|
+ <li
|
|
|
+ :class="navIndex == 1 ? 'active' : ''"
|
|
|
+ @click="changeNav(1)"
|
|
|
+ :style="{
|
|
|
+ background: attrib ? attrib.assist_color : '',
|
|
|
+ color: attrib ? attrib.topic_color : '',
|
|
|
+ }"
|
|
|
+ >
|
|
|
+ 临摹
|
|
|
+ </li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -211,7 +266,18 @@ export default {
|
|
|
Freewrite,
|
|
|
Audio,
|
|
|
},
|
|
|
- props: ['cur', 'changePraShow', 'themeColor', 'currentTreeID', 'mp3Url', 'TaskModel', 'writeList', 'bg', 'ed'],
|
|
|
+ props: [
|
|
|
+ 'cur',
|
|
|
+ 'changePraShow',
|
|
|
+ 'themeColor',
|
|
|
+ 'currentTreeID',
|
|
|
+ 'mp3Url',
|
|
|
+ 'TaskModel',
|
|
|
+ 'writeList',
|
|
|
+ 'bg',
|
|
|
+ 'ed',
|
|
|
+ 'attrib',
|
|
|
+ ],
|
|
|
data() {
|
|
|
return {
|
|
|
// learn_mode: "",
|