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-26 16:33:59 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a9b594e5143176e520d901fcf3de34764ba139e7
a9b594e5
1 parent
ba0e1612
feat:优化早晚报仅WiFi展示逻辑
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
sight_harmony/features/wdComponent/src/main/ets/components/page/CardView.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/CardView.ets
View file @
a9b594e
import { Action, ContentDTO, Params, InteractDataDTO } from 'wdBean';
import { CommonConstants, ConfigConstants, ScreenType } from 'wdConstant';
import { Logger, ToastUtils, DateTimeUtils } from 'wdKit';
import { Logger, ToastUtils, DateTimeUtils
, DisplayUtils
} from 'wdKit';
import { CompUtils } from '../../utils/CompUtils';
import { ProcessUtils, WDRouterRule } from 'wdRouter';
import { TrackConstants,
...
...
@@ -443,11 +443,14 @@ export struct PaperSingleColumn999CardView {
.margin({ left: 16, right: 16, top: 16 })
if (this.item?.coverUrl) {
Stack({ alignContent: Alignment.BottomEnd }) {
Image(
this.loadImg?this.item?.coverUrl:
'')
Image('')
.borderRadius(5)
.objectFit(ImageFit.Fill)
.aspectRatio(319 / 179) ///图片设计比例
//
.aspectRatio(319 / 179) ///图片设计比例
.padding({ top: 10 })
.backgroundColor('#f5f5f5')
.width('100%')
.height((DisplayUtils.getDeviceWidth() - 66)*(179 / 319))
//视频
if (this.item?.videoInfo) {
Row() {
...
...
Please
register
or
login
to post a comment