Merge branch 'main' of http://192.168.1.42/developOne/harmonyPool into main
* 'main' of http://192.168.1.42/developOne/harmonyPool: fix(19311): UI还原问题-【uat】进入“竖屏直播-预约直播间” 未选中,预约按钮未对齐,看图 fix: 19041 单图卡-标签和标题间距过大、标题和封面图间距过大 fix: 19041 单图卡-标签和标题间距过大、标题和封面图间距过大 feat:换肤 1)搜索页状态栏颜色 黑色
Showing
11 changed files
with
16 additions
and
53 deletions
| @@ -32,6 +32,9 @@ export struct Card10Component { | @@ -32,6 +32,9 @@ export struct Card10Component { | ||
| 32 | @State isBatchData: boolean = false | 32 | @State isBatchData: boolean = false |
| 33 | 33 | ||
| 34 | async aboutToAppear(): Promise<void> { | 34 | async aboutToAppear(): Promise<void> { |
| 35 | + console.log('Card10Component-compDTO', JSON.stringify(this.compDTO)) | ||
| 36 | + console.log('Card10Component-contentDTO', JSON.stringify(this.contentDTO)) | ||
| 37 | + | ||
| 35 | this.titleInit(); | 38 | this.titleInit(); |
| 36 | this.loadImg = await onlyWifiLoadImg(); | 39 | this.loadImg = await onlyWifiLoadImg(); |
| 37 | this.initHideDetail(); | 40 | this.initHideDetail(); |
| @@ -41,7 +41,7 @@ export struct Card11Component { | @@ -41,7 +41,7 @@ export struct Card11Component { | ||
| 41 | Column() { | 41 | Column() { |
| 42 | Stack() { | 42 | Stack() { |
| 43 | if(this.contentDTO.objectType == '5'){ | 43 | if(this.contentDTO.objectType == '5'){ |
| 44 | - Notes({ objectType: this.contentDTO.objectType }).height(28).align(Alignment.Center) | 44 | + Notes({ objectType: this.contentDTO.objectType, }).height(28).align(Alignment.Center) |
| 45 | } else { | 45 | } else { |
| 46 | if (this.contentDTO.seoTags) { | 46 | if (this.contentDTO.seoTags) { |
| 47 | Notes({ newTags: this.contentDTO.seoTags }).height(28).align(Alignment.Center) | 47 | Notes({ newTags: this.contentDTO.seoTags }).height(28).align(Alignment.Center) |
| @@ -77,7 +77,6 @@ export struct Card11Component { | @@ -77,7 +77,6 @@ export struct Card11Component { | ||
| 77 | (this.contentDTO.newTags?.length || this.contentDTO.seoTags?.length) < 5 ? 58 : | 77 | (this.contentDTO.newTags?.length || this.contentDTO.seoTags?.length) < 5 ? 58 : |
| 78 | ((this.contentDTO.newTags?.length > 0 || this.contentDTO.seoTags?.length > 0) || this.contentDTO.objectType == '5' || this.contentDTO.top === 1) ? 35 : | 78 | ((this.contentDTO.newTags?.length > 0 || this.contentDTO.seoTags?.length > 0) || this.contentDTO.objectType == '5' || this.contentDTO.top === 1) ? 35 : |
| 79 | 0 ) | 79 | 0 ) |
| 80 | - | ||
| 81 | }.alignContent(Alignment.TopStart) | 80 | }.alignContent(Alignment.TopStart) |
| 82 | 81 | ||
| 83 | 82 |
| @@ -48,20 +48,6 @@ export struct Card2Component { | @@ -48,20 +48,6 @@ export struct Card2Component { | ||
| 48 | Column() { | 48 | Column() { |
| 49 | Column() { | 49 | Column() { |
| 50 | Stack() { | 50 | Stack() { |
| 51 | - // if(this.contentDTO.objectType == '5'){ | ||
| 52 | - // Notes({ objectType: this.contentDTO.objectType }).height(30).align(Alignment.Center) | ||
| 53 | - // }else if(this.contentDTO.objectType == '2'){ | ||
| 54 | - // if(this.contentDTO.seoTags){ | ||
| 55 | - // Notes({ newTags: this.contentDTO.seoTags }).height(30).align(Alignment.Center) | ||
| 56 | - // }else if(this.contentDTO.newTags){ | ||
| 57 | - // Notes({ newTags: this.contentDTO.newTags }).height(30).align(Alignment.Center) | ||
| 58 | - // | ||
| 59 | - // } | ||
| 60 | - // }else { | ||
| 61 | - // if(this.contentDTO.newTags){ | ||
| 62 | - // Notes({ newTags: this.contentDTO.newTags }).height(30).align(Alignment.Center) | ||
| 63 | - // } | ||
| 64 | - // } | ||
| 65 | if(this.contentDTO.objectType == '5'){ | 51 | if(this.contentDTO.objectType == '5'){ |
| 66 | Notes({ objectType: this.contentDTO.objectType }).height(29).align(Alignment.Center) | 52 | Notes({ objectType: this.contentDTO.objectType }).height(29).align(Alignment.Center) |
| 67 | } else { | 53 | } else { |
| @@ -75,14 +61,6 @@ export struct Card2Component { | @@ -75,14 +61,6 @@ export struct Card2Component { | ||
| 75 | Notes({ newTags: '置顶' }).height(29).align(Alignment.Center) | 61 | Notes({ newTags: '置顶' }).height(29).align(Alignment.Center) |
| 76 | } | 62 | } |
| 77 | } | 63 | } |
| 78 | - //新闻标题 | ||
| 79 | - // if (this.contentDTO.newTags) { | ||
| 80 | - // | ||
| 81 | - // //Notes({ newTags: this.contentDTO.newTags }) | ||
| 82 | - // } else if (this.contentDTO.objectType == '5') { | ||
| 83 | - // | ||
| 84 | - // //Notes({ objectType: this.contentDTO.objectType }) | ||
| 85 | - // } | ||
| 86 | 64 | ||
| 87 | Text() { | 65 | Text() { |
| 88 | if (this.titleMarked) { | 66 | if (this.titleMarked) { |
| @@ -108,6 +86,7 @@ export struct Card2Component { | @@ -108,6 +86,7 @@ export struct Card2Component { | ||
| 108 | (this.contentDTO.newTags?.length || this.contentDTO.seoTags?.length) < 5 ? 58 : | 86 | (this.contentDTO.newTags?.length || this.contentDTO.seoTags?.length) < 5 ? 58 : |
| 109 | ((this.contentDTO.newTags?.length > 0 || this.contentDTO.seoTags?.length > 0) || this.contentDTO.objectType == '5' || this.contentDTO.top === 1) ? 35 : | 87 | ((this.contentDTO.newTags?.length > 0 || this.contentDTO.seoTags?.length > 0) || this.contentDTO.objectType == '5' || this.contentDTO.top === 1) ? 35 : |
| 110 | 0 ) | 88 | 0 ) |
| 89 | + .width('100%') | ||
| 111 | }.alignContent(Alignment.TopStart) | 90 | }.alignContent(Alignment.TopStart) |
| 112 | 91 | ||
| 113 | //.textIndent(this.contentDTO.objectType == '5' ? 35 : 0) | 92 | //.textIndent(this.contentDTO.objectType == '5' ? 35 : 0) |
| @@ -38,11 +38,6 @@ export struct Card3Component { | @@ -38,11 +38,6 @@ export struct Card3Component { | ||
| 38 | build() { | 38 | build() { |
| 39 | Column() { | 39 | Column() { |
| 40 | Stack() { | 40 | Stack() { |
| 41 | - // if (this.contentDTO.newTags) { | ||
| 42 | - // Notes({ newTags: this.contentDTO.newTags }).height(27).align(Alignment.Center) | ||
| 43 | - // } else if (this.contentDTO.objectType == '5') { | ||
| 44 | - // Notes({ objectType: this.contentDTO.objectType }).height(27).align(Alignment.Center) | ||
| 45 | - // } | ||
| 46 | if(this.contentDTO.objectType == '5'){ | 41 | if(this.contentDTO.objectType == '5'){ |
| 47 | Notes({ objectType: this.contentDTO.objectType }).height(29).align(Alignment.Center) | 42 | Notes({ objectType: this.contentDTO.objectType }).height(29).align(Alignment.Center) |
| 48 | } else { | 43 | } else { |
| @@ -84,6 +84,7 @@ export struct Card4Component { | @@ -84,6 +84,7 @@ export struct Card4Component { | ||
| 84 | (this.contentDTO.newTags?.length || this.contentDTO.seoTags?.length) < 5 ? 58 : | 84 | (this.contentDTO.newTags?.length || this.contentDTO.seoTags?.length) < 5 ? 58 : |
| 85 | ((this.contentDTO.newTags?.length > 0 || this.contentDTO.seoTags?.length > 0) || this.contentDTO.objectType == '5' || this.contentDTO.top === 1) ? 35 : | 85 | ((this.contentDTO.newTags?.length > 0 || this.contentDTO.seoTags?.length > 0) || this.contentDTO.objectType == '5' || this.contentDTO.top === 1) ? 35 : |
| 86 | 0 ) | 86 | 0 ) |
| 87 | + .width('100%') | ||
| 87 | }.alignContent(Alignment.TopStart) | 88 | }.alignContent(Alignment.TopStart) |
| 88 | //新闻标题 | 89 | //新闻标题 |
| 89 | 90 |
| @@ -44,16 +44,6 @@ export struct Card6Component { | @@ -44,16 +44,6 @@ export struct Card6Component { | ||
| 44 | Row() { | 44 | Row() { |
| 45 | Column() { | 45 | Column() { |
| 46 | Column() { | 46 | Column() { |
| 47 | - // TODO 这个tag涉及样式问题。待优化。 | ||
| 48 | - // if (this.contentDTO.newTags) { | ||
| 49 | - // Text(this.contentDTO.newTags) | ||
| 50 | - // .backgroundColor($r('app.color.color_ED2800')) | ||
| 51 | - // .borderRadius($r('app.float.button_border_radius')) | ||
| 52 | - // .fontColor($r('app.color.color_fff')) | ||
| 53 | - // .fontSize($r('app.float.font_size_12')) | ||
| 54 | - // .padding(2) | ||
| 55 | - // .margin({ right: 2 }) | ||
| 56 | - // } | ||
| 57 | Stack() { | 47 | Stack() { |
| 58 | if(this.contentDTO.objectType == '5'){ | 48 | if(this.contentDTO.objectType == '5'){ |
| 59 | Notes({ objectType: this.contentDTO.objectType }).height(28).align(Alignment.Center) | 49 | Notes({ objectType: this.contentDTO.objectType }).height(28).align(Alignment.Center) |
| @@ -71,7 +61,6 @@ export struct Card6Component { | @@ -71,7 +61,6 @@ export struct Card6Component { | ||
| 71 | 61 | ||
| 72 | Text() | 62 | Text() |
| 73 | { | 63 | { |
| 74 | - | ||
| 75 | if (this.titleMarked) { | 64 | if (this.titleMarked) { |
| 76 | ForEach(this.textArr, (textItem: textItem) => { | 65 | ForEach(this.textArr, (textItem: textItem) => { |
| 77 | if (textItem.isRed) { | 66 | if (textItem.isRed) { |
| @@ -85,7 +74,6 @@ export struct Card6Component { | @@ -85,7 +74,6 @@ export struct Card6Component { | ||
| 85 | Span(this.contentDTO.newsTitle) | 74 | Span(this.contentDTO.newsTitle) |
| 86 | } | 75 | } |
| 87 | } | 76 | } |
| 88 | - | ||
| 89 | .fontColor(this.clicked ? 0x848484 : 0x222222) | 77 | .fontColor(this.clicked ? 0x848484 : 0x222222) |
| 90 | .fontSize(18) | 78 | .fontSize(18) |
| 91 | .lineHeight(27) | 79 | .lineHeight(27) |
| @@ -97,9 +85,9 @@ export struct Card6Component { | @@ -97,9 +85,9 @@ export struct Card6Component { | ||
| 97 | (this.contentDTO.newTags?.length || this.contentDTO.seoTags?.length) < 5 ? (12 + (this.contentDTO.newTags?.length || this.contentDTO.seoTags?.length) * 11) : | 85 | (this.contentDTO.newTags?.length || this.contentDTO.seoTags?.length) < 5 ? (12 + (this.contentDTO.newTags?.length || this.contentDTO.seoTags?.length) * 11) : |
| 98 | ((this.contentDTO.newTags?.length > 0 || this.contentDTO.seoTags?.length > 0) || this.contentDTO.objectType == '5' || this.contentDTO.top === 1) ? 35 : | 86 | ((this.contentDTO.newTags?.length > 0 || this.contentDTO.seoTags?.length > 0) || this.contentDTO.objectType == '5' || this.contentDTO.top === 1) ? 35 : |
| 99 | 0 ) | 87 | 0 ) |
| 100 | - }.alignContent(Alignment.TopStart) | ||
| 101 | - | ||
| 102 | - | 88 | + .width('100%') |
| 89 | + } | ||
| 90 | + .alignContent(Alignment.TopStart) | ||
| 103 | } | 91 | } |
| 104 | .justifyContent(FlexAlign.Start) | 92 | .justifyContent(FlexAlign.Start) |
| 105 | Blank() | 93 | Blank() |
| @@ -227,10 +227,6 @@ struct CarouselLayout01CardView { | @@ -227,10 +227,6 @@ struct CarouselLayout01CardView { | ||
| 227 | Notes({ newTags: this.item.newTags }) | 227 | Notes({ newTags: this.item.newTags }) |
| 228 | } | 228 | } |
| 229 | } | 229 | } |
| 230 | - // if (this.item.objectType == '5' || this.item.objectType == '6') { | ||
| 231 | - // Notes({ objectType: this.item.objectType }) | ||
| 232 | - // } | ||
| 233 | - //Text(`${this.item.corner}${this.item.newsTitle}`) | ||
| 234 | Text(`${this.item.newsTitle}`) | 230 | Text(`${this.item.newsTitle}`) |
| 235 | .width(CommonConstants.FULL_PARENT) | 231 | .width(CommonConstants.FULL_PARENT) |
| 236 | .fontColor(Color.White) | 232 | .fontColor(Color.White) |
| @@ -17,7 +17,6 @@ struct LiveMorePage { | @@ -17,7 +17,6 @@ struct LiveMorePage { | ||
| 17 | 17 | ||
| 18 | title: string = '直播列表' | 18 | title: string = '直播列表' |
| 19 | 19 | ||
| 20 | - | ||
| 21 | onPageShow(): void { | 20 | onPageShow(): void { |
| 22 | WindowModel.shared.setWindowSystemBarProperties({ | 21 | WindowModel.shared.setWindowSystemBarProperties({ |
| 23 | statusBarContentColor: '#000000', | 22 | statusBarContentColor: '#000000', |
| @@ -514,7 +514,6 @@ export struct TopNavigationComponentNew { | @@ -514,7 +514,6 @@ export struct TopNavigationComponentNew { | ||
| 514 | if (statusValue === 1) { // 黑色状态栏 | 514 | if (statusValue === 1) { // 黑色状态栏 |
| 515 | WindowModel.shared.setWindowSystemBarProperties({ | 515 | WindowModel.shared.setWindowSystemBarProperties({ |
| 516 | statusBarContentColor: '#000000', | 516 | statusBarContentColor: '#000000', |
| 517 | - | ||
| 518 | }) | 517 | }) |
| 519 | } else { //白色状态栏 | 518 | } else { //白色状态栏 |
| 520 | WindowModel.shared.setWindowSystemBarProperties({ | 519 | WindowModel.shared.setWindowSystemBarProperties({ |
| 1 | -import { DateTimeUtils } from 'wdKit/Index'; | 1 | +import { DateTimeUtils, WindowModel } from 'wdKit/Index'; |
| 2 | import { TrackingPageBrowse, TrackConstants } from 'wdTracking/Index'; | 2 | import { TrackingPageBrowse, TrackConstants } from 'wdTracking/Index'; |
| 3 | import { SearchComponent } from '../components/search/SearchComponent' | 3 | import { SearchComponent } from '../components/search/SearchComponent' |
| 4 | import { router } from '@kit.ArkUI'; | 4 | import { router } from '@kit.ArkUI'; |
| @@ -16,6 +16,10 @@ struct SearchPage { | @@ -16,6 +16,10 @@ struct SearchPage { | ||
| 16 | onPageShow() { | 16 | onPageShow() { |
| 17 | this.fromTabName = this.params?.['tabName']; | 17 | this.fromTabName = this.params?.['tabName']; |
| 18 | this.pageShowTime = DateTimeUtils.getTimeStamp() | 18 | this.pageShowTime = DateTimeUtils.getTimeStamp() |
| 19 | + WindowModel.shared.setWindowSystemBarProperties({ | ||
| 20 | + statusBarContentColor: '#000000', | ||
| 21 | + | ||
| 22 | + }) | ||
| 19 | } | 23 | } |
| 20 | 24 | ||
| 21 | onPageHide(): void { | 25 | onPageHide(): void { |
| @@ -160,13 +160,13 @@ export struct PlayUIComponent { | @@ -160,13 +160,13 @@ export struct PlayUIComponent { | ||
| 160 | rmhInfo: this.contentDetailData.rmhInfo | 160 | rmhInfo: this.contentDetailData.rmhInfo |
| 161 | }) | 161 | }) |
| 162 | .margin({ | 162 | .margin({ |
| 163 | - top:-7, | 163 | + // top:-7, |
| 164 | right: 10 | 164 | right: 10 |
| 165 | }) | 165 | }) |
| 166 | } | 166 | } |
| 167 | //第二行右边直播状态参与人数 | 167 | //第二行右边直播状态参与人数 |
| 168 | this.getLiveStatusView() | 168 | this.getLiveStatusView() |
| 169 | - } | 169 | + }.margin({top:-7}) |
| 170 | } | 170 | } |
| 171 | .width('100%') | 171 | .width('100%') |
| 172 | // .width(this.displayDirection == DisplayDirection.VIDEO_HORIZONTAL ? 'calc(100% - 80vp)' : 'calc(100% - 32vp)') | 172 | // .width(this.displayDirection == DisplayDirection.VIDEO_HORIZONTAL ? 'calc(100% - 80vp)' : 'calc(100% - 32vp)') |
-
Please register or login to post a comment