wangliang_wd

feat:调整人民号动态卡头像点击

@@ -145,7 +145,7 @@ export struct LiveFollowComponent { @@ -145,7 +145,7 @@ export struct LiveFollowComponent {
145 ContentDetailRequest.postPointLevelOperate({ operateType: 6 }).then((res) => { 145 ContentDetailRequest.postPointLevelOperate({ operateType: 6 }).then((res) => {
146 console.log('关注号主获取积分==', JSON.stringify(res.data)) 146 console.log('关注号主获取积分==', JSON.stringify(res.data))
147 if (res.data?.showToast) { 147 if (res.data?.showToast) {
148 - ToastUtils.showToast(res.data.ruleName + '+' + res.data.rulePoint + '积分', 1000); 148 + // ToastUtils.showToast(res.data.ruleName + '+' + res.data.rulePoint + '积分', 1000);
149 } 149 }
150 }) 150 })
151 } 151 }
@@ -16,6 +16,7 @@ import { MultiPictureDetailViewModel } from '../../viewmodel/MultiPictureDetailV @@ -16,6 +16,7 @@ import { MultiPictureDetailViewModel } from '../../viewmodel/MultiPictureDetailV
16 import { onlyWifiLoadImg } from '../../utils/lazyloadImg'; 16 import { onlyWifiLoadImg } from '../../utils/lazyloadImg';
17 import { InfomationCardClick } from '../../utils/infomationCardClick' 17 import { InfomationCardClick } from '../../utils/infomationCardClick'
18 import measure from '@ohos.measure' 18 import measure from '@ohos.measure'
  19 +import { PeopleShipHomePageDataModel } from '../../viewmodel/PeopleShipHomePageDataModel'
19 @Component 20 @Component
20 export struct RmhTitle { 21 export struct RmhTitle {
21 @State compDTO: CompDTO = new CompDTO() 22 @State compDTO: CompDTO = new CompDTO()
@@ -74,7 +75,7 @@ export struct RmhTitle { @@ -74,7 +75,7 @@ export struct RmhTitle {
74 ContentDetailRequest.postPointLevelOperate({ operateType: 6 }).then((res) => { 75 ContentDetailRequest.postPointLevelOperate({ operateType: 6 }).then((res) => {
75 console.log('关注号主获取积分==', JSON.stringify(res.data)) 76 console.log('关注号主获取积分==', JSON.stringify(res.data))
76 if (res.data?.showToast) { 77 if (res.data?.showToast) {
77 - ToastUtils.showToast(res.data.ruleName + '+' + res.data.rulePoint + '积分', 1000); 78 + // ToastUtils.showToast(res.data.ruleName + '+' + res.data.rulePoint + '积分', 1000);
78 } 79 }
79 }) 80 })
80 } 81 }
@@ -227,13 +228,24 @@ export struct RmhTitle { @@ -227,13 +228,24 @@ export struct RmhTitle {
227 .height(36) 228 .height(36)
228 .margin({ bottom: 10 }) 229 .margin({ bottom: 10 })
229 .onClick(()=>{ 230 .onClick(()=>{
  231 + this.gotoPeopleShipHomePage()
  232 + })
  233 + }
  234 +
  235 + async gotoPeopleShipHomePage(){
230 ///个人主页 动态头像不能跳转 236 ///个人主页 动态头像不能跳转
231 if (this.isPeopleShipHome) return 237 if (this.isPeopleShipHome) return
232 - 238 + try {
  239 + let detailModel = await PeopleShipHomePageDataModel.getPeopleShipHomePageDetailInfo(this.rmhInfo?.rmhId, '', '')
  240 + if (detailModel) {
233 // 跳转号主 241 // 跳转号主
234 - ProcessUtils.gotoPeopleShipHomePage( this.rmhInfo?.rmhId,this.rmhInfo?.banControl,this.rmhInfo?.cnMainControl,this.rmhInfo?.userId,this.rmhInfo?.userType)  
235 -  
236 - }) 242 + ProcessUtils.gotoPeopleShipHomePage(this.rmhInfo?.rmhId,this.rmhInfo?.banControl,this.rmhInfo?.cnMainControl,this.rmhInfo?.userId,this.rmhInfo?.userType)
  243 + }else {
  244 + ToastUtils.showToast('暂时无法查看该创作者主页',1000);
  245 + }
  246 + }catch {
  247 + ToastUtils.showToast('暂时无法查看该创作者主页',1000);
  248 + }
237 } 249 }
238 250
239 // 获取文本宽度 251 // 获取文本宽度