liyubing

feat:

1)恢复稿件和组件细线分割线
@@ -13,7 +13,7 @@ export class HttpUrlUtils { @@ -13,7 +13,7 @@ export class HttpUrlUtils {
13 */ 13 */
14 static readonly BOTTOM_NAV_PATH: string = "/api/rmrb-bff-display-zh/display/zh/c/bottomNavGroup"; 14 static readonly BOTTOM_NAV_PATH: string = "/api/rmrb-bff-display-zh/display/zh/c/bottomNavGroup";
15 /** 15 /**
16 - * 导详情接口 16 + * 导详情接口
17 */ 17 */
18 static readonly BOTTOM_NAV_DETAIL_PATH: string = "/api/rmrb-bff-display-zh/display/zh/c/bottomNavGroup/detail"; 18 static readonly BOTTOM_NAV_DETAIL_PATH: string = "/api/rmrb-bff-display-zh/display/zh/c/bottomNavGroup/detail";
19 /** 19 /**
@@ -87,7 +87,7 @@ export struct CompParser { @@ -87,7 +87,7 @@ export struct CompParser {
87 this.compDTO.operDataList[0]?.objectType !== '13') { //暂时屏蔽活动和音频详情入口 87 this.compDTO.operDataList[0]?.objectType !== '13') { //暂时屏蔽活动和音频详情入口
88 if (this.compDTO.compStyle === CompStyle.Label_03) { 88 if (this.compDTO.compStyle === CompStyle.Label_03) {
89 LabelComponent({ compDTO: this.compDTO }) 89 LabelComponent({ compDTO: this.compDTO })
90 - Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 }) 90 + Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 0, right: 0 })
91 } else if (this.compDTO.compStyle === CompStyle.Zh_Carousel_Layout_01) { 91 } else if (this.compDTO.compStyle === CompStyle.Zh_Carousel_Layout_01) {
92 if (this.compDTO.operDataList.length > this.audioItems.length) { 92 if (this.compDTO.operDataList.length > this.audioItems.length) {
93 ZhCarouselLayout01({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName }) 93 ZhCarouselLayout01({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName })
@@ -104,7 +104,7 @@ export struct CompParser { @@ -104,7 +104,7 @@ export struct CompParser {
104 } else { 104 } else {
105 HorizontalStrokeCardThreeTwoRadioForOneComponent({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName }) 105 HorizontalStrokeCardThreeTwoRadioForOneComponent({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName })
106 } 106 }
107 - Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 }) 107 + Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 0, right: 0 })
108 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_02) { 108 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_02) {
109 ZhSingleRow02({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName }) 109 ZhSingleRow02({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName })
110 Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 }) 110 Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 })
@@ -121,20 +121,20 @@ export struct CompParser { @@ -121,20 +121,20 @@ export struct CompParser {
121 121
122 } else if (this.compDTO.compStyle === CompStyle.Zh_Grid_Layout_03) { 122 } else if (this.compDTO.compStyle === CompStyle.Zh_Grid_Layout_03) {
123 ZhGridLayout03({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName }) 123 ZhGridLayout03({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName })
124 - Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 }) 124 + Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 0, right: 0 })
125 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_04) { 125 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_04) {
126 ZhSingleRow04({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName }) 126 ZhSingleRow04({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName })
127 - Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 }) 127 + Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 0, right: 0 })
128 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_05) { 128 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_05) {
129 // ZhSingleRow05({ compDTO }) 129 // ZhSingleRow05({ compDTO })
130 // Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 }) 130 // Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 })
131 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_06) { 131 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Row_06) {
132 ZhSingleRow06({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName }) 132 ZhSingleRow06({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName })
133 - Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 }) 133 + Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 0, right: 0 })
134 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_02) { 134 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_02) {
135 //头图卡 和comStyle 2相同, 135 //头图卡 和comStyle 2相同,
136 Card5Component({ compDTO: this.compDTO, contentDTO: this.compDTO.operDataList[0], titleShowPolicy: this.compDTO.titleShowPolicy, pageId: this.pageId, pageName: this.pageName }) 136 Card5Component({ compDTO: this.compDTO, contentDTO: this.compDTO.operDataList[0], titleShowPolicy: this.compDTO.titleShowPolicy, pageId: this.pageId, pageName: this.pageName })
137 - Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 }) 137 + Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 0, right: 0 })
138 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_03) { 138 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_03) {
139 // 大图卡 139 // 大图卡
140 Card2Component({ compDTO: this.compDTO, contentDTO: this.compDTO.operDataList[0], pageId: this.pageId, pageName: this.pageName }) 140 Card2Component({ compDTO: this.compDTO, contentDTO: this.compDTO.operDataList[0], pageId: this.pageId, pageName: this.pageName })
@@ -142,28 +142,28 @@ export struct CompParser { @@ -142,28 +142,28 @@ export struct CompParser {
142 } else if (this.compDTO.compStyle === CompStyle.Card_09) { 142 } else if (this.compDTO.compStyle === CompStyle.Card_09) {
143 //时间链卡 143 //时间链卡
144 Card9Component({ compDTO: this.compDTO, contentDTO:this.compDTO.operDataList[0], pageId: this.pageId, pageName: this.pageName }) 144 Card9Component({ compDTO: this.compDTO, contentDTO:this.compDTO.operDataList[0], pageId: this.pageId, pageName: this.pageName })
145 - Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 }) 145 + Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 })
146 } else if(this.compDTO.compStyle === CompStyle.Card_13){ 146 } else if(this.compDTO.compStyle === CompStyle.Card_13){
147 Card6Component({ compDTO: this.compDTO, contentDTO: this.compDTO.operDataList[0], pageId: this.pageId, pageName: this.pageName }) 147 Card6Component({ compDTO: this.compDTO, contentDTO: this.compDTO.operDataList[0], pageId: this.pageId, pageName: this.pageName })
148 - Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 }) 148 + Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 })
149 } else if(this.compDTO.compStyle === CompStyle.Card_03){ 149 } else if(this.compDTO.compStyle === CompStyle.Card_03){
150 Card3Component({ compDTO: this.compDTO, contentDTO: this.compDTO.operDataList[0], pageId: this.pageId, pageName: this.pageName }) 150 Card3Component({ compDTO: this.compDTO, contentDTO: this.compDTO.operDataList[0], pageId: this.pageId, pageName: this.pageName })
151 - Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 }) 151 + Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 })
152 }else if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_04) { 152 }else if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_04) {
153 ZhSingleColumn04({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName }) 153 ZhSingleColumn04({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName })
154 - Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 }) 154 + Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 })
155 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_05) { 155 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_05) {
156 // ZhSingleColumn05({ compDTO: compDTO }) 156 // ZhSingleColumn05({ compDTO: compDTO })
157 // Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 }) 157 // Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 })
158 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_09) { 158 } else if (this.compDTO.compStyle === CompStyle.Zh_Single_Column_09) {
159 - Divider().strokeWidth(3).color('#ffffff').padding({ left: 0, right: 0 }).margin({ top: -3 })  
160 - Divider().strokeWidth(6).color('#f5f5f5') 159 + // Divider().strokeWidth(3).color('#ffffff').padding({ left: 0, right: 0 }).margin({ top: -3 })
  160 + // Divider().strokeWidth(6).color('#f5f5f5')
161 ZhSingleColumn09({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName }) 161 ZhSingleColumn09({ compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName })
162 - Divider().strokeWidth(6).color('#f5f5f5') 162 + Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 })
163 } else if (this.compDTO.compStyle === CompStyle.Card_Comp_Adv) { // 广告 163 } else if (this.compDTO.compStyle === CompStyle.Card_Comp_Adv) { // 广告
164 AdvCardParser({ pageModel: this.pageModel, compDTO: this.compDTO }) 164 AdvCardParser({ pageModel: this.pageModel, compDTO: this.compDTO })
165 //Text(`compIndex = ${compIndex}`).width('100%').fontSize('12fp').fontColor(Color.Red).padding({ left: 0, right: 0 }) 165 //Text(`compIndex = ${compIndex}`).width('100%').fontSize('12fp').fontColor(Color.Red).padding({ left: 0, right: 0 })
166 - Divider().strokeWidth(5).color('#f5f5f5').padding({ left: 0, right: 0 }) 166 + Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 })
167 } else if (!Number.isNaN(Number(this.compDTO.compStyle))) { 167 } else if (!Number.isNaN(Number(this.compDTO.compStyle))) {
168 CardParser({ contentDTO: this.compDTO.operDataList[0], compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName }); 168 CardParser({ contentDTO: this.compDTO.operDataList[0], compDTO: this.compDTO, pageId: this.pageId, pageName: this.pageName });
169 Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 }) 169 Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 })
1 -import { BottomNavi, CommonConstants, DisplayDirection } from 'wdConstant';  
2 -import { BottomNavDTO, NavigationBodyDTO, NavigationDetailDTO, TopNavDTO } from 'wdBean';  
3 -import { EmitterEventId, EmitterUtils, Logger, StringUtils } from 'wdKit'; 1 +import { BottomNavi, DisplayDirection } from 'wdConstant';
  2 +import { BottomNavDTO, NavigationBodyDTO, TopNavDTO } from 'wdBean';
  3 +import { EmitterEventId, EmitterUtils, Logger } from 'wdKit';
4 import { HttpUtils } from 'wdNetwork/Index'; 4 import { HttpUtils } from 'wdNetwork/Index';
5 import HomeChannelUtils, { AssignChannelParam } from 'wdRouter/Index'; 5 import HomeChannelUtils, { AssignChannelParam } from 'wdRouter/Index';
6 import { MinePageComponent } from 'wdComponent/src/main/ets/components/page/MinePageComponent'; 6 import { MinePageComponent } from 'wdComponent/src/main/ets/components/page/MinePageComponent';
7 import { CompUtils, TopNavigationComponentNew } from 'wdComponent/Index'; 7 import { CompUtils, TopNavigationComponentNew } from 'wdComponent/Index';
8 import { VideoChannelPage } from './VideoChannelPage'; 8 import { VideoChannelPage } from './VideoChannelPage';
9 import ChannelViewModel from 'wdComponent/src/main/ets/viewmodel/ChannelViewModel'; 9 import ChannelViewModel from 'wdComponent/src/main/ets/viewmodel/ChannelViewModel';
10 -import { ALL, ImageKnifeComponent, ImageKnifeOption, NONE } from '@ohos/imageknife'; 10 +import { ALL, ImageKnifeComponent, ImageKnifeOption } from '@ohos/imageknife';
11 import { ParamType, Tracking } from 'wdTracking/Index'; 11 import { ParamType, Tracking } from 'wdTracking/Index';
12 12
13 const TAG = 'BottomNavigationComponent'; 13 const TAG = 'BottomNavigationComponent';
@@ -102,7 +102,6 @@ export struct BottomNavigationComponent { @@ -102,7 +102,6 @@ export struct BottomNavigationComponent {
102 } 102 }
103 .tabBar(this.tabBarBuilder(navItem, index)) 103 .tabBar(this.tabBarBuilder(navItem, index))
104 104
105 - // .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP])  
106 }); 105 });
107 106
108 } 107 }