|
@@ -1,12 +1,12 @@
|
|
|
<!-- -->
|
|
|
<template>
|
|
|
<div class="NNPE-ArticleView" v-if="curQue">
|
|
|
- <!-- <template v-if="resArr[0]&&resArr[0].isTitle">
|
|
|
- <h2><span v-for="(itemR,indexR) in resArr[0].wordsList" :key="indexR" :style="{color:colorObj.titleColor,fontSize:(wordFontsize+30)+'px',lineHeight:(wordFontsize+38)+'px',marginRight:'8px',fontWeight:'700'}">{{itemR.en.word_bt}}</span></h2>
|
|
|
- </template> -->
|
|
|
- <h2><span :style="{color:colorObj.titleColor,fontSize:(wordFontsize+30)+'px',lineHeight:(wordFontsize+38)+'px',marginRight:'8px',fontWeight:'700'}">Out in the fields</span></h2>
|
|
|
- <h6 class="nnpe-article-author" :style="{color:colorObj.sourceColor,fontSize:(wordFontsize-4)+'px',lineHeight:(wordFontsize+4)+'px',fontWeight:'400'}" v-html="articleAuthor"></h6>
|
|
|
- <div class="audio-box">
|
|
|
+ <template v-if="articleType===1">
|
|
|
+ <template v-if="resArr[0]&&resArr[0].isTitle">
|
|
|
+ <h2><span v-for="(itemR,indexR) in resArr[0].wordsList" :key="indexR" :style="{color:colorObj.titleColor,fontSize:(wordFontsize+30)+'px',lineHeight:(wordFontsize+38)+'px',marginRight:'8px',fontWeight:'700'}">{{itemR.en.word_bt}}</span></h2>
|
|
|
+ </template>
|
|
|
+ <h6 class="nnpe-article-author" :style="{color:colorObj.sourceColor,fontSize:(wordFontsize-4)+'px',lineHeight:(wordFontsize+4)+'px',fontWeight:'400'}" v-html="articleAuthor"></h6>
|
|
|
+ <div class="audio-box">
|
|
|
<div
|
|
|
class="aduioLine-content aduioLine-box"
|
|
|
v-if="
|
|
@@ -311,9 +311,16 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <div v-for="(item,index) in newData" :key="index" class="NNPE-detail" :style="{padding:' 6px 0 12px 0'}">
|
|
|
- <span class="NNPE-chs" :style="{fontSize: wordFontsize + 'px',color: colorObj.contentColor,wordSpacing:'2px',lineHeight:wordFontsize+8+'px'}">{{item}}</span>
|
|
|
- </div>
|
|
|
+ </template>
|
|
|
+ <template v-else>
|
|
|
+ <h2><span :style="{color:colorObj.titleColor,fontSize:(wordFontsize+30)+'px',lineHeight:(wordFontsize+38)+'px',marginRight:'8px',fontWeight:'700'}">Out in the fields</span></h2>
|
|
|
+ <h6 class="nnpe-article-author" :style="{color:colorObj.sourceColor,fontSize:(wordFontsize-4)+'px',lineHeight:(wordFontsize+4)+'px',fontWeight:'400'}" v-html="articleAuthor"></h6>
|
|
|
+
|
|
|
+ <div v-for="(item,index) in newData" :key="index" class="NNPE-detail" :style="{padding:' 6px 0 12px 0'}">
|
|
|
+ <span class="NNPE-chs" :style="{fontSize: wordFontsize + 'px',color: colorObj.contentColor,wordSpacing:'2px',lineHeight:wordFontsize+8+'px'}">{{item}}</span>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+
|
|
|
<img src="../../../assets/article-img.png" style="max-width:100%;margin:24px 0;" />
|
|
|
</div>
|
|
|
</template>
|
|
@@ -323,7 +330,7 @@ import AudioLine from "@/components/common/AudioLine.vue"
|
|
|
import MagazineVideo from "./MagazineVideo.vue"
|
|
|
export default {
|
|
|
name: "ArticleView",
|
|
|
- props: [ "titleFontsize", "wordFontsize", "colorObj"],
|
|
|
+ props: [ "titleFontsize", "wordFontsize", "colorObj","articleType"],
|
|
|
components: {
|
|
|
AudioLine,
|
|
|
MagazineVideo
|