Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
wangliang_wd
2024-07-09 14:13:37 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d48cb1c71334e3233fecef0f37fd1fb34cbd5fa3
d48cb1c7
1 parent
a5d7bec3
feat:优化评论列表点击
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
sight_harmony/features/wdComponent/src/main/ets/components/ImageAndTextPageComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/comment/viewmodel/CommentViewModel.ets
sight_harmony/features/wdComponent/src/main/ets/components/ImageAndTextPageComponent.ets
View file @
d48cb1c
...
...
@@ -222,9 +222,10 @@ export struct ImageAndTextPageComponent {
})
}
.alignContent(Alignment.Top)
.position({y:'8
6
%'})
.position({y:'8
5
%'})
.width(CommonConstants.FULL_WIDTH)
.height(200)
.backgroundColor(Color.White)
.height(150)
// 发布时间
Column() {
...
...
sight_harmony/features/wdComponent/src/main/ets/components/comment/viewmodel/CommentViewModel.ets
View file @
d48cb1c
...
...
@@ -484,7 +484,8 @@ class CommentViewModel {
return false
}
jumpToAccountPage(commentItem: commentItemModel, beforeJump: () => void = () => {}) {
async jumpToAccountPage(commentItem: commentItemModel, beforeJump: () => void = () => {}) {
let userid = await SPHelper.default.get(SpConstants.USER_ID,"")
let url = HttpUrlUtils.getOtherUserDetailDataUrl()
let item : Record<string, string >= {}
...
...
@@ -496,7 +497,9 @@ class CommentViewModel {
}
HttpBizUtil.post<ResponseDTO<MasterDetailRes>>(url, item).then((result) => {
if (!result.data || result.data.mainControl != 1) {
// ToastUtils.longToast("暂时无法查看该创作者主页")
if (result.message == '暂时无法查看该创作者主页'){
ToastUtils.longToast(result.message)
}
return
}
...
...
@@ -506,7 +509,7 @@ class CommentViewModel {
}
beforeJump()
if (result.data.userType === "1") { // 普通用户
if (result.data.userType === "1"
&& result.data.userId == userid
) { // 普通用户
let params: Record<string, string> = {'userId': result.data.userId};
WDRouterRule.jumpWithPage(WDRouterPage.otherNormalUserHomePagePage,params)
} else { // 非普通用户
...
...
Please
register
or
login
to post a comment