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
f3ef34c0
Commit
f3ef34c0
authored
Feb 05, 2025
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了bug
parent
c3f16e8b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
19 deletions
+33
-19
index.js
api/user/index.js
+12
-1
pages.json
pages.json
+11
-13
List.vue
pages/components/article/List.vue
+6
-1
articleDetail.vue
pagesArticle/articleDetail.vue
+2
-1
likeList.vue
pagesme/me/likeList.vue
+2
-3
No files found.
api/user/index.js
View file @
f3ef34c0
...
@@ -12,6 +12,17 @@ export function userList(data){
...
@@ -12,6 +12,17 @@ export function userList(data){
});
});
}
}
/**
* 查看我喜欢的 喜欢我的 互相喜欢的列表
*/
export
function
likeList
(
data
){
return
request
({
method
:
"get"
,
url
:
'/app/open/memInfo/likeList'
,
data
});
}
/**
/**
* 获取用户详情
* 获取用户详情
*/
*/
...
@@ -118,4 +129,4 @@ export function telMessage(data){
...
@@ -118,4 +129,4 @@ export function telMessage(data){
url
:
'/app/memInfo/leaveMessageDetailList'
,
url
:
'/app/memInfo/leaveMessageDetailList'
,
data
,
data
,
});
});
}
}
\ No newline at end of file
pages.json
View file @
f3ef34c0
...
@@ -110,6 +110,15 @@
...
@@ -110,6 +110,15 @@
"navigationBarBackgroundColor"
:
"#F4F5F9"
,
"navigationBarBackgroundColor"
:
"#F4F5F9"
,
"navigationStyle"
:
"custom"
"navigationStyle"
:
"custom"
}
}
},
{
"path"
:
"userFilterPage"
,
"style"
:
{
"navigationBarTitleText"
:
"筛选设置"
,
"backgroundColor"
:
"#ffffff"
,
"backgroundColorTop"
:
"#ffffff"
,
"navigationBarBackgroundColor"
:
"#ffffff"
}
}
}
]
]
},
},
...
@@ -323,21 +332,10 @@
...
@@ -323,21 +332,10 @@
}
}
]
]
},
},
{
"root"
:
"pagesUser"
,
"pages"
:
[{
"path"
:
"userFilterPage"
,
"style"
:
{
"navigationBarTitleText"
:
"筛选设置"
,
"backgroundColor"
:
"#ffffff"
,
"backgroundColorTop"
:
"#ffffff"
,
"navigationBarBackgroundColor"
:
"#ffffff"
}
}]
},
{
{
"root"
:
"pages2"
,
"root"
:
"pages2"
,
"pages"
:
[{
"pages"
:
[
{
"path"
:
"explain/explain"
,
"path"
:
"explain/explain"
,
"style"
:
{
"style"
:
{
"navigationStyle"
:
"custom"
,
"navigationStyle"
:
"custom"
,
...
...
pages/components/article/List.vue
View file @
f3ef34c0
...
@@ -93,9 +93,14 @@
...
@@ -93,9 +93,14 @@
if
(
newVal
===
0
){
if
(
newVal
===
0
){
//关注
//关注
this
.
articleType
=
'0'
this
.
articleType
=
'0'
}
if
(
newVal
===
1
){
//最近
this
.
articleType
=
'1'
}
}
if
(
newVal
===
2
){
if
(
newVal
===
2
){
//话题
//话题
this
.
articleType
=
'2'
this
.
getTopicList
()
this
.
getTopicList
()
this
.
reload
()
this
.
reload
()
}
}
...
@@ -290,7 +295,7 @@
...
@@ -290,7 +295,7 @@
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
lang=
"scss"
scoped
>
.content
{
.content
{
height
:
100%
;
height
:
100%
;
}
}
...
...
pagesArticle/articleDetail.vue
View file @
f3ef34c0
...
@@ -196,7 +196,8 @@ export default{
...
@@ -196,7 +196,8 @@ export default{
articleId
:
this
.
articleInfo
.
businessId
,
//动态id
articleId
:
this
.
articleInfo
.
businessId
,
//动态id
commentContent
:
value
,
//评论内容
commentContent
:
value
,
//评论内容
commentedUserId
:
this
.
commentedUserId
,
//被评论人ID
commentedUserId
:
this
.
commentedUserId
,
//被评论人ID
parentId
:
this
.
parentId
//上级评论ID
parentId
:
this
.
parentId
,
//上级评论ID
createDate
:
this
.
articleInfo
.
createDate
//动态发布时间
}
}
comment
(
params
).
then
(
res
=>
{
comment
(
params
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
){
if
(
res
.
data
.
code
==
200
){
...
...
pagesme/me/likeList.vue
View file @
f3ef34c0
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
deleteFollow
,
user
List
}
from
"../../api/user"
;
import
{
deleteFollow
,
like
List
}
from
"../../api/user"
;
import
{
getOssUrl
}
from
"../../api/article"
;
import
{
getOssUrl
}
from
"../../api/article"
;
import
{
getCity
,
getValue
}
from
"../../common/options"
;
import
{
getCity
,
getValue
}
from
"../../common/options"
;
import
{
calculateAge
,
parseDate
}
from
"../../common"
;
import
{
calculateAge
,
parseDate
}
from
"../../common"
;
...
@@ -69,7 +69,6 @@ export default {
...
@@ -69,7 +69,6 @@ export default {
//设置页头
//设置页头
this
.
type
=
options
.
type
;
this
.
type
=
options
.
type
;
this
.
num
=
options
.
num
;
this
.
num
=
options
.
num
;
//获取当前页面的页头高度
//获取当前页面的页头高度
this
.
menuButtonInfo
=
uni
.
getMenuButtonBoundingClientRect
()
this
.
menuButtonInfo
=
uni
.
getMenuButtonBoundingClientRect
()
const
{
const
{
...
@@ -92,7 +91,7 @@ export default {
...
@@ -92,7 +91,7 @@ export default {
methods
:
{
methods
:
{
getList
(
params
){
getList
(
params
){
//我喜欢的
//我喜欢的
user
List
(
params
).
then
(
res
=>
{
like
List
(
params
).
then
(
res
=>
{
this
.
userList
=
res
.
data
.
data
this
.
userList
=
res
.
data
.
data
this
.
num
=
this
.
userList
.
length
this
.
num
=
this
.
userList
.
length
this
.
getTitle
()
this
.
getTitle
()
...
...
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