|
|
|
@ -4,23 +4,24 @@ |
|
|
|
|
<view class="topContent"> |
|
|
|
|
<!-- 这里是状态栏 --> |
|
|
|
|
<view class="status_bar"></view> |
|
|
|
|
<u-navbar height="50" :autoBack="true" :bgColor="'transparent'"> |
|
|
|
|
<u-navbar height="50" :autoBack="true" :bgColor="tagList.length>0?'transparent':'#ffffff'"> |
|
|
|
|
<view |
|
|
|
|
class="u-nav-slot" |
|
|
|
|
slot="left" |
|
|
|
|
@click="backHandle" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
> |
|
|
|
|
<u-icon |
|
|
|
|
name="arrow-left" |
|
|
|
|
size="19" |
|
|
|
|
color="#ffffff" |
|
|
|
|
:color="tagList.length>0?'#ffffff':'#000000'" |
|
|
|
|
></u-icon> |
|
|
|
|
<view class="title" style="background: transparent;color:#ffffff"> |
|
|
|
|
<view class="title" :style="{background: 'transparent',color:tagList.length>0?'#ffffff':'#000000'}"> |
|
|
|
|
详情 |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</u-navbar> |
|
|
|
|
<view class="" v-if="tagList.length>0"> |
|
|
|
|
<image :src="baseUrl+titleInfo.listimage" class="listImage" mode="aspectFill"></image> |
|
|
|
|
<view class="schoolItem"> |
|
|
|
|
<image :src="logo" class="logo" mode="aspectFill"></image> |
|
|
|
@ -58,6 +59,29 @@ |
|
|
|
|
<u-parse :content="titleInfo.content"></u-parse> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="detailContent" style="margin-top:120upx" v-if="tagList.length==0"> |
|
|
|
|
<view class="detailTitle"> |
|
|
|
|
{{titleInfo.title}} |
|
|
|
|
</view> |
|
|
|
|
<view class="tools"> |
|
|
|
|
<view class="time"> |
|
|
|
|
{{titleInfo.updatetime}} |
|
|
|
|
</view> |
|
|
|
|
<view class="toolItem"> |
|
|
|
|
<view class="" @click="addCollect"> |
|
|
|
|
<image src="/static/m1.png" mode="widthFix" v-if="!isCollect"></image> |
|
|
|
|
<image src="/static/collected.png" mode="widthFix" v-else></image> |
|
|
|
|
<text>收藏</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="" @click="addShare"> |
|
|
|
|
<image src="/static/m3.png" mode="widthFix"></image> |
|
|
|
|
<text>分享</text> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<u-parse :content="titleInfo.content"></u-parse> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- --> |
|
|
|
|
|
|
|
|
|
<view class="bottomContent" v-if="showBottom"> |
|
|
|
@ -107,8 +131,13 @@ |
|
|
|
|
getNavList({menu_id:this.menu_id}).then(res=>{ |
|
|
|
|
console.log(res); |
|
|
|
|
this.tagList = res; |
|
|
|
|
if(this.tagList.length>0){ |
|
|
|
|
this.activeText = this.tagList[0].name |
|
|
|
|
this.articleDetails(this.tagList[0].id) |
|
|
|
|
}else{ |
|
|
|
|
this.articleDetails() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
backHandle(){ |
|
|
|
@ -229,7 +258,13 @@ |
|
|
|
|
|
|
|
|
|
// }) |
|
|
|
|
// {custom: { auth: true }} |
|
|
|
|
articleDetails({ids:this.id,nav_id:navId}).then(res=>{ |
|
|
|
|
let params; |
|
|
|
|
if(navId){ |
|
|
|
|
params={ids:this.id,nav_id:navId} |
|
|
|
|
}else{ |
|
|
|
|
params = {ids:this.id} |
|
|
|
|
} |
|
|
|
|
articleDetails(params).then(res=>{ |
|
|
|
|
this.titleInfo = res; |
|
|
|
|
if(res.is_collect==0){ |
|
|
|
|
this.isCollect = false |
|
|
|
@ -354,7 +389,7 @@ |
|
|
|
|
|
|
|
|
|
padding:38upx 25upx; |
|
|
|
|
position: relative; |
|
|
|
|
z-index:99; |
|
|
|
|
z-index:60; |
|
|
|
|
background: #fff; |
|
|
|
|
margin: 0 24upx; |
|
|
|
|
margin-top:30upx; |
|
|
|
|