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
张善主
2024-04-28 14:09:56 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7eb480c1837ffba9d33e021823fac56a1bc9e2eb
7eb480c1
1 parent
dd98b33b
feat(动态):拉登录调整/点赞距离调整
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
sight_harmony/features/wdComponent/src/main/ets/components/DynamicDetailComponent.ets
sight_harmony/features/wdComponent/src/main/resources/base/element/float.json
sight_harmony/features/wdComponent/src/main/ets/components/DynamicDetailComponent.ets
View file @
7eb480c
...
...
@@ -335,6 +335,7 @@ export struct DynamicDetailComponent {
.width($r('app.float.margin_36'))
.height($r('app.float.margin_36'))
.objectFit(ImageFit.Cover)
.margin({ left: $r('app.float.margin_6_negative'),right: $r('app.float.margin_6_negative')})
if(this.interactDataDTO?.likeNum != 0){
Text(NumberFormatterUtils.formatNumberWithWan(this.interactDataDTO?.likeNum))
.fontColor($r('app.color.color_999999'))
...
...
@@ -435,7 +436,6 @@ export struct DynamicDetailComponent {
// 未登录,跳转登录
const user_id = await SPHelper.default.get(SpConstants.USER_ID, '')
if (!user_id) {
WDRouterRule.jumpWithPage(WDRouterPage.loginPage)
return
}
try {
...
...
@@ -464,7 +464,6 @@ export struct DynamicDetailComponent {
// 未登录,跳转登录
const user_id = await SPHelper.default.get(SpConstants.USER_ID, '')
if (!user_id) {
WDRouterRule.jumpWithPage(WDRouterPage.loginPage)
this.followStatus = '0';
return
}
...
...
sight_harmony/features/wdComponent/src/main/resources/base/element/float.json
View file @
7eb480c
...
...
@@ -57,6 +57,10 @@
"value"
:
"-4vp"
},
{
"name"
:
"margin_6_negative"
,
"value"
:
"-6vp"
},
{
"name"
:
"main_margin"
,
"value"
:
"14vp"
},
...
...
Please
register
or
login
to post a comment