Commit 11937c84 authored by 罗林杰's avatar 罗林杰

修改动态显示主题

parent ef88b594
<template> <template>
<view style="margin-bottom: 150rpx"> <view style="margin-bottom: 150rpx">
<view> <view>
<ArticleItem @delete="deleteFn" :info="articleInfo" @close="close" @open="open"/> <ArticleItem @delete="deleteFn" :isTopicName="isTopicName" :info="articleInfo" @close="close" @open="open"/>
</view> </view>
<view class="commentTitle"> <view class="commentTitle">
<view> <view>
...@@ -157,10 +157,14 @@ export default{ ...@@ -157,10 +157,14 @@ export default{
deleteParentId:'', deleteParentId:'',
longPressedItem: null, longPressedItem: null,
longPressTimeout: null, longPressTimeout: null,
isTopicName:false,
} }
}, },
onLoad(params){ onLoad(params){
this.articleId = params.articleId this.articleId = params.articleId
if (params.type){
this.isTopicName = true
}
this.getArticleDetail() this.getArticleDetail()
}, },
methods: { methods: {
......
...@@ -38,6 +38,9 @@ ...@@ -38,6 +38,9 @@
{{info.createDate}} {{info.createDate}}
</view> </view>
</view> </view>
<view v-if="isTopicName" class="right">
<u-tag plain plainFill :text="info.topic ? info.topic : '最近'" type="success"/>
</view>
</view> </view>
</template> </template>
...@@ -57,6 +60,10 @@ ...@@ -57,6 +60,10 @@
info: { info: {
type: Object, type: Object,
default: () => {} default: () => {}
},
isTopicName: {
type: Boolean,
default: false
} }
}, },
watch: { watch: {
......
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
//查看动态详情 //查看动态详情
gotoDetail(item) { gotoDetail(item) {
uni.navigateTo({ uni.navigateTo({
url: '/pagesArticle/articleDetail?articleId=' + item.businessId url: '/pagesArticle/articleDetail?articleId=' + item.businessId +'&type=my'
}) })
}, },
//查看用户详情 //查看用户详情
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment