Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uni-zijinjianguan-staff-wechat
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李玉杰
uni-zijinjianguan-staff-wechat
Commits
609adeda
Commit
609adeda
authored
Nov 24, 2024
by
hechuantao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
论坛详情添加关注
parent
1508d090
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
2 deletions
+64
-2
homePage/merchant/forumDetails.vue
+56
-2
homePage/merchant/personHomePage.vue
+8
-0
No files found.
homePage/merchant/forumDetails.vue
View file @
609adeda
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<view
class=
"u-nav-slot"
slot=
"left"
>
<view
class=
"u-nav-slot"
slot=
"left"
>
<view
class=
"d-flex a-center"
>
<view
class=
"d-flex a-center"
>
<u-icon
name=
"arrow-left"
color=
'#333'
size=
"40rpx"
@
click=
"leftClick"
></u-icon>
<u-icon
name=
"arrow-left"
color=
'#333'
size=
"40rpx"
@
click=
"leftClick"
></u-icon>
<view
class=
"d-flex a-center"
style=
"margin-left: 20rpx;"
>
<view
class=
"d-flex a-center"
style=
"margin-left: 20rpx;"
@
click=
"handleUser(detailData)"
>
<u--image
:showLoading=
"true"
shape=
"circle"
:src=
"detailData.sysUser.avatar"
width=
"68rpx"
<u--image
:showLoading=
"true"
shape=
"circle"
:src=
"detailData.sysUser.avatar"
width=
"68rpx"
height=
"68rpx"
></u--image>
height=
"68rpx"
></u--image>
<view
class=
"sysUser-name"
>
<view
class=
"sysUser-name"
>
...
@@ -13,12 +13,18 @@
...
@@ -13,12 +13,18 @@
<view
class=
"sj"
>
<view
class=
"sj"
>
{{
detailData
.
userType
==
'app_user'
?
'用户'
:
'商家'
}}
{{
detailData
.
userType
==
'app_user'
?
'用户'
:
'商家'
}}
</view>
</view>
<view
class=
"index-header-gz"
@
click
.
stop=
"handleLook"
>
{{
detailData
.
isFavoritesUser
?
'已关注'
:
'关注'
}}
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</u-navbar>
</u-navbar>
<u-swiper
height=
"500rpx"
:list=
"imgs"
></u-swiper>
<view
class=
""
style=
"width: 720rpx; margin: 0 auto;"
>
<u-swiper
height=
"750rpx"
:list=
"imgs"
circular
imgMode=
'scaleToFill'
duration=
"500"
></u-swiper>
</view>
<view
style=
"padding:36rpx 0 0;"
>
<view
style=
"padding:36rpx 0 0;"
>
<view
class=
"px-three"
>
<view
class=
"px-three"
>
<view
class=
"detail"
>
<view
class=
"detail"
>
...
@@ -225,6 +231,37 @@
...
@@ -225,6 +231,37 @@
this
.
getCommentList
()
this
.
getCommentList
()
},
},
//用户
handleUser
(
row
){
console
.
log
(
row
,
"===================="
)
if
(
row
.
userType
==
'merchant'
)
{
uni
.
navigateTo
({
url
:
`/homePage/merchant/index?businessId=
${
row
.
userId
}
`
})
}
else
{
uni
.
navigateTo
({
url
:
`/homePage/merchant/personHomePage?userId=
${
row
.
userId
}
&type=1`
})
}
},
// 关注
handleLook
(){
collectOrUncollect
({
forumId
:
this
.
detailData
.
userId
,
userId
:
this
.
userInfo
.
userId
,
isFavoritesType
:
2
,
// 论坛1商家2
favoriteType
:
'merchant'
}).
then
(
res
=>
{
uni
.
showToast
({
title
:
'成功!'
,
icon
:
'none'
})
this
.
detailData
.
isFavoritesUser
=
!
this
.
detailData
.
isFavoritesUser
})
},
}
}
}
}
...
@@ -238,6 +275,10 @@
...
@@ -238,6 +275,10 @@
.sysUser-name
{
.sysUser-name
{
font-size
:
28
rpx
;
font-size
:
28
rpx
;
color
:
#333333
;
color
:
#333333
;
width
:
120
rpx
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
}
.detail
{
.detail
{
...
@@ -300,4 +341,16 @@
...
@@ -300,4 +341,16 @@
color
:
#1572FF
;
color
:
#1572FF
;
margin-left
:
10
rpx
;
margin-left
:
10
rpx
;
}
}
.index-header-gz
{
width
:
100
rpx
;
height
:
32
rpx
;
background
:
#4BA1FF
;
border-radius
:
32
rpx
;
font-size
:
20
rpx
;
color
:
#FFFFFF
;
text-align
:
center
;
line-height
:
32
rpx
;
margin-left
:
20
rpx
;
}
</
style
>
</
style
>
\ No newline at end of file
homePage/merchant/personHomePage.vue
View file @
609adeda
...
@@ -90,6 +90,9 @@
...
@@ -90,6 +90,9 @@
listForumGET
,
listForumGET
,
collectOrUncollect
collectOrUncollect
}
from
'@/api/workbench/index.js'
;
}
from
'@/api/workbench/index.js'
;
import
{
mapGetters
}
from
'vuex'
export
default
{
export
default
{
components
:
{
components
:
{
tabsList
,
tabsList
,
...
@@ -124,6 +127,11 @@
...
@@ -124,6 +127,11 @@
clientInfo
:{}
clientInfo
:{}
}
}
},
},
computed
:
{
...
mapGetters
({
userInfot
:
'userInfo'
})
},
onLoad
(
option
)
{
onLoad
(
option
)
{
console
.
log
(
option
.
userId
,
'========'
)
console
.
log
(
option
.
userId
,
'========'
)
this
.
$set
(
this
.
queryParams
,
'userId'
,
option
.
userId
)
this
.
$set
(
this
.
queryParams
,
'userId'
,
option
.
userId
)
...
...
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