Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李伟
cust-app
Commits
11937c84
Commit
11937c84
authored
Mar 07, 2025
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改动态显示主题
parent
ef88b594
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
+14
-3
articleDetail.vue
pagesArticle/articleDetail.vue
+5
-1
articleItem.vue
pagesArticle/components/articleItem.vue
+8
-1
Item.vue
pagesUser/component/Item.vue
+1
-1
No files found.
pagesArticle/articleDetail.vue
View file @
11937c84
<
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"
:i
sTopicName=
"isTopicName"
:i
nfo=
"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
:
{
...
...
pagesArticle/components/articleItem.vue
View file @
11937c84
...
@@ -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,7 +60,11 @@
...
@@ -57,7 +60,11 @@
info
:
{
info
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{}
default
:
()
=>
{}
}
},
isTopicName
:
{
type
:
Boolean
,
default
:
false
}
},
},
watch
:
{
watch
:
{
info
:
{
info
:
{
...
...
pagesUser/component/Item.vue
View file @
11937c84
...
@@ -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'
})
})
},
},
//查看用户详情
//查看用户详情
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment