Showing
5 changed files
with
21 additions
and
7 deletions
| @@ -30,7 +30,7 @@ export struct CompNormalTitle { | @@ -30,7 +30,7 @@ export struct CompNormalTitle { | ||
| 30 | .fontWeight(600) | 30 | .fontWeight(600) |
| 31 | } | 31 | } |
| 32 | .justifyContent(FlexAlign.Start) | 32 | .justifyContent(FlexAlign.Start) |
| 33 | - .margin({ top: 16, bottom: 8 }) | 33 | + .margin({ top: 16, bottom: 10 }) |
| 34 | .width(CommonConstants.FULL_WIDTH) | 34 | .width(CommonConstants.FULL_WIDTH) |
| 35 | } | 35 | } |
| 36 | .width(CommonConstants.FULL_WIDTH) | 36 | .width(CommonConstants.FULL_WIDTH) |
| @@ -25,8 +25,8 @@ export struct ZhGridLayout02NewsContent { | @@ -25,8 +25,8 @@ export struct ZhGridLayout02NewsContent { | ||
| 25 | build() { | 25 | build() { |
| 26 | 26 | ||
| 27 | GridRow({ | 27 | GridRow({ |
| 28 | - gutter: { x: 12, y: 13 }, | ||
| 29 | - columns: { sm: listSize, md: 2 }, | 28 | + gutter: { x: 9, y: 0 }, |
| 29 | + columns: { sm: listSize, md: listSize }, | ||
| 30 | breakpoints: { value: ['320vp', '520vp', '840vp'] } | 30 | breakpoints: { value: ['320vp', '520vp', '840vp'] } |
| 31 | }) { | 31 | }) { |
| 32 | ForEach(this.operDataList, (item: ContentDTO, index: number) => { | 32 | ForEach(this.operDataList, (item: ContentDTO, index: number) => { |
| @@ -46,13 +46,16 @@ export struct ZhGridLayout02NewsContent { | @@ -46,13 +46,16 @@ export struct ZhGridLayout02NewsContent { | ||
| 46 | .backgroundColor(0xf5f5f5) | 46 | .backgroundColor(0xf5f5f5) |
| 47 | .width('100%') | 47 | .width('100%') |
| 48 | .height(95) | 48 | .height(95) |
| 49 | + .borderWidth(0.5) | ||
| 50 | + .borderColor($r('app.color.color_0D000000')) | ||
| 49 | .borderRadius(4) | 51 | .borderRadius(4) |
| 50 | if (this.compDTO.operDataList[index].liveRoomDataBean != undefined | 52 | if (this.compDTO.operDataList[index].liveRoomDataBean != undefined |
| 51 | && this.compDTO.operDataList[index].liveRoomDataBean?.pv != undefined) { | 53 | && this.compDTO.operDataList[index].liveRoomDataBean?.pv != undefined) { |
| 52 | Text(this.computeShowNum(this.compDTO.operDataList[index].liveRoomDataBean)) | 54 | Text(this.computeShowNum(this.compDTO.operDataList[index].liveRoomDataBean)) |
| 53 | - .fontSize('11vp') | 55 | + .fontSize(12) |
| 54 | .fontWeight(400) | 56 | .fontWeight(400) |
| 55 | .fontColor(Color.White) | 57 | .fontColor(Color.White) |
| 58 | + .textShadow({ radius: 2, color: 'rgba(0,0,0,0.3)', offsetX: 0, offsetY: 2 }) | ||
| 56 | .margin({ | 59 | .margin({ |
| 57 | right: '5vp', | 60 | right: '5vp', |
| 58 | bottom: '5vp' | 61 | bottom: '5vp' |
| @@ -61,9 +64,12 @@ export struct ZhGridLayout02NewsContent { | @@ -61,9 +64,12 @@ export struct ZhGridLayout02NewsContent { | ||
| 61 | } | 64 | } |
| 62 | 65 | ||
| 63 | Text(item.newsTitle) | 66 | Text(item.newsTitle) |
| 64 | - .margin({ top: '6', bottom: '10' }) | ||
| 65 | - .fontSize(13) | 67 | + .margin({ top: 8, bottom: 14 }) |
| 68 | + .fontSize(15) | ||
| 66 | .maxLines(2) | 69 | .maxLines(2) |
| 70 | + .lineHeight(21) | ||
| 71 | + .width('100%') | ||
| 72 | + .textAlign(TextAlign.Start) | ||
| 67 | .textOverflow({ overflow: TextOverflow.Ellipsis }) | 73 | .textOverflow({ overflow: TextOverflow.Ellipsis }) |
| 68 | } | 74 | } |
| 69 | .width('100%') | 75 | .width('100%') |
| @@ -84,6 +84,10 @@ export function touchUpPullRefresh(pageModel: PageModel, pageAdvModel: PageAdMod | @@ -84,6 +84,10 @@ export function touchUpPullRefresh(pageModel: PageModel, pageAdvModel: PageAdMod | ||
| 84 | * @param pageAdvModel 广告数据 | 84 | * @param pageAdvModel 广告数据 |
| 85 | */ | 85 | */ |
| 86 | export function autoRefresh(pageModel: PageModel, pageAdvModel: PageAdModel) { | 86 | export function autoRefresh(pageModel: PageModel, pageAdvModel: PageAdModel) { |
| 87 | + if (pageModel.isRefreshing === true) { | ||
| 88 | + // 拦截多次刷新 | ||
| 89 | + return | ||
| 90 | + } | ||
| 87 | pageModel.isVisiblePullDown = true; | 91 | pageModel.isVisiblePullDown = true; |
| 88 | pageModel.offsetY = vp2px(pageModel.pullDownRefreshHeight); | 92 | pageModel.offsetY = vp2px(pageModel.pullDownRefreshHeight); |
| 89 | pullRefreshState(pageModel, RefreshState.Refreshing); | 93 | pullRefreshState(pageModel, RefreshState.Refreshing); |
| @@ -26,7 +26,7 @@ export function touchUpLoadMore(model: PageModel) { | @@ -26,7 +26,7 @@ export function touchUpLoadMore(model: PageModel) { | ||
| 26 | }, () => { | 26 | }, () => { |
| 27 | self.offsetY = 0; | 27 | self.offsetY = 0; |
| 28 | }) | 28 | }) |
| 29 | - if ((self.isCanLoadMore === true) && (self.hasMore === true)) { | 29 | + if ((self.isCanLoadMore === true) && (self.hasMore === true) && (self.isLoading === false)) { |
| 30 | self.isLoading = true; | 30 | self.isLoading = true; |
| 31 | setTimeout(() => { | 31 | setTimeout(() => { |
| 32 | closeLoadMore(model); | 32 | closeLoadMore(model); |
-
Please register or login to post a comment