|
@@ -10,7 +10,7 @@
|
|
|
<!-- 笔画学习 -->
|
|
|
<div :class="['words-box', 'words-box-' + data.property.learn_type]">
|
|
|
<div v-for="(item, index) in data.option_list" :key="index" :class="['words-item']">
|
|
|
- <template v-if="item.content && item.content.trim() && item.strokes">
|
|
|
+ <template v-if="item.content && item.content.trim() && item.chinese_strokes[0].strokes">
|
|
|
<div
|
|
|
v-if="data.property.learn_type !== 'dictation'"
|
|
|
class="words-top"
|
|
@@ -31,7 +31,7 @@
|
|
|
:play-storkes="true"
|
|
|
:book-text="item.content"
|
|
|
:target-div="'pre' + item.content + index"
|
|
|
- :book-strokes="item.strokes"
|
|
|
+ :book-strokes="item.chinese_strokes[0].strokes"
|
|
|
:class="['strock-chinese', 'border-right-none']"
|
|
|
/>
|
|
|
<Strockred
|
|
@@ -41,7 +41,7 @@
|
|
|
:hanzi-color="hanzi_color"
|
|
|
:reset="true"
|
|
|
:target-div="'write-praT' + item.content + itemI + Math.random().toString(36).substring(2, 10)"
|
|
|
- :book-strokes="item.strokes"
|
|
|
+ :book-strokes="item.chinese_strokes[0].strokes"
|
|
|
:class="[
|
|
|
'strock-chinese',
|
|
|
(itemI + 1) % writer_number_yuan !== 0 && itemI !== writer_number ? 'border-right-none' : '',
|
|
@@ -68,7 +68,7 @@
|
|
|
:play-storkes="true"
|
|
|
:book-text="item.content"
|
|
|
:target-div="'pre' + item.content + index"
|
|
|
- :book-strokes="item.strokes"
|
|
|
+ :book-strokes="item.chinese_strokes[0].strokes"
|
|
|
:class="['strock-chinese']"
|
|
|
/>
|
|
|
<div v-for="(items, indexs) in item.imgArr" :key="indexs" class="con-box">
|
|
@@ -133,7 +133,6 @@ import PreviewMixin from './components/PreviewMixin';
|
|
|
import Strockplayredline from './components/common/Strockplayredline.vue';
|
|
|
import Strockred from './components/common/Strockred.vue';
|
|
|
import FreewriteLettle from './components/common/FreewriteLettle.vue';
|
|
|
-import { GetStaticResources } from '@/api/app';
|
|
|
|
|
|
export default {
|
|
|
name: 'ChinesePreview',
|
|
@@ -249,13 +248,13 @@ export default {
|
|
|
item.imgArr = arr;
|
|
|
this.answer_list.write_model[this.hz_data[index]] = arr;
|
|
|
} else if (item.content.trim()) {
|
|
|
- let MethodName = 'hz_resource_manager-GetHZStrokesContent';
|
|
|
- let data = {
|
|
|
- hz: item.content.trim(),
|
|
|
- };
|
|
|
- GetStaticResources(MethodName, data).then((res) => {
|
|
|
- this.$set(item, 'strokes', res);
|
|
|
- });
|
|
|
+ // let MethodName = 'hz_resource_manager-GetHZStrokesContent';
|
|
|
+ // let data = {
|
|
|
+ // hz: item.content.trim(),
|
|
|
+ // };
|
|
|
+ // GetStaticResources(MethodName, data).then((res) => {
|
|
|
+ // this.$set(item, 'strokes', res);
|
|
|
+ // });
|
|
|
|
|
|
for (let i = 0; i < this.writer_number; i++) {
|
|
|
arr.push(null);
|