|
@@ -13,30 +13,30 @@
|
|
|
:key="index"
|
|
|
class="NNPE-title-item"
|
|
|
>
|
|
|
- <template v-if="item.wordsList.length == 0">
|
|
|
+ <template v-if="item.detail.wordsList.length == 0">
|
|
|
<p
|
|
|
- v-if="item.sentence"
|
|
|
+ v-if="item.detail.sentence"
|
|
|
:class="[
|
|
|
'content-con',
|
|
|
- /^[\u4e00-\u9fa5]/.test(item.sentence) ? 'hasCn' : '',
|
|
|
+ /^[\u4e00-\u9fa5]/.test(item.detail.sentence) ? 'hasCn' : '',
|
|
|
]"
|
|
|
- v-html="item.sentence"
|
|
|
+ v-html="item.detail.sentence"
|
|
|
>
|
|
|
</p>
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
<div class="con-box">
|
|
|
<div
|
|
|
- v-for="(itemCon, indexCon) in item.resArr"
|
|
|
+ v-for="(itemCon, indexCon) in item.detail.resArr"
|
|
|
v-show="itemCon.isShow"
|
|
|
:key="indexCon"
|
|
|
:class="['con-item', indexCon === 0 ? 'con-item-0' : '']"
|
|
|
>
|
|
|
<template
|
|
|
v-if="
|
|
|
- item.wordsList[indexCon + 1] &&
|
|
|
- item.wordsList[indexCon + 1].chs &&
|
|
|
- chsFhList.indexOf(item.wordsList[indexCon + 1].chs) > -1
|
|
|
+ item.detail.wordsList[indexCon + 1] &&
|
|
|
+ item.detail.wordsList[indexCon + 1].chs &&
|
|
|
+ chsFhList.indexOf(item.detail.wordsList[indexCon + 1].chs) > -1
|
|
|
"
|
|
|
>
|
|
|
<div class="synthesis-box">
|
|
@@ -55,15 +55,15 @@
|
|
|
class="pinyin"
|
|
|
:class="[
|
|
|
noFont.indexOf(
|
|
|
- items.detail.wordsList[indexCon + 1].pinyin
|
|
|
+ item.detail.wordsList[indexCon + 1].pinyin
|
|
|
) > -1
|
|
|
? 'noFont'
|
|
|
: '',
|
|
|
]"
|
|
|
- >{{ item.wordsList[indexCon + 1].pinyin }}</span
|
|
|
+ >{{ item.detail.wordsList[indexCon + 1].pinyin }}</span
|
|
|
>
|
|
|
<span class="hanzi content-con">{{
|
|
|
- item.wordsList[indexCon + 1].chs
|
|
|
+ item.detail.wordsList[indexCon + 1].chs
|
|
|
}}</span>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -566,7 +566,7 @@ export default {
|
|
|
let curQue = JSON.parse(JSON.stringify(this.cur));
|
|
|
curQue.detailList.forEach((dItem, dIndex) => {
|
|
|
let paraArr = [];
|
|
|
- dItem.wordsList.forEach((sItem, sIndex) => {
|
|
|
+ dItem.detail.wordsList.forEach((sItem, sIndex) => {
|
|
|
let obj = {
|
|
|
pinyin: sItem.pinyin,
|
|
|
chs: sItem.chs,
|
|
@@ -574,7 +574,7 @@ export default {
|
|
|
};
|
|
|
paraArr.push(obj);
|
|
|
});
|
|
|
- this.$set(_this.cur.detailList[dIndex], "resArr", paraArr);
|
|
|
+ this.$set(_this.cur.detailList[dIndex].detail, "resArr", paraArr);
|
|
|
});
|
|
|
},
|
|
|
initContextData() {
|