Merge branch 'main' of http://192.168.1.42/developOne/harmonyPool
Showing
25 changed files
with
469 additions
and
56 deletions
| 1 | +{ | ||
| 2 | + "float": [ | ||
| 3 | + { | ||
| 4 | + "name": "font_size_10", | ||
| 5 | + "value": "10fp" | ||
| 6 | + }, | ||
| 7 | + { | ||
| 8 | + "name": "font_size_11", | ||
| 9 | + "value": "11fp" | ||
| 10 | + }, | ||
| 11 | + { | ||
| 12 | + "name": "font_size_12", | ||
| 13 | + "value": "12fp" | ||
| 14 | + }, | ||
| 15 | + { | ||
| 16 | + "name": "font_size_13", | ||
| 17 | + "value": "13fp" | ||
| 18 | + }, | ||
| 19 | + { | ||
| 20 | + "name": "font_size_14", | ||
| 21 | + "value": "14fp" | ||
| 22 | + }, | ||
| 23 | + { | ||
| 24 | + "name": "font_size_16", | ||
| 25 | + "value": "16fp" | ||
| 26 | + }, | ||
| 27 | + { | ||
| 28 | + "name": "normal_text_size", | ||
| 29 | + "value": "16fp" | ||
| 30 | + }, | ||
| 31 | + { | ||
| 32 | + "name": "font_size_17", | ||
| 33 | + "value": "17fp" | ||
| 34 | + }, | ||
| 35 | + { | ||
| 36 | + "name": "selected_text_size", | ||
| 37 | + "value": "17vp" | ||
| 38 | + }, | ||
| 39 | + { | ||
| 40 | + "name": "font_size_18", | ||
| 41 | + "value": "18fp" | ||
| 42 | + }, | ||
| 43 | + { | ||
| 44 | + "name": "font_size_24", | ||
| 45 | + "value": "24fp" | ||
| 46 | + }, | ||
| 47 | + { | ||
| 48 | + "name": "font_size_20", | ||
| 49 | + "value": "20fp" | ||
| 50 | + }, | ||
| 51 | + { | ||
| 52 | + "name": "font_size_36", | ||
| 53 | + "value": "36fp" | ||
| 54 | + }, | ||
| 55 | + { | ||
| 56 | + "name": "margin_4_negative", | ||
| 57 | + "value": "-4vp" | ||
| 58 | + }, | ||
| 59 | + { | ||
| 60 | + "name": "margin_6_negative", | ||
| 61 | + "value": "-6vp" | ||
| 62 | + }, | ||
| 63 | + { | ||
| 64 | + "name": "main_margin", | ||
| 65 | + "value": "14vp" | ||
| 66 | + }, | ||
| 67 | + { | ||
| 68 | + "name": "margin_4", | ||
| 69 | + "value": "4vp" | ||
| 70 | + }, | ||
| 71 | + { | ||
| 72 | + "name": "margin_8", | ||
| 73 | + "value": "8vp" | ||
| 74 | + }, | ||
| 75 | + { | ||
| 76 | + "name": "margin_9", | ||
| 77 | + "value": "9vp" | ||
| 78 | + }, | ||
| 79 | + { | ||
| 80 | + "name": "label_margin_top", | ||
| 81 | + "value": "10vp" | ||
| 82 | + }, | ||
| 83 | + { | ||
| 84 | + "name": "margin_12", | ||
| 85 | + "value": "12vp" | ||
| 86 | + }, | ||
| 87 | + { | ||
| 88 | + "name": "margin_bottom_16", | ||
| 89 | + "value": "16vp" | ||
| 90 | + }, | ||
| 91 | + { | ||
| 92 | + "name": "label_margin_bottom", | ||
| 93 | + "value": "8vp" | ||
| 94 | + }, | ||
| 95 | + { | ||
| 96 | + "name": "single_row_03_item_width", | ||
| 97 | + "value": "158vp" | ||
| 98 | + }, | ||
| 99 | + { | ||
| 100 | + "name": "single_row_03_item_height", | ||
| 101 | + "value": "160vp" | ||
| 102 | + }, | ||
| 103 | + { | ||
| 104 | + "name": "margin_80", | ||
| 105 | + "value": "80vp" | ||
| 106 | + }, | ||
| 107 | + { | ||
| 108 | + "name": "margin_2", | ||
| 109 | + "value": "2vp" | ||
| 110 | + }, | ||
| 111 | + { | ||
| 112 | + "name": "margin_5", | ||
| 113 | + "value": "5vp" | ||
| 114 | + }, | ||
| 115 | + { | ||
| 116 | + "name": "margin_7", | ||
| 117 | + "value": "7vp" | ||
| 118 | + }, | ||
| 119 | + { | ||
| 120 | + "name": "margin_20", | ||
| 121 | + "value": "20vp" | ||
| 122 | + }, | ||
| 123 | + { | ||
| 124 | + "name": "margin_24", | ||
| 125 | + "value": "24vp" | ||
| 126 | + }, | ||
| 127 | + { | ||
| 128 | + "name": "margin_25", | ||
| 129 | + "value": "25vp" | ||
| 130 | + }, | ||
| 131 | + { | ||
| 132 | + "name": "margin_28", | ||
| 133 | + "value": "28vp" | ||
| 134 | + }, | ||
| 135 | + { | ||
| 136 | + "name": "margin_40", | ||
| 137 | + "value": "40vp" | ||
| 138 | + }, | ||
| 139 | + { | ||
| 140 | + "name": "margin_48", | ||
| 141 | + "value": "48vp" | ||
| 142 | + }, | ||
| 143 | + { | ||
| 144 | + "name": "margin_54", | ||
| 145 | + "value": "54vp" | ||
| 146 | + }, | ||
| 147 | + { | ||
| 148 | + "name": "margin_60", | ||
| 149 | + "value": "60vp" | ||
| 150 | + }, | ||
| 151 | + { | ||
| 152 | + "name": "margin_154", | ||
| 153 | + "value": "154vp" | ||
| 154 | + }, | ||
| 155 | + { | ||
| 156 | + "name": "single_row_03_img_height", | ||
| 157 | + "value": "88vp" | ||
| 158 | + }, | ||
| 159 | + { | ||
| 160 | + "name": "image_border_radius", | ||
| 161 | + "value": "5vp" | ||
| 162 | + }, | ||
| 163 | + { | ||
| 164 | + "name": "button_border_radius", | ||
| 165 | + "value": "3vp" | ||
| 166 | + }, | ||
| 167 | + { | ||
| 168 | + "name": "border_radius_6", | ||
| 169 | + "value": "6vp" | ||
| 170 | + }, | ||
| 171 | + { | ||
| 172 | + "name": "bottom_navigation_margin_bottom", | ||
| 173 | + "value": "4vp" | ||
| 174 | + }, | ||
| 175 | + { | ||
| 176 | + "name": "bottom_navigation_barHeight", | ||
| 177 | + "value": "50vp" | ||
| 178 | + }, | ||
| 179 | + { | ||
| 180 | + "name": "top_tab_bar_height", | ||
| 181 | + "value": "40vp" | ||
| 182 | + }, | ||
| 183 | + { | ||
| 184 | + "name": "top_tab_item_max_width", | ||
| 185 | + "value": "300vp" | ||
| 186 | + }, | ||
| 187 | + { | ||
| 188 | + "name": "top_tab_item_min_width", | ||
| 189 | + "value": "20vp" | ||
| 190 | + }, | ||
| 191 | + { | ||
| 192 | + "name": "top_tab_item_padding_horizontal", | ||
| 193 | + "value": "7vp" | ||
| 194 | + }, | ||
| 195 | + { | ||
| 196 | + "name": "top_tab_item_padding_bottom", | ||
| 197 | + "value": "2vp" | ||
| 198 | + }, | ||
| 199 | + { | ||
| 200 | + "name": "top_tab_item_padding_top", | ||
| 201 | + "value": "5vp" | ||
| 202 | + }, | ||
| 203 | + { | ||
| 204 | + "name": "top_bar_height", | ||
| 205 | + "value": "44vp" | ||
| 206 | + }, | ||
| 207 | + { | ||
| 208 | + "name": "top_arrow_size", | ||
| 209 | + "value": "24vp" | ||
| 210 | + }, | ||
| 211 | + { | ||
| 212 | + "name": "margin_1", | ||
| 213 | + "value": "1vp" | ||
| 214 | + }, | ||
| 215 | + { | ||
| 216 | + "name": "margin_6", | ||
| 217 | + "value": "6vp" | ||
| 218 | + }, | ||
| 219 | + { | ||
| 220 | + "name": "margin_16", | ||
| 221 | + "value": "16vp" | ||
| 222 | + }, | ||
| 223 | + { | ||
| 224 | + "name": "vp_20", | ||
| 225 | + "value": "20vp" | ||
| 226 | + }, | ||
| 227 | + { | ||
| 228 | + "name": "margin_32", | ||
| 229 | + "value": "32vp" | ||
| 230 | + }, | ||
| 231 | + { | ||
| 232 | + "name": "margin_36", | ||
| 233 | + "value": "36vp" | ||
| 234 | + }, | ||
| 235 | + { | ||
| 236 | + "name": "margin_44", | ||
| 237 | + "value": "44vp" | ||
| 238 | + }, | ||
| 239 | + { | ||
| 240 | + "name": "vp_3", | ||
| 241 | + "value": "3vp" | ||
| 242 | + }, | ||
| 243 | + { | ||
| 244 | + "name": "vp_2", | ||
| 245 | + "value": "2vp" | ||
| 246 | + }, | ||
| 247 | + { | ||
| 248 | + "name": "vp_55", | ||
| 249 | + "value": "55vp" | ||
| 250 | + }, | ||
| 251 | + { | ||
| 252 | + "name": "vp_12", | ||
| 253 | + "value": "12vp" | ||
| 254 | + }, | ||
| 255 | + { | ||
| 256 | + "name": "vp_4", | ||
| 257 | + "value": "4vp" | ||
| 258 | + }, | ||
| 259 | + { | ||
| 260 | + "name": "vp_8", | ||
| 261 | + "value": "8vp" | ||
| 262 | + }, | ||
| 263 | + { | ||
| 264 | + "name": "vp_16", | ||
| 265 | + "value": "16vp" | ||
| 266 | + }, | ||
| 267 | + { | ||
| 268 | + "name": "vp_28", | ||
| 269 | + "value": "28vp" | ||
| 270 | + }, | ||
| 271 | + { | ||
| 272 | + "name": "vp_80", | ||
| 273 | + "value": "80vp" | ||
| 274 | + }, | ||
| 275 | + { | ||
| 276 | + "name": "card_comp_pagePadding_lf", | ||
| 277 | + "value": "16fp" | ||
| 278 | + }, | ||
| 279 | + { | ||
| 280 | + "name": "card_comp_pagePadding_tb", | ||
| 281 | + "value": "14fp" | ||
| 282 | + }, | ||
| 283 | + { | ||
| 284 | + "name": "margin_116", | ||
| 285 | + "value": "116vp" | ||
| 286 | + }, | ||
| 287 | + { | ||
| 288 | + "name": "vp_11", | ||
| 289 | + "value": "11vp" | ||
| 290 | + }, | ||
| 291 | + { | ||
| 292 | + "name": "vp_22", | ||
| 293 | + "value": "22vp" | ||
| 294 | + }, | ||
| 295 | + { | ||
| 296 | + "name": "vp_14", | ||
| 297 | + "value": "14vp" | ||
| 298 | + }, | ||
| 299 | + { | ||
| 300 | + "name": "vp_15", | ||
| 301 | + "value": "15vp" | ||
| 302 | + }, | ||
| 303 | + { | ||
| 304 | + "name": "vp_18", | ||
| 305 | + "value": "18vp" | ||
| 306 | + }, | ||
| 307 | + { | ||
| 308 | + "name": "vp_13", | ||
| 309 | + "value": "13vp" | ||
| 310 | + }, | ||
| 311 | + { | ||
| 312 | + "name": "margin_115", | ||
| 313 | + "value": "115vp" | ||
| 314 | + } | ||
| 315 | + ] | ||
| 316 | +} |
259 Bytes
1.1 KB
| @@ -64,6 +64,7 @@ export const enum CompStyle { | @@ -64,6 +64,7 @@ export const enum CompStyle { | ||
| 64 | Card_21 = '21', // 小视频卡人民号 | 64 | Card_21 = '21', // 小视频卡人民号 |
| 65 | Card_22 = '22', // 时间链 | 65 | Card_22 = '22', // 时间链 |
| 66 | Card_23 = '23', // 问政卡 | 66 | Card_23 = '23', // 问政卡 |
| 67 | + More_Comp= 'More_Comp', // 点击查看更多相似 | ||
| 67 | 68 | ||
| 68 | 69 | ||
| 69 | 70 |
| @@ -12,8 +12,6 @@ export { LoadingComponent } from "./src/main/ets/components/view/LoadingComponen | @@ -12,8 +12,6 @@ export { LoadingComponent } from "./src/main/ets/components/view/LoadingComponen | ||
| 12 | 12 | ||
| 13 | export { PageComponent } from "./src/main/ets/components/page/PageComponent" | 13 | export { PageComponent } from "./src/main/ets/components/page/PageComponent" |
| 14 | 14 | ||
| 15 | -export { BottomNavigationComponent } from "./src/main/ets/components/page/BottomNavigationComponent" | ||
| 16 | - | ||
| 17 | export { LikeComponent } from "./src/main/ets/components/view/LikeComponent" | 15 | export { LikeComponent } from "./src/main/ets/components/view/LikeComponent" |
| 18 | 16 | ||
| 19 | export { TopNavigationComponent } from "./src/main/ets/components/page/TopNavigationComponent" | 17 | export { TopNavigationComponent } from "./src/main/ets/components/page/TopNavigationComponent" |
| @@ -51,8 +49,6 @@ export { DetailViewModel } from "./src/main/ets/viewmodel/DetailViewModel" | @@ -51,8 +49,6 @@ export { DetailViewModel } from "./src/main/ets/viewmodel/DetailViewModel" | ||
| 51 | 49 | ||
| 52 | export { BigPicCardComponent } from "./src/main/ets/components/view/BigPicCardComponent" | 50 | export { BigPicCardComponent } from "./src/main/ets/components/view/BigPicCardComponent" |
| 53 | 51 | ||
| 54 | -export { MultiPictureDetailPageComponent } from "./src/main/ets/components/MultiPictureDetailPageComponent" | ||
| 55 | - | ||
| 56 | export { AudioDetailComponent } from "./src/main/ets/components/AudioDetailComponent" | 52 | export { AudioDetailComponent } from "./src/main/ets/components/AudioDetailComponent" |
| 57 | 53 | ||
| 58 | export { DynamicDetailComponent } from "./src/main/ets/components/DynamicDetailComponent" | 54 | export { DynamicDetailComponent } from "./src/main/ets/components/DynamicDetailComponent" |
| @@ -89,3 +85,14 @@ export { LiveFollowComponent } from "./src/main/ets/components/cardCommon/LiveFo | @@ -89,3 +85,14 @@ export { LiveFollowComponent } from "./src/main/ets/components/cardCommon/LiveFo | ||
| 89 | 85 | ||
| 90 | export { publishCommentModel } from './src/main/ets/components/comment/model/PublishCommentModel'; | 86 | export { publishCommentModel } from './src/main/ets/components/comment/model/PublishCommentModel'; |
| 91 | 87 | ||
| 88 | +export { MultiPictureDetailItemComponent } from './src/main/ets/components/MultiPictureDetailItemComponent'; | ||
| 89 | + | ||
| 90 | +export { OperRowListView } from './src/main/ets/components/view/OperRowListView'; | ||
| 91 | + | ||
| 92 | +export { ImageDownloadComponent } from './src/main/ets/components/ImageDownloadComponent'; | ||
| 93 | + | ||
| 94 | +export { PageRepository } from './src/main/ets/repository/PageRepository'; | ||
| 95 | + | ||
| 96 | +export { MultiPictureDetailViewModel } from './src/main/ets/viewmodel/MultiPictureDetailViewModel'; | ||
| 97 | + | ||
| 98 | +export { viewBlogItemInsightIntentShare } from './src/main/ets/utils/InsightIntentShare'; |
| @@ -14,7 +14,6 @@ | @@ -14,7 +14,6 @@ | ||
| 14 | "wdKit": "file:../../commons/wdKit", | 14 | "wdKit": "file:../../commons/wdKit", |
| 15 | "wdWebComponent": "file:../../commons/wdWebComponent", | 15 | "wdWebComponent": "file:../../commons/wdWebComponent", |
| 16 | "wdBean": "file:../../features/wdBean", | 16 | "wdBean": "file:../../features/wdBean", |
| 17 | - "wdDetailPlayShortVideo": "file:../../features/wdDetailPlayShortVideo", | ||
| 18 | "wdRouter": "file:../../commons/wdRouter", | 17 | "wdRouter": "file:../../commons/wdRouter", |
| 19 | "wdNetwork": "file:../../commons/wdNetwork", | 18 | "wdNetwork": "file:../../commons/wdNetwork", |
| 20 | "wdJsBridge": "file:../../commons/wdJsBridge", | 19 | "wdJsBridge": "file:../../commons/wdJsBridge", |
| @@ -278,6 +278,7 @@ export struct FeedBackActivity { | @@ -278,6 +278,7 @@ export struct FeedBackActivity { | ||
| 278 | // 其中包含Array<string>类型的photoUris,为返回图库选择后的媒体文件的uri数组;还包含boolean类型的isOriginalPhoto,指示返回图库选择后的媒体文件是否为原图。 | 278 | // 其中包含Array<string>类型的photoUris,为返回图库选择后的媒体文件的uri数组;还包含boolean类型的isOriginalPhoto,指示返回图库选择后的媒体文件是否为原图。 |
| 279 | // 声明变量array,其取值为PhotoSelectResult中的数组。 | 279 | // 声明变量array,其取值为PhotoSelectResult中的数组。 |
| 280 | array = PhotoSelectResult['photoUris']; | 280 | array = PhotoSelectResult['photoUris']; |
| 281 | + let beforeLen = this.pics.length; | ||
| 281 | let startIndex = this.pics.length-1; | 282 | let startIndex = this.pics.length-1; |
| 282 | let totalLen = this.pics.length+array.length; | 283 | let totalLen = this.pics.length+array.length; |
| 283 | if(totalLen > 3){ | 284 | if(totalLen > 3){ |
| @@ -293,7 +294,7 @@ export struct FeedBackActivity { | @@ -293,7 +294,7 @@ export struct FeedBackActivity { | ||
| 293 | mediaFlag = true; | 294 | mediaFlag = true; |
| 294 | Logger.info(TAG, `select image/video uri: ${value}`); | 295 | Logger.info(TAG, `select image/video uri: ${value}`); |
| 295 | }) | 296 | }) |
| 296 | - if(this.pics.length<3){ | 297 | + if(this.pics.length<=3 && beforeLen != 3 && array.length != 3){ |
| 297 | this.addPic.id = startIndex | 298 | this.addPic.id = startIndex |
| 298 | this.pics[this.pics.length-1]=this.addPic; | 299 | this.pics[this.pics.length-1]=this.addPic; |
| 299 | } | 300 | } |
| 1 | +/** | ||
| 2 | + * More_Comp | ||
| 3 | + */ | ||
| 4 | +const TAG: string = 'Card9Component'; | ||
| 5 | + | ||
| 6 | +@Entry | ||
| 7 | +@Component | ||
| 8 | +export struct MoreComponent { | ||
| 9 | + | ||
| 10 | + build() { | ||
| 11 | + Row() { | ||
| 12 | + Text('点击展开更多相似') | ||
| 13 | + .fontSize(16) | ||
| 14 | + Image($r('app.media.comment_unfold')) | ||
| 15 | + .width(16) | ||
| 16 | + .height(16) | ||
| 17 | + } | ||
| 18 | + .justifyContent(FlexAlign.Center) | ||
| 19 | + .width('100%') | ||
| 20 | + .height(48) | ||
| 21 | + .backgroundColor(0xffffff) | ||
| 22 | + } | ||
| 23 | +} |
| @@ -679,7 +679,7 @@ struct commentFooterView { | @@ -679,7 +679,7 @@ struct commentFooterView { | ||
| 679 | .fontColor($r('app.color.color_666666')) | 679 | .fontColor($r('app.color.color_666666')) |
| 680 | .fontSize(14) | 680 | .fontSize(14) |
| 681 | 681 | ||
| 682 | - Image($r(this.item.api_status ? 'app.media.comment_like_select' : 'app.media.comment_like_normal')) | 682 | + Image(this.item.api_status ? $r('app.media.comment_like_select') : $r('app.media.comment_like_normal')) |
| 683 | .size({ | 683 | .size({ |
| 684 | width: 16, | 684 | width: 16, |
| 685 | height: 16 | 685 | height: 16 |
sight_harmony/features/wdComponent/src/main/ets/components/comment/view/QualityCommentsComponent.ets
| @@ -381,7 +381,7 @@ struct QualityCommentItem { | @@ -381,7 +381,7 @@ struct QualityCommentItem { | ||
| 381 | }) | 381 | }) |
| 382 | 382 | ||
| 383 | Row() { | 383 | Row() { |
| 384 | - Image($r(this.item.api_status ? 'app.media.comment_like_select' : 'app.media.comment_like_normal')) | 384 | + Image(this.item.api_status ? $r('app.media.comment_like_select') : $r('app.media.comment_like_normal')) |
| 385 | .width(16) | 385 | .width(16) |
| 386 | .height(16) | 386 | .height(16) |
| 387 | if (this.item.likeNum && this.item.likeNum != '0') { | 387 | if (this.item.likeNum && this.item.likeNum != '0') { |
| 1 | -import { LazyDataSource, NetworkUtil, StringUtils } from 'wdKit/Index'; | 1 | +import { LazyDataSource, NetworkUtil, StringUtils, ToastUtils } from 'wdKit/Index'; |
| 2 | import { Remark, SubscribeMessageModel, | 2 | import { Remark, SubscribeMessageModel, |
| 3 | WDMessageCenterMessageType } from '../../../../model/InteractMessageModel'; | 3 | WDMessageCenterMessageType } from '../../../../model/InteractMessageModel'; |
| 4 | import MinePageDatasModel from '../../../../model/MinePageDatasModel'; | 4 | import MinePageDatasModel from '../../../../model/MinePageDatasModel'; |
| @@ -88,13 +88,9 @@ export struct SubscribeMessageComponent{ | @@ -88,13 +88,9 @@ export struct SubscribeMessageComponent{ | ||
| 88 | .width('100%') | 88 | .width('100%') |
| 89 | } | 89 | } |
| 90 | 90 | ||
| 91 | - @Builder ListLayout(){ | ||
| 92 | - List({scroller: this.scroller}) { | ||
| 93 | - LazyForEach(this.data, (item: SubscribeMessageModel, index: number) => { | ||
| 94 | - ListItem() { | ||
| 95 | - SubscribeListChildComponent({ item: item }) | ||
| 96 | - }.width('100%') | ||
| 97 | - .onClick(()=>{ | 91 | + jumpDetail(item: SubscribeMessageModel){ |
| 92 | + MinePageDatasModel.getAssertDetailData(item.relId,item.contentId,item.relType).then((value) => { | ||
| 93 | + if(value == "1"){ | ||
| 98 | let action = { | 94 | let action = { |
| 99 | type:item.contentType, | 95 | type:item.contentType, |
| 100 | params:{ | 96 | params:{ |
| @@ -106,6 +102,25 @@ export struct SubscribeMessageComponent{ | @@ -106,6 +102,25 @@ export struct SubscribeMessageComponent{ | ||
| 106 | } | 102 | } |
| 107 | } as Action | 103 | } as Action |
| 108 | WDRouterRule.jumpWithPage(WDRouterPage.detailPlayLiveCommon, action) | 104 | WDRouterRule.jumpWithPage(WDRouterPage.detailPlayLiveCommon, action) |
| 105 | + }else{ | ||
| 106 | + ToastUtils.shortToast("内容不存在") | ||
| 107 | + } | ||
| 108 | + }).catch((err: Error) => { | ||
| 109 | + console.log(TAG, JSON.stringify(err)) | ||
| 110 | + }) | ||
| 111 | + | ||
| 112 | + | ||
| 113 | + | ||
| 114 | + } | ||
| 115 | + | ||
| 116 | + @Builder ListLayout(){ | ||
| 117 | + List({scroller: this.scroller}) { | ||
| 118 | + LazyForEach(this.data, (item: SubscribeMessageModel, index: number) => { | ||
| 119 | + ListItem() { | ||
| 120 | + SubscribeListChildComponent({ item: item }) | ||
| 121 | + }.width('100%') | ||
| 122 | + .onClick(()=>{ | ||
| 123 | + this.jumpDetail(item) | ||
| 109 | }) | 124 | }) |
| 110 | }) | 125 | }) |
| 111 | //没有更多数据 显示提示 | 126 | //没有更多数据 显示提示 |
| @@ -3,7 +3,7 @@ import { PrivacySettingModel } from '../../model/PrivacySettingModel' | @@ -3,7 +3,7 @@ import { PrivacySettingModel } from '../../model/PrivacySettingModel' | ||
| 3 | import { Params } from 'wdBean'; | 3 | import { Params } from 'wdBean'; |
| 4 | import { WDRouterPage, WDRouterRule } from 'wdRouter'; | 4 | import { WDRouterPage, WDRouterRule } from 'wdRouter'; |
| 5 | import { HttpUtils } from 'wdNetwork/Index'; | 5 | import { HttpUtils } from 'wdNetwork/Index'; |
| 6 | -import { TrackingPageBrowse, TrackConstants } from 'wdTracking/Index'; | 6 | +import { TrackingPageBrowse, TrackConstants, TrackingButton } from 'wdTracking/Index'; |
| 7 | 7 | ||
| 8 | const TAG = 'PrivacySettingPage'; | 8 | const TAG = 'PrivacySettingPage'; |
| 9 | const DiyString = '开启个性化推荐' | 9 | const DiyString = '开启个性化推荐' |
| @@ -79,8 +79,19 @@ export struct PrivacySettingPage { | @@ -79,8 +79,19 @@ export struct PrivacySettingPage { | ||
| 79 | } | 79 | } |
| 80 | }.onClick(() => { | 80 | }.onClick(() => { |
| 81 | if (item.privacyName == DiyString) { | 81 | if (item.privacyName == DiyString) { |
| 82 | + trackButtonClick("privacySettingPagePersonalizedRecommendations") | ||
| 82 | return | 83 | return |
| 83 | } | 84 | } |
| 85 | + if(item.privacyName == "相册权限"){ | ||
| 86 | + trackButtonClick("privacySettingPageAlbumPermissions") | ||
| 87 | + }else if(item.privacyName == "相机权限"){ | ||
| 88 | + trackButtonClick("privacySettingPageCameraPermissions") | ||
| 89 | + }else if(item.privacyName == "定位权限"){ | ||
| 90 | + trackButtonClick("privacySettingPageLocationPermissions") | ||
| 91 | + }else if(item.privacyName == "麦克风权限"){ | ||
| 92 | + trackButtonClick("privacySettingPageMicrophonePermissions") | ||
| 93 | + } | ||
| 94 | + | ||
| 84 | if (!item.permission) { | 95 | if (!item.permission) { |
| 85 | //跳转权限设置 | 96 | //跳转权限设置 |
| 86 | const permissionUtil = new PermissionUtil(); | 97 | const permissionUtil = new PermissionUtil(); |
| @@ -213,3 +224,7 @@ struct getTuiJianCell { | @@ -213,3 +224,7 @@ struct getTuiJianCell { | ||
| 213 | .padding({ left: '29lpx', right: '29lpx' }) | 224 | .padding({ left: '29lpx', right: '29lpx' }) |
| 214 | } | 225 | } |
| 215 | } | 226 | } |
| 227 | + | ||
| 228 | +function trackButtonClick(buttonName: string){ | ||
| 229 | + TrackingButton.click(buttonName, TrackConstants.PageName.Privacy_Setting, TrackConstants.PageName.Privacy_Setting) | ||
| 230 | +} |
| @@ -4,7 +4,7 @@ import { AccountAndSecurityLayout } from '../setting/AccountAndSecurityLayout'; | @@ -4,7 +4,7 @@ import { AccountAndSecurityLayout } from '../setting/AccountAndSecurityLayout'; | ||
| 4 | import router from '@ohos.router'; | 4 | import router from '@ohos.router'; |
| 5 | import { Action, Params } from 'wdBean'; | 5 | import { Action, Params } from 'wdBean'; |
| 6 | import { DateTimeUtils } from 'wdKit/Index'; | 6 | import { DateTimeUtils } from 'wdKit/Index'; |
| 7 | -import { TrackingPageBrowse, TrackConstants } from 'wdTracking/Index'; | 7 | +import { TrackingPageBrowse, TrackConstants, TrackingButton } from 'wdTracking/Index'; |
| 8 | 8 | ||
| 9 | @Entry | 9 | @Entry |
| 10 | @Component | 10 | @Component |
| @@ -67,6 +67,4 @@ struct SettingPage { | @@ -67,6 +67,4 @@ struct SettingPage { | ||
| 67 | 67 | ||
| 68 | export { SettingPage }; | 68 | export { SettingPage }; |
| 69 | 69 | ||
| 70 | -/* | ||
| 71 | 70 | ||
| 72 | -* */ |
| 1 | import { Params } from 'wdBean'; | 1 | import { Params } from 'wdBean'; |
| 2 | import { AppUtils, StringUtils } from 'wdKit/Index'; | 2 | import { AppUtils, StringUtils } from 'wdKit/Index'; |
| 3 | import { WDRouterPage, WDRouterRule } from 'wdRouter'; | 3 | import { WDRouterPage, WDRouterRule } from 'wdRouter'; |
| 4 | +import { TrackingButton, TrackConstants } from 'wdTracking/Index'; | ||
| 4 | import { CustomTitleUI } from '../reusable/CustomTitleUI'; | 5 | import { CustomTitleUI } from '../reusable/CustomTitleUI'; |
| 5 | import { EnvironmentCustomDialog } from './EnvironmentCustomDialog'; | 6 | import { EnvironmentCustomDialog } from './EnvironmentCustomDialog'; |
| 6 | 7 | ||
| @@ -58,9 +59,11 @@ export struct AboutPageUI { | @@ -58,9 +59,11 @@ export struct AboutPageUI { | ||
| 58 | this.getArrowCell(item, index) | 59 | this.getArrowCell(item, index) |
| 59 | }.onClick(() => { | 60 | }.onClick(() => { |
| 60 | if (index == 0) { | 61 | if (index == 0) { |
| 62 | + trackButtonClick("aboutPagePrivacyAgreement") | ||
| 61 | let bean = { contentID: "2", pageID: "" } as Params | 63 | let bean = { contentID: "2", pageID: "" } as Params |
| 62 | WDRouterRule.jumpWithPage(WDRouterPage.loginProtocolPage, bean) | 64 | WDRouterRule.jumpWithPage(WDRouterPage.loginProtocolPage, bean) |
| 63 | } else if(index == 1){ | 65 | } else if(index == 1){ |
| 66 | + trackButtonClick("aboutPageUserAgreement") | ||
| 64 | let bean = { contentID: "1", pageID: "" } as Params | 67 | let bean = { contentID: "1", pageID: "" } as Params |
| 65 | WDRouterRule.jumpWithPage(WDRouterPage.loginProtocolPage, bean) | 68 | WDRouterRule.jumpWithPage(WDRouterPage.loginProtocolPage, bean) |
| 66 | }else if(index == 2){ | 69 | }else if(index == 2){ |
| @@ -124,4 +127,8 @@ export struct AboutPageUI { | @@ -124,4 +127,8 @@ export struct AboutPageUI { | ||
| 124 | } | 127 | } |
| 125 | } | 128 | } |
| 126 | 129 | ||
| 130 | +function trackButtonClick(buttonName: string){ | ||
| 131 | + TrackingButton.click(buttonName, TrackConstants.PageName.About, TrackConstants.PageName.About) | ||
| 132 | +} | ||
| 133 | + | ||
| 127 | 134 |
| 1 | - | ||
| 2 | -import { BottomNavi, CommonConstants, SpConstants } from 'wdConstant'; | ||
| 3 | -import { Logger, SPHelper, ToastUtils, UserDataLocal, EmitterEventId, EmitterUtils } from 'wdKit'; | ||
| 4 | -import { TopNavigationComponent } from '../page/TopNavigationComponent'; | ||
| 5 | -import PageViewModel from '../../viewmodel/PageViewModel'; | 1 | +import { SpConstants } from 'wdConstant'; |
| 2 | +import { Logger, SPHelper, ToastUtils, EmitterEventId, EmitterUtils } from 'wdKit'; | ||
| 6 | import {MineMainSettingFunctionItem} from '../../viewmodel/MineMainSettingFunctionItem'; | 3 | import {MineMainSettingFunctionItem} from '../../viewmodel/MineMainSettingFunctionItem'; |
| 7 | import MineSettingDatasModel from '../../model/MineSettingDatasModel'; | 4 | import MineSettingDatasModel from '../../model/MineSettingDatasModel'; |
| 8 | -import storageStatistics from "@ohos.file.storageStatistics"; | ||
| 9 | -import { BusinessError } from '@ohos.base'; | ||
| 10 | -import ArrayList from '@ohos.util.ArrayList'; | ||
| 11 | import router from '@ohos.router'; | 5 | import router from '@ohos.router'; |
| 12 | import { WDRouterPage, WDRouterRule } from 'wdRouter'; | 6 | import { WDRouterPage, WDRouterRule } from 'wdRouter'; |
| 13 | import { Params } from 'wdBean'; | 7 | import { Params } from 'wdBean'; |
| 14 | -import { SettingPasswordParams } from 'wdLogin'; | ||
| 15 | import { LoginViewModel } from 'wdLogin/src/main/ets/pages/login/LoginViewModel'; | 8 | import { LoginViewModel } from 'wdLogin/src/main/ets/pages/login/LoginViewModel'; |
| 16 | -import { Router } from '@ohos.arkui.UIContext'; | ||
| 17 | import promptAction from '@ohos.promptAction'; | 9 | import promptAction from '@ohos.promptAction'; |
| 18 | import { LogoutViewModel } from '../../viewmodel/LogoutViewModel'; | 10 | import { LogoutViewModel } from '../../viewmodel/LogoutViewModel'; |
| 19 | import { CustomLogoutDialog } from './CustomLogoutDialog'; | 11 | import { CustomLogoutDialog } from './CustomLogoutDialog'; |
| 20 | import { emitter } from '@kit.BasicServicesKit'; | 12 | import { emitter } from '@kit.BasicServicesKit'; |
| 21 | import { ConfirmLogoutDialog } from './ConfirmLogoutDialog'; | 13 | import { ConfirmLogoutDialog } from './ConfirmLogoutDialog'; |
| 22 | - | 14 | +import { TrackingButton, TrackConstants } from 'wdTracking/Index'; |
| 23 | export { SettingPasswordParams } from "wdLogin" | 15 | export { SettingPasswordParams } from "wdLogin" |
| 24 | 16 | ||
| 25 | @Component | 17 | @Component |
| @@ -183,9 +175,11 @@ export struct AccountAndSecurityLayout { | @@ -183,9 +175,11 @@ export struct AccountAndSecurityLayout { | ||
| 183 | .onClick(() => { | 175 | .onClick(() => { |
| 184 | console.log(index + "") | 176 | console.log(index + "") |
| 185 | if (index == 0){ | 177 | if (index == 0){ |
| 178 | + trackButtonClick("accountManagementPageChangePhoneNumber") | ||
| 186 | let pageType = {'pageType': 2} as Record<string, number>; | 179 | let pageType = {'pageType': 2} as Record<string, number>; |
| 187 | WDRouterRule.jumpWithPage(WDRouterPage.forgetPasswordPage, pageType) | 180 | WDRouterRule.jumpWithPage(WDRouterPage.forgetPasswordPage, pageType) |
| 188 | }else if (index == 1) { | 181 | }else if (index == 1) { |
| 182 | + trackButtonClick("accountManagementPageAccountManagementPassword") | ||
| 189 | if (this.ifSetPassword) { | 183 | if (this.ifSetPassword) { |
| 190 | //修改密码 | 184 | //修改密码 |
| 191 | WDRouterRule.jumpWithPage(WDRouterPage.modifyPasswordPage) | 185 | WDRouterRule.jumpWithPage(WDRouterPage.modifyPasswordPage) |
| @@ -195,6 +189,7 @@ export struct AccountAndSecurityLayout { | @@ -195,6 +189,7 @@ export struct AccountAndSecurityLayout { | ||
| 195 | WDRouterRule.jumpWithPage(WDRouterPage.forgetPasswordPage, pageType) | 189 | WDRouterRule.jumpWithPage(WDRouterPage.forgetPasswordPage, pageType) |
| 196 | } | 190 | } |
| 197 | }else if (index == 3) { | 191 | }else if (index == 3) { |
| 192 | + trackButtonClick("accountManagementPageAccountCancellation") | ||
| 198 | this.isAccountPage=false | 193 | this.isAccountPage=false |
| 199 | // WDRouterRule.jumpWithPage(WDRouterPage.forgetPasswordPage, pageType) | 194 | // WDRouterRule.jumpWithPage(WDRouterPage.forgetPasswordPage, pageType) |
| 200 | } | 195 | } |
| @@ -215,6 +210,7 @@ export struct AccountAndSecurityLayout { | @@ -215,6 +210,7 @@ export struct AccountAndSecurityLayout { | ||
| 215 | 210 | ||
| 216 | Column() { | 211 | Column() { |
| 217 | Button('退出登录',{ stateEffect: true ,type: ButtonType.Normal}).width('90%').height('80lpx').backgroundColor('#da3e22').fontColor('#fff').margin('20lpx').borderRadius('8lpx').onClick(()=>{ | 212 | Button('退出登录',{ stateEffect: true ,type: ButtonType.Normal}).width('90%').height('80lpx').backgroundColor('#da3e22').fontColor('#fff').margin('20lpx').borderRadius('8lpx').onClick(()=>{ |
| 213 | + trackButtonClick("accountManagementPageLogout") | ||
| 218 | this.confirmDialogController.open() | 214 | this.confirmDialogController.open() |
| 219 | }) | 215 | }) |
| 220 | } | 216 | } |
| @@ -516,3 +512,7 @@ export struct AccountArrowCell{ | @@ -516,3 +512,7 @@ export struct AccountArrowCell{ | ||
| 516 | .height('54lpx') | 512 | .height('54lpx') |
| 517 | } | 513 | } |
| 518 | } | 514 | } |
| 515 | + | ||
| 516 | +function trackButtonClick(buttonName: string){ | ||
| 517 | + TrackingButton.click(buttonName, TrackConstants.PageName.Account_Management, TrackConstants.PageName.Account_Management) | ||
| 518 | +} |
| @@ -15,6 +15,7 @@ import common from '@ohos.app.ability.common'; | @@ -15,6 +15,7 @@ import common from '@ohos.app.ability.common'; | ||
| 15 | import dataPreferences from '@ohos.data.preferences'; | 15 | import dataPreferences from '@ohos.data.preferences'; |
| 16 | import { TitleBackComponent } from './TitleBackComponent'; | 16 | import { TitleBackComponent } from './TitleBackComponent'; |
| 17 | import { MyCustomDialog } from '../reusable/MyCustomDialog'; | 17 | import { MyCustomDialog } from '../reusable/MyCustomDialog'; |
| 18 | +import { TrackingButton, TrackConstants } from 'wdTracking/Index'; | ||
| 18 | 19 | ||
| 19 | @Component | 20 | @Component |
| 20 | export struct MineSettingComponent { | 21 | export struct MineSettingComponent { |
| @@ -74,11 +75,6 @@ export struct MineSettingComponent { | @@ -74,11 +75,6 @@ export struct MineSettingComponent { | ||
| 74 | } | 75 | } |
| 75 | 76 | ||
| 76 | build() { | 77 | build() { |
| 77 | - // Navigation() { | ||
| 78 | - // //滑动区域 | ||
| 79 | - // this.settingList() | ||
| 80 | - // }.titleMode(NavigationTitleMode.Mini) | ||
| 81 | - // .title('设置') | ||
| 82 | Column(){ | 78 | Column(){ |
| 83 | TitleBackComponent({title:"设置"}) | 79 | TitleBackComponent({title:"设置"}) |
| 84 | this.settingList() | 80 | this.settingList() |
| @@ -154,15 +150,19 @@ export struct MineSettingComponent { | @@ -154,15 +150,19 @@ export struct MineSettingComponent { | ||
| 154 | .selectedColor("#ED2800") | 150 | .selectedColor("#ED2800") |
| 155 | .onChange((isOn: boolean) => { | 151 | .onChange((isOn: boolean) => { |
| 156 | if(item.itemType=='push_switch'){ | 152 | if(item.itemType=='push_switch'){ |
| 153 | + trackButtonClick("settingPagePushSwitch") | ||
| 157 | //推送 | 154 | //推送 |
| 158 | SPHelper.default.save(SpConstants.SETTING_PUSH_SWITCH,isOn) | 155 | SPHelper.default.save(SpConstants.SETTING_PUSH_SWITCH,isOn) |
| 159 | }else if(item.itemType=='wifi_switch'){ | 156 | }else if(item.itemType=='wifi_switch'){ |
| 157 | + trackButtonClick("settingPageOnlyWifiNetworkLoadPicture") | ||
| 160 | //wifi 图片 | 158 | //wifi 图片 |
| 161 | SPHelper.default.save(SpConstants.SETTING_WIFI_IMAGE_SWITCH,isOn) | 159 | SPHelper.default.save(SpConstants.SETTING_WIFI_IMAGE_SWITCH,isOn) |
| 162 | }else if(item.itemType=='video_switch'){ | 160 | }else if(item.itemType=='video_switch'){ |
| 161 | + trackButtonClick("settingPageAutomaticallyPlayVideoOnWifiNetwork") | ||
| 163 | //wifi 视频 | 162 | //wifi 视频 |
| 164 | SPHelper.default.save(SpConstants.SETTING_WIFI_VIDEO_SWITCH,isOn) | 163 | SPHelper.default.save(SpConstants.SETTING_WIFI_VIDEO_SWITCH,isOn) |
| 165 | }else if(item.itemType=='suspensionState_switch'){ | 164 | }else if(item.itemType=='suspensionState_switch'){ |
| 165 | + trackButtonClick("settingPagePlayerFloatingWindowSwitchClick") | ||
| 166 | //悬浮窗 | 166 | //悬浮窗 |
| 167 | SPHelper.default.save(SpConstants.SETTING_SUSPENSION_SWITCH,isOn) | 167 | SPHelper.default.save(SpConstants.SETTING_SUSPENSION_SWITCH,isOn) |
| 168 | } | 168 | } |
| @@ -214,13 +214,16 @@ export struct MineSettingComponent { | @@ -214,13 +214,16 @@ export struct MineSettingComponent { | ||
| 214 | .height('54lpx') | 214 | .height('54lpx') |
| 215 | .onClick(() => { | 215 | .onClick(() => { |
| 216 | if (item.itemType == 'account') { | 216 | if (item.itemType == 'account') { |
| 217 | + trackButtonClick("settingPageAccountManagement") | ||
| 217 | let params: Params = { | 218 | let params: Params = { |
| 218 | pageID: 'AccountAndSecurityLayout' | 219 | pageID: 'AccountAndSecurityLayout' |
| 219 | } | 220 | } |
| 220 | WDRouterRule.jumpWithPage(WDRouterPage.settingPage, params) | 221 | WDRouterRule.jumpWithPage(WDRouterPage.settingPage, params) |
| 221 | } else if (item.itemType == 'private_setting') { | 222 | } else if (item.itemType == 'private_setting') { |
| 222 | WDRouterRule.jumpWithPage(WDRouterPage.privacySettingPage) | 223 | WDRouterRule.jumpWithPage(WDRouterPage.privacySettingPage) |
| 224 | + trackButtonClick("settingPagePrivacySettings") | ||
| 223 | } else if (item.itemType == 'clear_cache') { | 225 | } else if (item.itemType == 'clear_cache') { |
| 226 | + trackButtonClick("settingPageClearCache") | ||
| 224 | this.dialogController.open() | 227 | this.dialogController.open() |
| 225 | } | 228 | } |
| 226 | }) | 229 | }) |
| @@ -264,3 +267,7 @@ export struct MineSettingComponent { | @@ -264,3 +267,7 @@ export struct MineSettingComponent { | ||
| 264 | this.preferences.on('change', observer); | 267 | this.preferences.on('change', observer); |
| 265 | } | 268 | } |
| 266 | } | 269 | } |
| 270 | + | ||
| 271 | +function trackButtonClick(buttonName: string){ | ||
| 272 | + TrackingButton.click(buttonName, TrackConstants.PageName.Setting, TrackConstants.PageName.Setting) | ||
| 273 | +} |
| @@ -724,6 +724,31 @@ class MinePageDatasModel{ | @@ -724,6 +724,31 @@ class MinePageDatasModel{ | ||
| 724 | return WDHttp.get<ResponseDTO<String>>(url) | 724 | return WDHttp.get<ResponseDTO<String>>(url) |
| 725 | }; | 725 | }; |
| 726 | 726 | ||
| 727 | + | ||
| 728 | + /** | ||
| 729 | + * 预约消息 查询详情 | ||
| 730 | + * @returns | ||
| 731 | + */ | ||
| 732 | + getAssertDetailData(relId:string,contentId:string,relType:string): Promise<String> { | ||
| 733 | + return new Promise<String>((success, error) => { | ||
| 734 | + this.fetchAssertDetailData(relId,contentId,relType).then((navResDTO: ResponseDTO<String>) => { | ||
| 735 | + console.log(TAG,JSON.stringify(navResDTO)) | ||
| 736 | + if (!navResDTO || StringUtils.isEmpty(navResDTO.data)) { | ||
| 737 | + success("0"); | ||
| 738 | + return | ||
| 739 | + } | ||
| 740 | + success("1"); | ||
| 741 | + }).catch((err: Error) => { | ||
| 742 | + error(err) | ||
| 743 | + }) | ||
| 744 | + }) | ||
| 745 | + } | ||
| 746 | + | ||
| 747 | + fetchAssertDetailData(relId:string,contentId:string,relType:string) { | ||
| 748 | + let url = HttpUrlUtils.getHost() + HttpUrlUtils.DETAIL_PATH + `?relId=${relId}&contentId=${contentId}&relType=${relType}` | ||
| 749 | + return WDHttp.get<ResponseDTO<String>>(url) | ||
| 750 | + }; | ||
| 751 | + | ||
| 727 | } | 752 | } |
| 728 | 753 | ||
| 729 | const minePageDatasModel = MinePageDatasModel.getInstance() | 754 | const minePageDatasModel = MinePageDatasModel.getInstance() |
| @@ -15,7 +15,7 @@ | @@ -15,7 +15,7 @@ | ||
| 15 | "wdNetwork": "file:../../commons/wdNetwork", | 15 | "wdNetwork": "file:../../commons/wdNetwork", |
| 16 | "wdConstant": "file:../../commons/wdConstant", | 16 | "wdConstant": "file:../../commons/wdConstant", |
| 17 | "wdDetailPlayApi": "file:../../features/wdDetailPlayApi", | 17 | "wdDetailPlayApi": "file:../../features/wdDetailPlayApi", |
| 18 | - // "wdComponent": "file:../../features/wdComponent" | 18 | + "wdComponent": "file:../../features/wdComponent", |
| 19 | "wdShare": "file:../../features/wdShare" | 19 | "wdShare": "file:../../features/wdShare" |
| 20 | } | 20 | } |
| 21 | } | 21 | } |
sight_harmony/features/wdDetailPlayShortVideo/src/main/resources/base/media/comment_like_normal.png
0 → 100644
1.66 KB
sight_harmony/features/wdDetailPlayShortVideo/src/main/resources/base/media/comment_like_select.png
0 → 100644
1.14 KB
| 1 | -import { BottomNavigationComponent, LogoutViewModel, PermissionDesComponent } from 'wdComponent'; | 1 | +import { LogoutViewModel, PermissionDesComponent } from 'wdComponent'; |
| 2 | import { BreakpointConstants } from 'wdConstant'; | 2 | import { BreakpointConstants } from 'wdConstant'; |
| 3 | 3 | ||
| 4 | import { common } from '@kit.AbilityKit'; | 4 | import { common } from '@kit.AbilityKit'; |
| @@ -8,6 +8,7 @@ import { UpgradeTipDialog } from "./upgradePage/UpgradeTipDialog" | @@ -8,6 +8,7 @@ import { UpgradeTipDialog } from "./upgradePage/UpgradeTipDialog" | ||
| 8 | import { ProcessUtils } from 'wdRouter/Index'; | 8 | import { ProcessUtils } from 'wdRouter/Index'; |
| 9 | import { StartupManager } from '../startupmanager/StartupManager'; | 9 | import { StartupManager } from '../startupmanager/StartupManager'; |
| 10 | import { BusinessError } from '@kit.BasicServicesKit'; | 10 | import { BusinessError } from '@kit.BasicServicesKit'; |
| 11 | +import { BottomNavigationComponent } from './view/BottomNavigationComponent'; | ||
| 11 | 12 | ||
| 12 | const TAG = 'MainPage'; | 13 | const TAG = 'MainPage'; |
| 13 | 14 |
| 1 | import { Logger } from 'wdKit'; | 1 | import { Logger } from 'wdKit'; |
| 2 | -import { MultiPictureDetailPageComponent } from 'wdComponent'; | ||
| 3 | import router from '@ohos.router'; | 2 | import router from '@ohos.router'; |
| 4 | import { Params, Action } from 'wdBean'; | 3 | import { Params, Action } from 'wdBean'; |
| 5 | import { WindowModel } from 'wdKit/Index'; | 4 | import { WindowModel } from 'wdKit/Index'; |
| 5 | +import { MultiPictureDetailPageComponent } from '../view/MultiPictureDetailPageComponent'; | ||
| 6 | + | ||
| 6 | const TAG = 'MultiPictureDetailPage'; | 7 | const TAG = 'MultiPictureDetailPage'; |
| 7 | 8 | ||
| 8 | /** | 9 | /** |
| 1 | import { BottomNavi, CommonConstants, DisplayDirection } from 'wdConstant'; | 1 | import { BottomNavi, CommonConstants, DisplayDirection } from 'wdConstant'; |
| 2 | import { BottomNavDTO, NavigationBodyDTO, NavigationDetailDTO, TopNavDTO } from 'wdBean'; | 2 | import { BottomNavDTO, NavigationBodyDTO, NavigationDetailDTO, TopNavDTO } from 'wdBean'; |
| 3 | import { EmitterEventId, EmitterUtils, Logger, StringUtils } from 'wdKit'; | 3 | import { EmitterEventId, EmitterUtils, Logger, StringUtils } from 'wdKit'; |
| 4 | -import { TopNavigationComponent } from './TopNavigationComponent'; | ||
| 5 | -import { MinePageComponent } from './MinePageComponent'; | ||
| 6 | -import { CompUtils } from '../../utils/CompUtils'; | ||
| 7 | -import ChannelViewModel from '../../viewmodel/ChannelViewModel'; | ||
| 8 | -import HomeChannelUtils, { AssignChannelParam } from 'wdRouter'; | ||
| 9 | -import { VideoChannelPage } from './VideoChannelPage'; | ||
| 10 | import { HttpUtils } from 'wdNetwork/Index'; | 4 | import { HttpUtils } from 'wdNetwork/Index'; |
| 5 | +import HomeChannelUtils, { AssignChannelParam } from 'wdRouter/Index'; | ||
| 6 | +import { MinePageComponent } from 'wdComponent/src/main/ets/components/page/MinePageComponent'; | ||
| 7 | +import { CompUtils, TopNavigationComponent } from 'wdComponent/Index'; | ||
| 8 | +import { VideoChannelPage } from './VideoChannelPage'; | ||
| 9 | +import ChannelViewModel from 'wdComponent/src/main/ets/viewmodel/ChannelViewModel'; | ||
| 11 | 10 | ||
| 12 | const TAG = 'BottomNavigationComponent'; | 11 | const TAG = 'BottomNavigationComponent'; |
| 13 | let storage = LocalStorage.getShared(); | 12 | let storage = LocalStorage.getShared(); |
| @@ -8,23 +8,21 @@ import { | @@ -8,23 +8,21 @@ import { | ||
| 8 | postInteractAccentionOperateParams, | 8 | postInteractAccentionOperateParams, |
| 9 | Params | 9 | Params |
| 10 | } from 'wdBean'; | 10 | } from 'wdBean'; |
| 11 | -import { MultiPictureDetailViewModel } from '../viewmodel/MultiPictureDetailViewModel'; | ||
| 12 | import display from '@ohos.display'; | 11 | import display from '@ohos.display'; |
| 13 | -import font from '@ohos.font'; | ||
| 14 | -import { OperRowListView } from './view/OperRowListView'; | ||
| 15 | -import { MultiPictureDetailItemComponent } from './MultiPictureDetailItemComponent'; | ||
| 16 | -import { ImageDownloadComponent } from '../components/ImageDownloadComponent'; | ||
| 17 | -import { publishCommentModel } from '../components/comment/model/PublishCommentModel'; | ||
| 18 | -import { EmptyComponent } from './view/EmptyComponent'; | ||
| 19 | import { DateTimeUtils } from 'wdKit/Index'; | 12 | import { DateTimeUtils } from 'wdKit/Index'; |
| 20 | -import { HttpUrlUtils } from 'wdNetwork/Index'; | ||
| 21 | import { WDRouterPage, WDRouterRule } from 'wdRouter/Index'; | 13 | import { WDRouterPage, WDRouterRule } from 'wdRouter/Index'; |
| 22 | -import { PageRepository } from '../repository/PageRepository'; | ||
| 23 | import { SpConstants } from 'wdConstant/Index'; | 14 | import { SpConstants } from 'wdConstant/Index'; |
| 24 | import { router } from '@kit.ArkUI'; | 15 | import { router } from '@kit.ArkUI'; |
| 25 | -import { viewBlogItemInsightIntentShare } from '../utils/InsightIntentShare' | ||
| 26 | import { common } from '@kit.AbilityKit'; | 16 | import { common } from '@kit.AbilityKit'; |
| 27 | import { CommentDialogView } from 'wdDetailPlayShortVideo/Index'; | 17 | import { CommentDialogView } from 'wdDetailPlayShortVideo/Index'; |
| 18 | +import { EmptyComponent, | ||
| 19 | + ImageDownloadComponent, | ||
| 20 | + MultiPictureDetailItemComponent, | ||
| 21 | + MultiPictureDetailViewModel, | ||
| 22 | + OperRowListView, | ||
| 23 | + PageRepository, | ||
| 24 | + publishCommentModel, | ||
| 25 | + viewBlogItemInsightIntentShare} from 'wdComponent/Index'; | ||
| 28 | 26 | ||
| 29 | const TAG = 'MultiPictureDetailPageComponent'; | 27 | const TAG = 'MultiPictureDetailPageComponent'; |
| 30 | 28 |
| @@ -4,9 +4,9 @@ | @@ -4,9 +4,9 @@ | ||
| 4 | */ | 4 | */ |
| 5 | import { BottomNavDTO, TopNavDTO } from 'wdBean/Index' | 5 | import { BottomNavDTO, TopNavDTO } from 'wdBean/Index' |
| 6 | import { VideoChannelDetail } from 'wdDetailPlayShortVideo/Index'; | 6 | import { VideoChannelDetail } from 'wdDetailPlayShortVideo/Index'; |
| 7 | -import { PageComponent } from './PageComponent'; | ||
| 8 | import { WDRouterPage, WDRouterRule } from 'wdRouter'; | 7 | import { WDRouterPage, WDRouterRule } from 'wdRouter'; |
| 9 | import { DisplayDirection } from 'wdConstant/Index'; | 8 | import { DisplayDirection } from 'wdConstant/Index'; |
| 9 | +import { PageComponent } from 'wdComponent/Index'; | ||
| 10 | 10 | ||
| 11 | const TAG = 'VideoChannelPage' | 11 | const TAG = 'VideoChannelPage' |
| 12 | 12 |
-
Please register or login to post a comment