|
@@ -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.trim()">
|
|
|
+ <template v-if="item.content">
|
|
|
<div
|
|
|
v-if="data.property.learn_type !== 'learn'"
|
|
|
class="words-top"
|
|
@@ -120,6 +120,7 @@ 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',
|
|
@@ -180,18 +181,18 @@ export default {
|
|
|
this.data.option_list.forEach((item) => {
|
|
|
if (item.content.trim()) {
|
|
|
let arr = [];
|
|
|
- // 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);
|
|
|
}
|
|
|
item.imgArr = arr;
|
|
|
- this.answer_list.write_model[item.content.trim()] = arr;
|
|
|
+ this.answer_list.write_model[item.content] = arr;
|
|
|
}
|
|
|
});
|
|
|
},
|
|
@@ -251,6 +252,7 @@ export default {
|
|
|
.words-top {
|
|
|
display: flex;
|
|
|
width: 100%;
|
|
|
+ min-height: 30px;
|
|
|
border: 1px solid #e81b1b;
|
|
|
border-bottom: none;
|
|
|
|