|
|
@@ -68,7 +68,21 @@
|
|
|
isHasRemark ? 'hasRemark' : '',
|
|
|
]"
|
|
|
>
|
|
|
- <img v-if="articleImg[0] && index == 0" :src="articleImg[index]" />
|
|
|
+ <template v-if="item.sourceList.length > 0 && item.sourcePosition === 'before'">
|
|
|
+ <img
|
|
|
+ v-if="item.sourceList[0] && item.sourceList[0].type === 'image'"
|
|
|
+ :src="item.sourceList[0].file_url_open"
|
|
|
+ />
|
|
|
+ <video
|
|
|
+ :src="item.sourceList[0].file_url_open"
|
|
|
+ width="100%"
|
|
|
+ height="400"
|
|
|
+ controls
|
|
|
+ controlsList="nodownload"
|
|
|
+ v-else
|
|
|
+ ></video>
|
|
|
+ </template>
|
|
|
+
|
|
|
<div :class="[item.isTitle ? 'NNPE-title' : '', 'para-' + item.paraAlign]">
|
|
|
<div
|
|
|
v-for="(pItem, pIndex) in item.wordsList"
|
|
|
@@ -611,7 +625,20 @@
|
|
|
: ''
|
|
|
}}
|
|
|
</div>
|
|
|
- <img v-if="articleImg[index + 1]" :src="articleImg[index + 1]" />
|
|
|
+ <template v-if="item.sourceList.length > 0 && item.sourcePosition === 'after'">
|
|
|
+ <img
|
|
|
+ v-if="item.sourceList[0] && item.sourceList[0].type === 'image'"
|
|
|
+ :src="item.sourceList[0].file_url_open"
|
|
|
+ />
|
|
|
+ <video
|
|
|
+ :src="item.sourceList[0].file_url_open"
|
|
|
+ width="100%"
|
|
|
+ height="400"
|
|
|
+ controls
|
|
|
+ controlsList="nodownload"
|
|
|
+ v-else
|
|
|
+ ></video>
|
|
|
+ </template>
|
|
|
</div>
|
|
|
<div v-if="item.remarkDetail" :class="['remarkBox', 'remark-top-8']">
|
|
|
<RemarkChs :remark-detail="item.remarkDetail" :margin-top="8" />
|
|
|
@@ -622,7 +649,7 @@
|
|
|
</template>
|
|
|
<template v-else>
|
|
|
<template v-if="resObj">
|
|
|
- <!-- 段落对齐方式和备注在此模式里没有写,如果段落里添加了英文后需要在此添加段落对齐和备注 -->
|
|
|
+ <!-- 段落对齐方式和备注在此模式里没有写,如果段落里添加了英文后需要在此添加段落对齐和备注、大小图片、生词样式 -->
|
|
|
<div class="NPC-sentences-list">
|
|
|
<div
|
|
|
v-for="(item, index) in resObj.sentList"
|
|
|
@@ -1355,7 +1382,7 @@ export default {
|
|
|
this.isHasRemark = true;
|
|
|
}
|
|
|
let paraArr = [];
|
|
|
- if (!dItem.isTitle) {
|
|
|
+ if (dItem.paraAlign !== 'center') {
|
|
|
paraArr = [
|
|
|
{
|
|
|
pinyin: '',
|
|
|
@@ -1424,6 +1451,8 @@ export default {
|
|
|
enwords: dItem.sentencesEn ? dItem.sentencesEn : [],
|
|
|
paraAlign: dItem.paraAlign,
|
|
|
remarkDetail,
|
|
|
+ sourceList: dItem.sourceList ? dItem.sourceList : [],
|
|
|
+ sourcePosition: dItem.sourcePosition,
|
|
|
};
|
|
|
resArr.push(paraObj);
|
|
|
});
|
|
|
@@ -1473,6 +1502,8 @@ export default {
|
|
|
sentArr,
|
|
|
enwords: dItem.sentencesEn && dItem.sentencesEn[sIndex] && dItem.sentencesEn[sIndex].replace(/'/g, '’'),
|
|
|
paraAlign: dItem.paraAlign,
|
|
|
+ sourceList: dItem.sourceList ? dItem.sourceList : [],
|
|
|
+ sourcePosition: dItem.sourcePosition,
|
|
|
};
|
|
|
sentArrTotal.push(sentArr);
|
|
|
resArrs.push(objs);
|
|
|
@@ -1685,12 +1716,14 @@ export default {
|
|
|
display: flex;
|
|
|
flex-flow: wrap;
|
|
|
justify-content: center;
|
|
|
+ width: 100%;
|
|
|
}
|
|
|
|
|
|
.para-right {
|
|
|
display: flex;
|
|
|
flex-flow: wrap;
|
|
|
justify-content: end;
|
|
|
+ width: 100%;
|
|
|
}
|
|
|
|
|
|
.NNPE-words {
|
|
|
@@ -1879,15 +1912,16 @@ export default {
|
|
|
> img {
|
|
|
display: block;
|
|
|
max-width: 100%;
|
|
|
- margin: 8px auto;
|
|
|
+ margin: 0 auto;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.article-content {
|
|
|
box-sizing: border-box;
|
|
|
- display: flex;
|
|
|
- align-items: flex-start;
|
|
|
- justify-content: flex-start;
|
|
|
+
|
|
|
+ // display: flex;
|
|
|
+ // align-items: flex-start;
|
|
|
+ // justify-content: flex-start;
|
|
|
width: 100%;
|
|
|
|
|
|
&.hasRemark {
|