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
efb2fadc
Commit
efb2fadc
authored
Jan 02, 2025
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增了动态里的评论页面
parent
bd08fe82
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
456 additions
and
15 deletions
+456
-15
pages.json
pages.json
+11
-0
Item.vue
pages/components/article/Item.vue
+6
-6
index.vue
pages/tab/index.vue
+3
-9
articleDetail.vue
pagesArticle/articleDetail.vue
+436
-0
No files found.
pages.json
View file @
efb2fadc
...
@@ -84,6 +84,17 @@
...
@@ -84,6 +84,17 @@
}
}
]
]
},
},
{
"root"
:
"pagesArticle"
,
"pages"
:
[
{
"path"
:
"articleDetail"
,
"style"
:
{
"navigationBarTitleText"
:
"动态详情"
}
}
]
},
{
{
"root"
:
"pagesNotice"
,
"root"
:
"pagesNotice"
,
"pages"
:
[
"pages"
:
[
...
...
pages/components/article/Item.vue
View file @
efb2fadc
...
@@ -23,9 +23,9 @@
...
@@ -23,9 +23,9 @@
<template
v-if=
"!isState"
>
<template
v-if=
"!isState"
>
<view
class=
"name"
>
<view
class=
"name"
>
<text
@
click=
"gotoUserInfo(info)"
>
{{
info
.
nickName
}}
</text>
<text
@
click=
"gotoUserInfo(info)"
>
{{
info
.
nickName
}}
</text>
<image
v-if=
"info.gender!='MALE'"
class=
"gender"
src=
"../../static/images/like/famale.png"
mode=
""
>
<image
v-if=
"info.gender!='MALE'"
class=
"gender"
src=
"../../
../
static/images/like/famale.png"
mode=
""
>
</image>
</image>
<image
v-else
class=
"gender"
src=
"../../static/images/like/male.png"
mode=
""
></image>
<image
v-else
class=
"gender"
src=
"../../
../
static/images/like/male.png"
mode=
""
></image>
</view>
</view>
<view
class=
"info"
>
<view
class=
"info"
>
<text
decode=
"true"
style=
"color: #434343;"
>
{{
info
.
information
}}
</text>
<text
decode=
"true"
style=
"color: #434343;"
>
{{
info
.
information
}}
</text>
...
@@ -81,12 +81,12 @@
...
@@ -81,12 +81,12 @@
<!-- </u-button>-->
<!-- </u-button>-->
</view>
</view>
<view
class=
"btn"
@
click=
"gotoDetail(info)"
>
<view
class=
"btn"
@
click=
"gotoDetail(info)"
>
<image
src=
"../../static/images/104.png"
mode=
""
></image>
<image
src=
"../../
../
static/images/104.png"
mode=
""
></image>
<text>
{{info.commentCount}}
</text>
<text>
{{info.commentCount}}
</text>
</view>
</view>
<view
class=
"btn"
@
click=
"praise(info)"
>
<view
class=
"btn"
@
click=
"praise(info)"
>
<image
v-if=
"!info.isLike"
src=
"../../static/images/105.png"
mode=
""
></image>
<image
v-if=
"!info.isLike"
src=
"../../
../
static/images/105.png"
mode=
""
></image>
<image
v-else
src=
"../../static/images/105-no.png"
mode=
""
></image>
<image
v-else
src=
"../../
../
static/images/105-no.png"
mode=
""
></image>
<text>
{{info.likeCount}}
</text>
<text>
{{info.likeCount}}
</text>
</view>
</view>
</view>
</view>
...
@@ -187,7 +187,7 @@
...
@@ -187,7 +187,7 @@
//查看动态详情
//查看动态详情
gotoDetail
(
item
)
{
gotoDetail
(
item
)
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages
3
/articleDetail?userId='
+
item
.
userId
url
:
'/pages
Article
/articleDetail?userId='
+
item
.
userId
})
})
},
},
//查看用户详情
//查看用户详情
...
...
pages/tab/index.vue
View file @
efb2fadc
...
@@ -212,15 +212,9 @@
...
@@ -212,15 +212,9 @@
//左上角的搜索
//左上角的搜索
async
screen
()
{
async
screen
()
{
//判断当前是否已登录
//判断当前是否已登录
// const res = await this.$getId();
uni
.
navigateTo
({
console
.
log
(
res
);
url
:
'/pagespreference/preference/preference'
if
(
res
==
11003
)
{
});
this
.
isLoginPop
=
true
;
}
else
{
uni
.
navigateTo
({
url
:
'/pagespreference/preference/preference'
});
}
},
},
},
},
confirma
()
{
confirma
()
{
...
...
pagesArticle/articleDetail.vue
0 → 100644
View file @
efb2fadc
This diff is collapsed.
Click to expand it.
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