|
@@ -26,14 +26,14 @@
|
|
|
</div>
|
|
|
<template v-for="(item, index) in data.option_list">
|
|
|
<div class="strock-box" :key="index" v-if="index === active_index">
|
|
|
- <div class="strock-left" v-if="item.content_arr_strokes && item.content_arr_strokes.length > 0">
|
|
|
- <template v-for="(items, indexs) in item.content_arr_strokes">
|
|
|
+ <div class="strock-left" v-if="item.chinese_strokes && item.chinese_strokes.length > 0">
|
|
|
+ <template v-for="(items, indexs) in item.chinese_strokes">
|
|
|
<Strockplayredline
|
|
|
:play-storkes="true"
|
|
|
:book-text="items.hz"
|
|
|
:target-div="'pre' + items.hz + indexs + active_index"
|
|
|
:book-strokes="items.strokes"
|
|
|
- :class="['strock-chinese', indexs !== item.content_arr_strokes.length - 1 ? 'border-right-none' : '']"
|
|
|
+ :class="['strock-chinese', indexs !== item.chinese_strokes.length - 1 ? 'border-right-none' : '']"
|
|
|
:key="indexs"
|
|
|
v-if="items"
|
|
|
/>
|
|
@@ -103,7 +103,6 @@ export default {
|
|
|
},
|
|
|
watch: {},
|
|
|
created() {
|
|
|
- console.log(this.data);
|
|
|
this.handleData();
|
|
|
},
|
|
|
mounted() {},
|
|
@@ -124,29 +123,29 @@ export default {
|
|
|
};
|
|
|
item.definition_preview = item.definition.split('\n');
|
|
|
this.answer_list.push(obj);
|
|
|
- let content_arr = item.content.trim().split('');
|
|
|
- let content_arrs = [];
|
|
|
- let content_arr_strokes = [];
|
|
|
- content_arr.forEach((itemc) => {
|
|
|
- if (itemc.trim()) {
|
|
|
- content_arrs.push(itemc.trim());
|
|
|
- }
|
|
|
- });
|
|
|
- content_arrs.forEach((itemc, indexc) => {
|
|
|
- content_arr_strokes.push(null);
|
|
|
- let MethodName = 'hz_resource_manager-GetHZStrokesContent';
|
|
|
- let data = {
|
|
|
- hz: itemc,
|
|
|
- };
|
|
|
- GetStaticResources(MethodName, data).then((res) => {
|
|
|
- let obj = {
|
|
|
- hz: itemc.trim(),
|
|
|
- strokes: res,
|
|
|
- };
|
|
|
- content_arr_strokes[indexc] = obj;
|
|
|
- });
|
|
|
- });
|
|
|
- item.content_arr_strokes = content_arr_strokes;
|
|
|
+ // let content_arr = item.content.trim().split('');
|
|
|
+ // let content_arrs = [];
|
|
|
+ // let content_arr_strokes = [];
|
|
|
+ // content_arr.forEach((itemc) => {
|
|
|
+ // if (itemc.trim()) {
|
|
|
+ // content_arrs.push(itemc.trim());
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // content_arrs.forEach((itemc, indexc) => {
|
|
|
+ // content_arr_strokes.push(null);
|
|
|
+ // let MethodName = 'hz_resource_manager-GetHZStrokesContent';
|
|
|
+ // let data = {
|
|
|
+ // hz: itemc,
|
|
|
+ // };
|
|
|
+ // GetStaticResources(MethodName, data).then((res) => {
|
|
|
+ // let obj = {
|
|
|
+ // hz: itemc.trim(),
|
|
|
+ // strokes: res,
|
|
|
+ // };
|
|
|
+ // content_arr_strokes[indexc] = obj;
|
|
|
+ // });
|
|
|
+ // });
|
|
|
+ // item.content_arr_strokes = content_arr_strokes;
|
|
|
});
|
|
|
},
|
|
|
},
|