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
69b313fb
Commit
69b313fb
authored
Mar 11, 2025
by
liwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
29c82f6d
88c68fef
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
39 deletions
+55
-39
activityDetail.vue
pagesActivity/activityDetail.vue
+3
-1
articleDetail.vue
pagesArticle/articleDetail.vue
+36
-30
userInfo.vue
pagesUser/userInfo.vue
+16
-8
No files found.
pagesActivity/activityDetail.vue
View file @
69b313fb
...
...
@@ -230,12 +230,14 @@ export default {
title
:
'报名成功!'
,
icon
:
'none'
})
this
.
isApplication
=
true
setTimeout
(()
=>
{
this
.
show
=
false
this
.
getUserInfo
()
this
.
getActivityDetail
()
},
5
00
)
},
2
00
)
}
else
if
(
res
.
data
.
code
!==
200
){
this
.
isApplication
=
false
uni
.
showToast
({
title
:
res
.
data
.
message
,
icon
:
'none'
...
...
pagesArticle/articleDetail.vue
View file @
69b313fb
<
template
>
<view
style=
"
margin
-bottom: 150rpx"
>
<view
style=
"
padding
-bottom: 150rpx"
>
<view>
<ArticleItem
@
delete=
"deleteFn"
:isTopicName=
"isTopicName"
:info=
"articleInfo"
@
close=
"close"
@
open=
"open"
/>
</view>
...
...
@@ -13,32 +13,33 @@
<text>
点赞
{{
articleInfo
.
likeCount
}}
</text>
</view>
</view>
<view
class=
"comment"
v-for=
"info in articleInfo.articleCommentVOList"
:key=
"info.id"
>
<div
class=
"c-left"
>
<image
:src=
"info.avatarUrl"
></image>
</div>
<div
class=
"c-right"
@
click=
"()=>reply(info)"
>
<div
class=
"c-name"
>
{{
info
.
memNickName
}}
<view>
<view
class=
"comment"
v-for=
"info in articleInfo.articleCommentVOList"
:key=
"info.id"
>
<div
class=
"c-left"
>
<image
:src=
"info.avatarUrl"
></image>
</div>
<div
class=
"c-comment"
>
{{
info
.
content
}}
</div>
<div
class=
"c-actions"
>
<div
class=
"c-time"
>
{{
info
.
createDate
}}
</div>
<div
class=
"action-item"
>
<image
:src=
"baseUrl+'/article/104.png'"
@
click=
"btnComment(info)"
></image>
<text>
{{
info
.
commentCount
}}
</text>
<div
class=
"c-right"
@
click=
"()=>reply(info)"
>
<div
class=
"c-name"
>
{{
info
.
memNickName
}}
</div>
<div
class=
"action-item"
>
<image
@
click=
"()=>praise(info)"
:src=
"info.isLike == '0'? baseUrl+'/article/105.png': baseUrl+'/article/105-no.png'"
></image>
{{
info
.
likeCount
}}
<div
class=
"c-comment"
>
{{
info
.
content
}}
</div>
<div
class=
"c-actions"
>
<div
class=
"c-time"
>
{{
info
.
createDate
}}
</div>
<div
class=
"action-item"
>
<image
:src=
"baseUrl+'/article/104.png'"
@
click=
"btnComment(info)"
></image>
<text>
{{
info
.
commentCount
}}
</text>
</div>
<div
class=
"action-item"
>
<image
@
click=
"()=>praise(info)"
:src=
"info.isLike == '0'? baseUrl+'/article/105.png': baseUrl+'/article/105-no.png'"
></image>
{{
info
.
likeCount
}}
</div>
<view
v-if=
"articleInfo.createBy == userId || info.userId == userId"
class=
"action-item"
>
<image
@
click=
"()=>handleLongPress(info)"
:src=
" baseUrl+'/article/commentDelete.png'"
></image>
</view>
</div>
<view
v-if=
"articleInfo.createBy == userId || info.userId == userId"
class=
"action-item"
>
<image
@
click=
"()=>handleLongPress(info)"
:src=
" baseUrl+'/article/commentDelete.png'"
></image>
</view>
</div>
<view>
<view>
<view
class=
"comment"
v-for=
"(children, index) in info.childrenCommentList"
...
...
@@ -60,11 +61,11 @@
<view
class=
"c-actions"
>
<view
class=
"c-time"
>
{{
children
.
createDate
}}
</view>
<view
class=
"action-item"
>
<!--
<image-->
<!-- :src="baseUrl+'/article/104.png'"-->
<!-- @click="btnComment(children)"-->
<!-- >
</image>
-->
<!--
{{
children
.
replyCount
}}
-->
<!--
<image-->
<!-- :src="baseUrl+'/article/104.png'"-->
<!-- @click="btnComment(children)"-->
<!-- >
</image>
-->
<!--
{{
children
.
replyCount
}}
-->
</view>
<view
class=
"action-item"
>
<image
@
click=
"()=>praise(children)"
:src=
"children.isLike == '0' ? baseUrl+'/article/105.png': baseUrl+'/article/105-no.png'"
></image>
...
...
@@ -77,7 +78,8 @@
</view>
</view>
</view>
</div>
</div>
</view>
</view>
<view
class=
"bottom"
>
<u--input
...
...
@@ -397,6 +399,10 @@ export default{
deleteComment
(
params
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
){
this
.
getArticleDetail
()
uni
.
showToast
({
title
:
'删除成功'
,
icon
:
'none'
})
}
else
{
uni
.
showToast
({
title
:
res
.
data
.
message
,
...
...
pagesUser/userInfo.vue
View file @
69b313fb
...
...
@@ -111,7 +111,7 @@
<view
class=
"strs"
v-if=
"userData.articleContent !== null"
>
{{
userData
.
articleContent
?
userData
.
articleContent
:
''
}}
</view>
<view
:class=
"['imgs',articleUrl.length == 2 ? 'twoTemp':'']
"
v-if=
"articleUrl !== null && articleUrl.length"
>
<view
class=
"imgs
"
v-if=
"articleUrl !== null && articleUrl.length"
>
<image
v-for=
"item in articleUrl"
:src=
"item"
mode=
"aspectFill"
>
</image>
...
...
@@ -400,12 +400,19 @@
targetId
:
id
,
}
addFollow
(
form
).
then
(
res
=>
{
this
.
getIsFollowed
();
this
.
animUrl
=
url
;
this
.
showAnima
=
true
;
setTimeout
(()
=>
{
this
.
showAnima
=
false
;
},
500
)
if
(
res
.
data
.
code
==
200
){
this
.
getIsFollowed
();
this
.
animUrl
=
url
;
this
.
showAnima
=
true
;
setTimeout
(()
=>
{
this
.
showAnima
=
false
;
},
500
)
}
else
{
uni
.
showToast
({
title
:
res
.
data
.
message
,
icon
:
'none'
})
}
})
}
},
...
...
@@ -1099,10 +1106,11 @@
}
.imgs
{
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
left
;
padding
:
30rpx
42rpx
30rpx
0rpx
;
image
{
width
:
calc
(
33%
-
10rpx
);
margin-left
:
10rpx
;
height
:
198rpx
;
border-radius
:
12rpx
;
}
...
...
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