wangliang_wd

feat:优化他人主页头像预览

1 import router from '@ohos.router' 1 import router from '@ohos.router'
2 import { Params } from 'wdBean'; 2 import { Params } from 'wdBean';
3 import { DateTimeUtils, NetworkUtil, NumberFormatterUtils, StringUtils } from 'wdKit'; 3 import { DateTimeUtils, NetworkUtil, NumberFormatterUtils, StringUtils } from 'wdKit';
  4 +import { WDRouterPage, WDRouterRule } from 'wdRouter';
4 import { TrackingPageBrowse, TrackConstants, ParamType, Tracking } from 'wdTracking/Index'; 5 import { TrackingPageBrowse, TrackConstants, ParamType, Tracking } from 'wdTracking/Index';
5 import { OtherHomePageBottomCommentComponent } from '../components/mine/home/OtherHomePageBottomCommentComponent'; 6 import { OtherHomePageBottomCommentComponent } from '../components/mine/home/OtherHomePageBottomCommentComponent';
6 import { OtherHomePageBottomFollowComponent } from '../components/mine/home/OtherHomePageBottomFollowComponent'; 7 import { OtherHomePageBottomFollowComponent } from '../components/mine/home/OtherHomePageBottomFollowComponent';
@@ -102,7 +103,10 @@ struct OtherNormalUserHomePage { @@ -102,7 +103,10 @@ struct OtherNormalUserHomePage {
102 .width('165lpx') 103 .width('165lpx')
103 .height('165lpx') 104 .height('165lpx')
104 .objectFit(ImageFit.Cover) 105 .objectFit(ImageFit.Cover)
105 - } 106 + }.onClick(()=>{
  107 + let params = {'headPhotoUrl': this.headPhotoUrl} as Record<string, string>;
  108 + WDRouterRule.jumpWithPage(WDRouterPage.showUserHeaderPage,params)
  109 + })
106 110
107 Column() { 111 Column() {
108 Row() { 112 Row() {
@@ -325,7 +329,8 @@ struct OtherNormalUserHomePage { @@ -325,7 +329,8 @@ struct OtherNormalUserHomePage {
325 }) 329 })
326 .margin({ left: '31lpx' }) 330 .margin({ left: '31lpx' })
327 .onClick(() => { 331 .onClick(() => {
328 - router.back() 332 + let params = {'headPhotoUrl': this.headPhotoUrl} as Record<string, string>;
  333 + WDRouterRule.jumpWithPage(WDRouterPage.showUserHeaderPage,params)
329 }) 334 })
330 335
331 Text(`${this.userName}`) 336 Text(`${this.userName}`)