Merge branches 'main' and 'main' of http://192.168.1.42/developOne/harmonyPool
Showing
7 changed files
with
35 additions
and
23 deletions
| 1 | import router from '@ohos.router'; | 1 | import router from '@ohos.router'; |
| 2 | import { ContentDetailDTO, TopicInfo } from 'wdBean/Index'; | 2 | import { ContentDetailDTO, TopicInfo } from 'wdBean/Index'; |
| 3 | -import { ToastUtils } from 'wdKit'; | 3 | +import { DisplayUtils, ToastUtils } from 'wdKit'; |
| 4 | import { WDShare } from 'wdShare/Index'; | 4 | import { WDShare } from 'wdShare/Index'; |
| 5 | import { TrackConstants } from 'wdTracking/Index'; | 5 | import { TrackConstants } from 'wdTracking/Index'; |
| 6 | import font from '@ohos.font'; | 6 | import font from '@ohos.font'; |
| @@ -130,11 +130,11 @@ export struct PaperTitleComponent { | @@ -130,11 +130,11 @@ export struct PaperTitleComponent { | ||
| 130 | @Builder | 130 | @Builder |
| 131 | rightDecorateBuilder() { | 131 | rightDecorateBuilder() { |
| 132 | Row() | 132 | Row() |
| 133 | - .width('80vp') | 133 | + .width(DisplayUtils.getDeviceWidth() - 265) |
| 134 | .height('18vp') | 134 | .height('18vp') |
| 135 | - .clip(new Path({ | ||
| 136 | - commands: `M${vp2px(9)} 0 H${vp2px(91)} V${vp2px(18)} L0 ${vp2px(18)} Z` | ||
| 137 | - })) | 135 | + // .clip(new Path({ |
| 136 | + // commands: `M${vp2px(9)} 0 H${vp2px(91)} V${vp2px(18)} L0 ${vp2px(18)} Z` | ||
| 137 | + // })) | ||
| 138 | .linearGradient({ | 138 | .linearGradient({ |
| 139 | direction: GradientDirection.Right, // 渐变方向 | 139 | direction: GradientDirection.Right, // 渐变方向 |
| 140 | repeating: false, // 渐变颜色是否重复 | 140 | repeating: false, // 渐变颜色是否重复 |
| @@ -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 | } |
| @@ -236,13 +237,24 @@ export struct RmhTitle { | @@ -236,13 +237,24 @@ export struct RmhTitle { | ||
| 236 | .height(36) | 237 | .height(36) |
| 237 | .margin({ bottom: 10 }) | 238 | .margin({ bottom: 10 }) |
| 238 | .onClick(()=>{ | 239 | .onClick(()=>{ |
| 240 | + this.gotoPeopleShipHomePage() | ||
| 241 | + }) | ||
| 242 | + } | ||
| 243 | + | ||
| 244 | + async gotoPeopleShipHomePage(){ | ||
| 239 | ///个人主页 动态头像不能跳转 | 245 | ///个人主页 动态头像不能跳转 |
| 240 | if (this.isPeopleShipHome) return | 246 | if (this.isPeopleShipHome) return |
| 241 | - | 247 | + try { |
| 248 | + let detailModel = await PeopleShipHomePageDataModel.getPeopleShipHomePageDetailInfo(this.rmhInfo?.rmhId, '', '') | ||
| 249 | + if (detailModel) { | ||
| 242 | // 跳转号主 | 250 | // 跳转号主 |
| 243 | - ProcessUtils.gotoPeopleShipHomePage( this.rmhInfo?.rmhId,this.rmhInfo?.banControl,this.rmhInfo?.cnMainControl,this.rmhInfo?.userId,this.rmhInfo?.userType) | ||
| 244 | - | ||
| 245 | - }) | 251 | + ProcessUtils.gotoPeopleShipHomePage(this.rmhInfo?.rmhId,this.rmhInfo?.banControl,this.rmhInfo?.cnMainControl,this.rmhInfo?.userId,this.rmhInfo?.userType) |
| 252 | + }else { | ||
| 253 | + ToastUtils.showToast('暂时无法查看该创作者主页',1000); | ||
| 254 | + } | ||
| 255 | + }catch { | ||
| 256 | + ToastUtils.showToast('暂时无法查看该创作者主页',1000); | ||
| 257 | + } | ||
| 246 | } | 258 | } |
| 247 | 259 | ||
| 248 | // 获取文本宽度 | 260 | // 获取文本宽度 |
| @@ -56,17 +56,17 @@ export default struct MinePageUserSimpleInfoUI { | @@ -56,17 +56,17 @@ export default struct MinePageUserSimpleInfoUI { | ||
| 56 | 56 | ||
| 57 | Image(this.isLogin?(this.headPhotoUrl?this.headPhotoUrl:this.userType === "1"?$r('app.media.default_head_userPage'):$r('app.media.AccountOwner_DefaultIcon')):$r('app.media.default_head_userPage')) | 57 | Image(this.isLogin?(this.headPhotoUrl?this.headPhotoUrl:this.userType === "1"?$r('app.media.default_head_userPage'):$r('app.media.AccountOwner_DefaultIcon')):$r('app.media.default_head_userPage')) |
| 58 | .alt(this.userType === "1"?$r('app.media.default_head_userPage'):$r('app.media.AccountOwner_DefaultIcon')) | 58 | .alt(this.userType === "1"?$r('app.media.default_head_userPage'):$r('app.media.AccountOwner_DefaultIcon')) |
| 59 | - .width(63.21) | ||
| 60 | - .height(63.21) | ||
| 61 | - .objectFit(ImageFit.Cover) | ||
| 62 | - .borderRadius(50) | 59 | + .width(64) |
| 60 | + .height(64) | ||
| 61 | + .objectFit(ImageFit.Fill) | ||
| 62 | + .borderRadius(32) | ||
| 63 | 63 | ||
| 64 | if(StringUtils.isNotEmpty(this.levelHead)){ | 64 | if(StringUtils.isNotEmpty(this.levelHead)){ |
| 65 | Image(this.levelHead) | 65 | Image(this.levelHead) |
| 66 | - .width(75.86) | ||
| 67 | - .height(75.86) | 66 | + .width(90) |
| 67 | + .height(90) | ||
| 68 | .objectFit(ImageFit.Cover) | 68 | .objectFit(ImageFit.Cover) |
| 69 | - .borderRadius(50) | 69 | + // .borderRadius(50) |
| 70 | } | 70 | } |
| 71 | } | 71 | } |
| 72 | .width(86) | 72 | .width(86) |
| @@ -172,7 +172,7 @@ export struct HomePageBottomCommentComponent { | @@ -172,7 +172,7 @@ export struct HomePageBottomCommentComponent { | ||
| 172 | parentCommentUserName)) | 172 | parentCommentUserName)) |
| 173 | }) | 173 | }) |
| 174 | 174 | ||
| 175 | - this.bottomCompH = DisplayUtils.getDeviceHeight() - data.length*160 | 175 | + this.bottomCompH = DisplayUtils.getDeviceHeight() - data.length*160 - 140 |
| 176 | if (status.commentIdList.length === 0) { | 176 | if (status.commentIdList.length === 0) { |
| 177 | 177 | ||
| 178 | if (this.curPageNum === 1) this.data_comment.clear() | 178 | if (this.curPageNum === 1) this.data_comment.clear() |
| @@ -184,7 +184,7 @@ export struct OtherHomePageBottomCommentComponent { | @@ -184,7 +184,7 @@ export struct OtherHomePageBottomCommentComponent { | ||
| 184 | this.data_comment.notifyDataReload() | 184 | this.data_comment.notifyDataReload() |
| 185 | 185 | ||
| 186 | this.count = this.data_comment.totalCount() | 186 | this.count = this.data_comment.totalCount() |
| 187 | - this.commentNum = value.totalCount | 187 | + // this.commentNum = value.totalCount |
| 188 | if (value.hasNext === 1) { | 188 | if (value.hasNext === 1) { |
| 189 | this.curPageNum++ | 189 | this.curPageNum++ |
| 190 | } else { | 190 | } else { |
| @@ -214,7 +214,7 @@ export struct OtherHomePageBottomCommentComponent { | @@ -214,7 +214,7 @@ export struct OtherHomePageBottomCommentComponent { | ||
| 214 | this.data_comment.notifyDataReload() | 214 | this.data_comment.notifyDataReload() |
| 215 | 215 | ||
| 216 | this.count = this.data_comment.totalCount() | 216 | this.count = this.data_comment.totalCount() |
| 217 | - this.commentNum = value.totalCount | 217 | + // this.commentNum = value.totalCount |
| 218 | if (value.hasNext === 1) { | 218 | if (value.hasNext === 1) { |
| 219 | this.curPageNum++ | 219 | this.curPageNum++ |
| 220 | } else { | 220 | } else { |
| @@ -236,7 +236,7 @@ export struct OtherHomePageBottomCommentComponent { | @@ -236,7 +236,7 @@ export struct OtherHomePageBottomCommentComponent { | ||
| 236 | this.data_comment.notifyDataReload() | 236 | this.data_comment.notifyDataReload() |
| 237 | 237 | ||
| 238 | this.count = this.data_comment.totalCount() | 238 | this.count = this.data_comment.totalCount() |
| 239 | - this.commentNum = value.totalCount | 239 | + // this.commentNum = value.totalCount |
| 240 | if (value.hasNext === 1) { | 240 | if (value.hasNext === 1) { |
| 241 | this.curPageNum++ | 241 | this.curPageNum++ |
| 242 | } else { | 242 | } else { |
| @@ -46,7 +46,7 @@ export struct PeopleShipHomePageTopComponent { | @@ -46,7 +46,7 @@ export struct PeopleShipHomePageTopComponent { | ||
| 46 | authIcon: this.detailModel.authIcon | 46 | authIcon: this.detailModel.authIcon |
| 47 | }).margin({ | 47 | }).margin({ |
| 48 | left: '10vp', | 48 | left: '10vp', |
| 49 | - bottom: '20vp' | 49 | + bottom: '15vp' |
| 50 | }).onClick(() => { | 50 | }).onClick(() => { |
| 51 | let params = { | 51 | let params = { |
| 52 | 'headPhotoUrl': this.detailModel.headPhotoUrl, | 52 | 'headPhotoUrl': this.detailModel.headPhotoUrl, |
-
Please register or login to post a comment