|
@@ -61,7 +61,7 @@
|
|
<template v-if="pItem.isShow">
|
|
<template v-if="pItem.isShow">
|
|
<template
|
|
<template
|
|
v-if="
|
|
v-if="
|
|
- item.wordsList[pIndex + 1].chs &&
|
|
|
|
|
|
+ item.wordsList[pIndex + 1]&&item.wordsList[pIndex + 1].chs &&
|
|
chsFhList.indexOf(item.wordsList[pIndex + 1].chs) > -1
|
|
chsFhList.indexOf(item.wordsList[pIndex + 1].chs) > -1
|
|
"
|
|
"
|
|
>
|
|
>
|
|
@@ -380,24 +380,28 @@ export default {
|
|
let dhaspinyin = false; // 每段是否有拼音
|
|
let dhaspinyin = false; // 每段是否有拼音
|
|
curQue.detail.forEach((dItem, dIndex) => {
|
|
curQue.detail.forEach((dItem, dIndex) => {
|
|
dhaspinyin = false
|
|
dhaspinyin = false
|
|
- let paraArr = [
|
|
|
|
- {
|
|
|
|
- pinyin: "",
|
|
|
|
- chs: "",
|
|
|
|
- width: 20,
|
|
|
|
- height: 20,
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- width: 20,
|
|
|
|
- height: 20,
|
|
|
|
- pinyin: "",
|
|
|
|
- chs: "",
|
|
|
|
- },
|
|
|
|
- ];
|
|
|
|
|
|
+ let paraArr = []
|
|
|
|
+ if(!dItem.isTitle){
|
|
|
|
+ paraArr = [
|
|
|
|
+ {
|
|
|
|
+ pinyin: "",
|
|
|
|
+ chs: "",
|
|
|
|
+ width: 20,
|
|
|
|
+ height: 20,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ width: 20,
|
|
|
|
+ height: 20,
|
|
|
|
+ pinyin: "",
|
|
|
|
+ chs: "",
|
|
|
|
+ },
|
|
|
|
+ ];
|
|
|
|
+ }
|
|
dItem.wordsList.forEach((sItem, sIndex) => {
|
|
dItem.wordsList.forEach((sItem, sIndex) => {
|
|
sItem.forEach((wItem, wIndex) => {
|
|
sItem.forEach((wItem, wIndex) => {
|
|
//this.judgePad(sItem, wItem, wIndex);
|
|
//this.judgePad(sItem, wItem, wIndex);
|
|
this.mergeWordSymbol(sItem, wItem, wIndex);
|
|
this.mergeWordSymbol(sItem, wItem, wIndex);
|
|
|
|
+
|
|
let obj = {
|
|
let obj = {
|
|
paraIndex: dIndex, //段落索引
|
|
paraIndex: dIndex, //段落索引
|
|
sentIndex: sIndex, //在段落中句子索引
|
|
sentIndex: sIndex, //在段落中句子索引
|
|
@@ -422,7 +426,8 @@ export default {
|
|
let paraObj = {
|
|
let paraObj = {
|
|
wordsList: paraArr,
|
|
wordsList: paraArr,
|
|
timeList: timeList,
|
|
timeList: timeList,
|
|
- dhaspinyin:dhaspinyin
|
|
|
|
|
|
+ dhaspinyin:dhaspinyin,
|
|
|
|
+ isTitle: dItem.isTitle,
|
|
};
|
|
};
|
|
resArr.push(paraObj);
|
|
resArr.push(paraObj);
|
|
});
|
|
});
|
|
@@ -437,13 +442,13 @@ export default {
|
|
//词和标点合一起
|
|
//词和标点合一起
|
|
mergeWordSymbol(sItem, wItem, curIndex) {
|
|
mergeWordSymbol(sItem, wItem, curIndex) {
|
|
let leg = sItem.length;
|
|
let leg = sItem.length;
|
|
- if (curIndex < leg - 1) {
|
|
|
|
|
|
+ if (wItem&&wItem.chs) {
|
|
if (this.chsFhList.indexOf(wItem.chs) > -1) {
|
|
if (this.chsFhList.indexOf(wItem.chs) > -1) {
|
|
wItem.isShow = false;
|
|
wItem.isShow = false;
|
|
} else {
|
|
} else {
|
|
wItem.isShow = true;
|
|
wItem.isShow = true;
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+ }
|
|
},
|
|
},
|
|
//判断是否有padding
|
|
//判断是否有padding
|
|
judgePad(sItem, wItem, curIndex) {
|
|
judgePad(sItem, wItem, curIndex) {
|