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
douaojie
2024-05-17 18:39:27 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
af1d537e304ec8fc1329db1e69930382af9e399e
af1d537e
2 parents
39193675
36a9c061
Merge remote-tracking branch 'origin/main'
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
7 deletions
sight_harmony/features/wdComponent/src/main/ets/components/compview/CompNormalTitle.ets
sight_harmony/features/wdComponent/src/main/ets/components/compview/ZhGridLayout02NewsContent.ets
sight_harmony/features/wdComponent/src/main/ets/utils/PullDownRefresh.ets
sight_harmony/features/wdComponent/src/main/ets/utils/PullUpLoadMore.ets
sight_harmony/features/wdComponent/src/main/resources/base/element/color.json
sight_harmony/features/wdComponent/src/main/ets/components/compview/CompNormalTitle.ets
View file @
af1d537
...
...
@@ -30,7 +30,7 @@ export struct CompNormalTitle {
.fontWeight(600)
}
.justifyContent(FlexAlign.Start)
.margin({ top: 16, bottom:
8
})
.margin({ top: 16, bottom:
10
})
.width(CommonConstants.FULL_WIDTH)
}
.width(CommonConstants.FULL_WIDTH)
...
...
sight_harmony/features/wdComponent/src/main/ets/components/compview/ZhGridLayout02NewsContent.ets
View file @
af1d537
...
...
@@ -25,8 +25,8 @@ export struct ZhGridLayout02NewsContent {
build() {
GridRow({
gutter: { x: 12, y: 13 },
columns: { sm: listSize, md: 2 },
gutter: { x: 9, y: 0 },
columns: { sm: listSize, md: listSize },
breakpoints: { value: ['320vp', '520vp', '840vp'] }
}) {
ForEach(this.operDataList, (item: ContentDTO, index: number) => {
...
...
@@ -46,13 +46,16 @@ export struct ZhGridLayout02NewsContent {
.backgroundColor(0xf5f5f5)
.width('100%')
.height(95)
.borderWidth(0.5)
.borderColor($r('app.color.color_0D000000'))
.borderRadius(4)
if (this.compDTO.operDataList[index].liveRoomDataBean != undefined
&& this.compDTO.operDataList[index].liveRoomDataBean?.pv != undefined) {
Text(this.computeShowNum(this.compDTO.operDataList[index].liveRoomDataBean))
.fontSize(
'11vp'
)
.fontSize(
12
)
.fontWeight(400)
.fontColor(Color.White)
.textShadow({ radius: 2, color: 'rgba(0,0,0,0.3)', offsetX: 0, offsetY: 2 })
.margin({
right: '5vp',
bottom: '5vp'
...
...
@@ -61,9 +64,12 @@ export struct ZhGridLayout02NewsContent {
}
Text(item.newsTitle)
.margin({ top: '6', bottom: '10' })
.fontSize(13)
.margin({ top: 8, bottom: 14 })
.fontSize(15)
.maxLines(2)
.lineHeight(21)
.width('100%')
.textAlign(TextAlign.Start)
.textOverflow({ overflow: TextOverflow.Ellipsis })
}
.width('100%')
...
...
sight_harmony/features/wdComponent/src/main/ets/utils/PullDownRefresh.ets
View file @
af1d537
...
...
@@ -84,6 +84,10 @@ export function touchUpPullRefresh(pageModel: PageModel, pageAdvModel: PageAdMod
* @param pageAdvModel 广告数据
*/
export function autoRefresh(pageModel: PageModel, pageAdvModel: PageAdModel) {
if (pageModel.isRefreshing === true) {
// 拦截多次刷新
return
}
pageModel.isVisiblePullDown = true;
pageModel.offsetY = vp2px(pageModel.pullDownRefreshHeight);
pullRefreshState(pageModel, RefreshState.Refreshing);
...
...
sight_harmony/features/wdComponent/src/main/ets/utils/PullUpLoadMore.ets
View file @
af1d537
...
...
@@ -26,7 +26,7 @@ export function touchUpLoadMore(model: PageModel) {
}, () => {
self.offsetY = 0;
})
if ((self.isCanLoadMore === true) && (self.hasMore === true)) {
if ((self.isCanLoadMore === true) && (self.hasMore === true)
&& (self.isLoading === false)
) {
self.isLoading = true;
setTimeout(() => {
closeLoadMore(model);
...
...
sight_harmony/features/wdComponent/src/main/resources/base/element/color.json
View file @
af1d537
...
...
@@ -169,6 +169,10 @@
{
"name"
:
"color_ED2800_99"
,
"value"
:
"#99ED2800"
},
{
"name"
:
"color_white_30"
,
"value"
:
"#4D000000"
}
]
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment