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-09-20 10:00:49 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ce5d97aa34e48851008a2cd69faca04b22a2795d
ce5d97aa
1 parent
96eafefe
feat:优化用户头像,优化早晚报
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
sight_harmony/features/wdComponent/src/main/ets/components/mine/MinePageUserSimpleInfoUI.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/CardView.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/MinePageUserSimpleInfoUI.ets
View file @
ce5d97a
...
...
@@ -58,7 +58,7 @@ export default struct MinePageUserSimpleInfoUI {
.alt(this.userType === "1"?$r('app.media.default_head_userPage'):$r('app.media.AccountOwner_DefaultIcon'))
.width(63.21)
.height(63.21)
.objectFit(ImageFit.
Cover
)
.objectFit(ImageFit.
Fill
)
.borderRadius(50)
if(StringUtils.isNotEmpty(this.levelHead)){
...
...
sight_harmony/features/wdComponent/src/main/ets/components/page/CardView.ets
View file @
ce5d97a
...
...
@@ -8,6 +8,7 @@ import { TrackConstants,
TrackingContent, TrackingPageBrowse, TrackParamConvert } from 'wdTracking/Index';
import { WDShare } from 'wdShare/Index';
import { hasClicked, persistentStorage } from '../../utils/persistentStorage';
import { LottieView } from '../lottie/LottieView';
const TAG: string = 'CardView';
...
...
@@ -443,7 +444,7 @@ export struct PaperSingleColumn999CardView {
Image(this.item?.coverUrl)
.borderRadius(5)
.objectFit(ImageFit.Cover)
.aspectRatio(319 /
179
) ///图片设计比例
.aspectRatio(319 /
200
) ///图片设计比例
.padding({ top: 10 })
//视频
if (this.item?.videoInfo) {
...
...
@@ -481,6 +482,15 @@ export struct PaperSingleColumn999CardView {
.width(14)
.height(14)
.objectFit(ImageFit.Contain)
// LottieView({
// name: 'MorningPaper_live_status',
// path: "lottie/live_detail_living.json",
// lottieWidth: 14,
// lottieHeight: 14,
// autoplay: true,
// loop: true,
// })
Text(this.buildLiveStateString())
.fontColor(Color.White)
.fontSize($r('app.float.vp_12'))
...
...
Please
register
or
login
to post a comment