yangchenggong1_wd

fix |> 20634 搜索结果,分割线重叠展示,中间变粗

@@ -88,6 +88,7 @@ export struct CardParser { @@ -88,6 +88,7 @@ export struct CardParser {
88 pageId: this.pageId, 88 pageId: this.pageId,
89 pageName: this.pageName 89 pageName: this.pageName
90 }) 90 })
  91 + this.getBehindDivider()
91 } else { 92 } else {
92 if (contentDTO.appStyle === CompStyle.Card_02) { 93 if (contentDTO.appStyle === CompStyle.Card_02) {
93 Card2Component({ 94 Card2Component({
@@ -27,14 +27,17 @@ export struct MoreComponent { @@ -27,14 +27,17 @@ export struct MoreComponent {
27 if (item.appStyle !== "9") { 27 if (item.appStyle !== "9") {
28 CardParser({compDTO:new CompDTO, contentDTO: item }) 28 CardParser({compDTO:new CompDTO, contentDTO: item })
29 } else { 29 } else {
30 - Card9Component({ compDTO: new CompDTO, contentDTO:item, pageId: "", pageName: "" }) 30 + Column(){
  31 + Card9Component({ compDTO: new CompDTO, contentDTO:item, pageId: "", pageName: "" })
  32 +
  33 + Divider()
  34 + .width('100%')
  35 + .color($r('app.color.color_F5F5F5'))
  36 + .strokeWidth(4)
  37 + }
31 } 38 }
32 }) 39 })
33 40
34 - Divider()  
35 - .width('100%')  
36 - .color($r('app.color.color_F5F5F5'))  
37 - .strokeWidth(4)  
38 41
39 } else { 42 } else {
40 Column() { 43 Column() {
@@ -115,13 +115,6 @@ export struct SearchResultComponent { @@ -115,13 +115,6 @@ export struct SearchResultComponent {
115 ListItem() { 115 ListItem() {
116 Column() { 116 Column() {
117 CardParser({compDTO:new CompDTO,contentDTO:item}) 117 CardParser({compDTO:new CompDTO,contentDTO:item})
118 - if (index != this.data.totalCount() - 1) {  
119 - Divider()  
120 - .width('100%')  
121 - .height(`${this.calcHeight(1)}lpx`)  
122 - .color($r('app.color.color_F5F5F5'))  
123 - .strokeWidth(`${this.calcHeight(1)}lpx`)  
124 - }  
125 } 118 }
126 } 119 }
127 }) 120 })
@@ -310,18 +310,8 @@ export struct SearchResultContentComponent { @@ -310,18 +310,8 @@ export struct SearchResultContentComponent {
310 Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 }) 310 Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 })
311 } 311 }
312 } else { 312 } else {
313 - if (this.data?.get(index + 1)?.sameContentListSize > 0 && index !== 0) {  
314 - Divider()  
315 - .width('100%')  
316 - .color($r('app.color.color_F5F5F5'))  
317 - .strokeWidth(4)  
318 - }  
319 CardParser({ compDTO: new CompDTO, contentDTO: item }) 313 CardParser({ compDTO: new CompDTO, contentDTO: item })
320 } 314 }
321 - if (index != this.data.totalCount() - 1) {  
322 - Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 })  
323 -  
324 - }  
325 } 315 }
326 } 316 }
327 }, (item: ContentDTO, index: number) => index.toString()) 317 }, (item: ContentDTO, index: number) => index.toString())