yuzhilin

详情推荐优化

@@ -82,7 +82,6 @@ export struct WdWebLocalComponent { @@ -82,7 +82,6 @@ export struct WdWebLocalComponent {
82 82
83 //webview 高度设置 83 //webview 高度设置
84 private setCurrentPageOperate: (data: Message) => void = (data) => { 84 private setCurrentPageOperate: (data: Message) => void = (data) => {
85 - console.log("setCurrentPageOperate", JSON.stringify(data))  
86 if (data.handlerName === H5CallNativeType.jsCall_currentPageOperate && data?.data?.operateType === '8') { 85 if (data.handlerName === H5CallNativeType.jsCall_currentPageOperate && data?.data?.operateType === '8') {
87 if (typeof this.webHeight === 'number') { 86 if (typeof this.webHeight === 'number') {
88 if (Number(data?.data?.webViewHeight) > this.webHeight) { 87 if (Number(data?.data?.webViewHeight) > this.webHeight) {
@@ -30,7 +30,10 @@ export struct CompParser { @@ -30,7 +30,10 @@ export struct CompParser {
30 compIndex: number = 0; 30 compIndex: number = 0;
31 31
32 build() { 32 build() {
33 - this.componentBuilder(this.compDTO, this.compIndex); 33 + Column(){
  34 + this.componentBuilder(this.compDTO, this.compIndex);
  35 + Divider().strokeWidth(1).color('#f5f5f5').padding({left:16,right:16})
  36 + }
34 } 37 }
35 38
36 @Builder 39 @Builder
@@ -30,10 +30,10 @@ export struct RecommendList { @@ -30,10 +30,10 @@ export struct RecommendList {
30 ForEach(this.recommendList, (item: ContentDTO, index: number) => { 30 ForEach(this.recommendList, (item: ContentDTO, index: number) => {
31 Row() { 31 Row() {
32 CardParser({ contentDTO: item }); 32 CardParser({ contentDTO: item });
33 - }.border({  
34 - width: { bottom: this.recommendList.length === index + 1 ? 0 : 1 },  
35 - color: '#f5f5f5'  
36 - }) 33 + }
  34 + if (this.recommendList.length !== index + 1) {
  35 + Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 })
  36 + }
37 }, (item: ContentDTO) => JSON.stringify(item)) 37 }, (item: ContentDTO) => JSON.stringify(item))
38 }.width('100%') 38 }.width('100%')
39 } 39 }
@@ -7,6 +7,7 @@ @@ -7,6 +7,7 @@
7 "pages/MorningEveningPaperPage", 7 "pages/MorningEveningPaperPage",
8 "pages/detail/AudioDetail", 8 "pages/detail/AudioDetail",
9 "pages/detail/MultiPictureDetailPage", 9 "pages/detail/MultiPictureDetailPage",
  10 + "pages/detail/DynamicDetailPage",
10 "pages/launchPage/PrivacyPage", 11 "pages/launchPage/PrivacyPage",
11 "pages/launchPage/LaunchPage", 12 "pages/launchPage/LaunchPage",
12 "pages/launchPage/LaunchAdvertisingPage", 13 "pages/launchPage/LaunchAdvertisingPage",