王士厅
@@ -5,7 +5,7 @@ export class ToastUtils { @@ -5,7 +5,7 @@ export class ToastUtils {
5 private static shortToastTime: number = 1000 5 private static shortToastTime: number = 1000
6 6
7 static showToast(message: ResourceStr, duration: number) { 7 static showToast(message: ResourceStr, duration: number) {
8 - prompt.showToast({ message: message, duration: duration }) 8 + prompt.showToast({ message: message, duration: duration, alignment: Alignment.Center })
9 } 9 }
10 10
11 static shortToast(message: ResourceStr) { 11 static shortToast(message: ResourceStr) {
@@ -27,6 +27,7 @@ export struct Card19Component { @@ -27,6 +27,7 @@ export struct Card19Component {
27 .textOverflowStyle(3) 27 .textOverflowStyle(3)
28 .margin({ bottom: 8 }) 28 .margin({ bottom: 8 })
29 .width(CommonConstants.FULL_WIDTH) 29 .width(CommonConstants.FULL_WIDTH)
  30 + .lineHeight(22)
30 .onClick((event: ClickEvent) => { 31 .onClick((event: ClickEvent) => {
31 this.clicked = true; 32 this.clicked = true;
32 ProcessUtils.processPage(this.contentDTO) 33 ProcessUtils.processPage(this.contentDTO)
@@ -31,7 +31,7 @@ export struct Card20Component { @@ -31,7 +31,7 @@ export struct Card20Component {
31 .width(CommonConstants.FULL_WIDTH) 31 .width(CommonConstants.FULL_WIDTH)
32 .textOverflowStyle(3) 32 .textOverflowStyle(3)
33 .margin({ bottom: 8 }) 33 .margin({ bottom: 8 })
34 - .lineHeight(20) 34 + .lineHeight(22)
35 } 35 }
36 if (this.contentDTO.fullColumnImgUrls[0]) { 36 if (this.contentDTO.fullColumnImgUrls[0]) {
37 createImg({ contentDTO: this.contentDTO }) 37 createImg({ contentDTO: this.contentDTO })
@@ -55,7 +55,7 @@ export struct Card6Component { @@ -55,7 +55,7 @@ export struct Card6Component {
55 this.contentDTO.objectType == '5' ? 30 : 0) 55 this.contentDTO.objectType == '5' ? 30 : 0)
56 }.alignContent(Alignment.TopStart) 56 }.alignContent(Alignment.TopStart)
57 57
58 - }.height("80%") 58 + }.height("75%")
59 .justifyContent(FlexAlign.Start) 59 .justifyContent(FlexAlign.Start)
60 60
61 61
@@ -64,7 +64,7 @@ export struct Card6Component { @@ -64,7 +64,7 @@ export struct Card6Component {
64 } 64 }
65 .alignItems(HorizontalAlign.Start) 65 .alignItems(HorizontalAlign.Start)
66 .justifyContent(FlexAlign.Start) 66 .justifyContent(FlexAlign.Start)
67 - .width('58%') 67 + .width('64%')
68 68
69 Stack() { 69 Stack() {
70 Image(this.loadImg ? this.contentDTO.coverUrl : '') 70 Image(this.loadImg ? this.contentDTO.coverUrl : '')
@@ -87,7 +87,7 @@ export struct Card6Component { @@ -87,7 +87,7 @@ export struct Card6Component {
87 bottom: $r('app.float.card_comp_pagePadding_tb') 87 bottom: $r('app.float.card_comp_pagePadding_tb')
88 }) 88 })
89 .width(CommonConstants.FULL_WIDTH) 89 .width(CommonConstants.FULL_WIDTH)
90 - .height(this.contentDTO.appStyle === CompStyle.Card_13 ? 127 : 217) 90 + .height(this.contentDTO.appStyle === CompStyle.Card_13 ? 107 : 217)
91 .justifyContent(FlexAlign.SpaceBetween) 91 .justifyContent(FlexAlign.SpaceBetween)
92 } 92 }
93 } 93 }
@@ -27,6 +27,5 @@ export default struct PageNoMoreLayout { @@ -27,6 +27,5 @@ export default struct PageNoMoreLayout {
27 .width(RefreshConstants.FULL_WIDTH) 27 .width(RefreshConstants.FULL_WIDTH)
28 .justifyContent(FlexAlign.Center) 28 .justifyContent(FlexAlign.Center)
29 .height(RefreshConstants.CUSTOM_LAYOUT_HEIGHT) 29 .height(RefreshConstants.CUSTOM_LAYOUT_HEIGHT)
30 - .margin({bottom:RefreshConstants.NoMoreLayoutConstant_MARGIN_BOTTOM})  
31 } 30 }
32 } 31 }
@@ -40,7 +40,7 @@ export struct SearchResultComponent { @@ -40,7 +40,7 @@ export struct SearchResultComponent {
40 40
41 SearcherAboutDataModel.getSearchSuggestData(request, getContext(this)).then((value) => { 41 SearcherAboutDataModel.getSearchSuggestData(request, getContext(this)).then((value) => {
42 value.forEach((item) => { 42 value.forEach((item) => {
43 - if(item.appStyle != "13"){ 43 + if(item.objectType != "13"){
44 this.data.push(item) 44 this.data.push(item)
45 } 45 }
46 }) 46 })
@@ -185,7 +185,7 @@ export struct SearchResultContentComponent { @@ -185,7 +185,7 @@ export struct SearchResultContentComponent {
185 } 185 }
186 186
187 let contentDTO = this.dataTransform(value, photos); 187 let contentDTO = this.dataTransform(value, photos);
188 - if (contentDTO.appStyle != "13") { 188 + if(value.data.type != "13"){
189 this.data.push(contentDTO) 189 this.data.push(contentDTO)
190 } 190 }
191 191
@@ -70,7 +70,7 @@ export struct HorizontalStrokeCardThreeTwoRadioForMoreComponent { @@ -70,7 +70,7 @@ export struct HorizontalStrokeCardThreeTwoRadioForMoreComponent {
70 .textAlign(TextAlign.Start) 70 .textAlign(TextAlign.Start)
71 .margin({ top: 8 }) 71 .margin({ top: 8 })
72 .width(150) 72 .width(150)
73 - .lineHeight(17) 73 + .lineHeight(19)
74 } 74 }
75 } 75 }
76 .padding({ left: (index == 0) ? 16 : 0, right: (index == this.compDTO.operDataList.length - 1) ? 16 : 0 }) 76 .padding({ left: (index == 0) ? 16 : 0, right: (index == this.compDTO.operDataList.length - 1) ? 16 : 0 })
@@ -49,7 +49,6 @@ export class RefreshConstants { @@ -49,7 +49,6 @@ export class RefreshConstants {
49 static readonly NoMoreLayoutConstant_NORMAL_PADDING: number = 8; 49 static readonly NoMoreLayoutConstant_NORMAL_PADDING: number = 8;
50 static readonly NoMoreLayoutConstant_TITLE_FONT: string = '16vp'; 50 static readonly NoMoreLayoutConstant_TITLE_FONT: string = '16vp';
51 static readonly NoMoreLayoutConstant_TITLE_COLOR: string = '#666666'; 51 static readonly NoMoreLayoutConstant_TITLE_COLOR: string = '#666666';
52 - static readonly NoMoreLayoutConstant_MARGIN_BOTTOM: number = 40;  
53 /** 52 /**
54 * The RefreshLayout constants. 53 * The RefreshLayout constants.
55 */ 54 */