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-10-11 15:20:50 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4c4d81951cc8ee2f68e953ba1b2a5d05c7257eba
4c4d8195
1 parent
62bcbfb2
feat:优化他人主页未登录状态逻辑,优化无简介分割线展示逻辑
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/ChildCommentComponent.ets
sight_harmony/features/wdComponent/src/main/ets/pages/OtherNormalUserHomePage.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/ChildCommentComponent.ets
View file @
4c4d819
import { ContentDTO } from 'wdBean/Index'
import { DateTimeUtils, StringUtils, UserDataLocal } from 'wdKit/Index'
import { DateTimeUtils, S
PHelper, S
tringUtils, UserDataLocal } from 'wdKit/Index'
import MinePageDatasModel from '../../../model/MinePageDatasModel'
import { CommentLikeOperationRequestItem } from '../../../viewmodel/CommentLikeOperationRequestItem'
import { CommentListItem } from '../../../viewmodel/CommentListItem'
import measure from '@ohos.measure'
import { TrackConstants, TrackingContent, TrackParamConvert } from 'wdTracking/Index'
import { ProcessUtils } from 'wdRouter/Index'
import { ProcessUtils, WDRouterPage, WDRouterRule } from 'wdRouter/Index'
import { SpConstants } from 'wdConstant'
@Component
export struct ChildCommentComponent {
...
...
@@ -221,6 +222,11 @@ export struct ChildCommentComponent {
}
commentLikeOperation() {
let userid = SPHelper.default.getSync(SpConstants.USER_ID,"") as string
if (!userid) {
WDRouterRule.jumpWithPage(WDRouterPage.loginPage)
return
}
let item = new CommentLikeOperationRequestItem(this.data.targetId, this.data.id + "", this.data.targetType + "", UserDataLocal.getUserName(), UserDataLocal.getUserHeaderUrl(), this.data.like_status === 0 ? 1 : 0)
MinePageDatasModel.getCommentLikeOperation(item, getContext(this)).then((value) => {
if (value != null) {
...
...
sight_harmony/features/wdComponent/src/main/ets/pages/OtherNormalUserHomePage.ets
View file @
4c4d819
...
...
@@ -205,9 +205,10 @@ struct OtherNormalUserHomePage {
.justifyContent(FlexAlign.Center)
.width('100%')
.backgroundColor($r('app.color.white'))
}
//间隔符
Divider().width('100%').height('12lpx').color($r('app.color.color_F5F5F5')).strokeWidth('12lpx')
}
//tab 页面
Stack({ alignContent: Alignment.Top }){
...
...
Please
register
or
login
to post a comment