王士厅

Merge branches 'main' and 'main' of http://192.168.1.42/developOne/harmonyPool

import router from '@ohos.router';
import { ContentDetailDTO, TopicInfo } from 'wdBean/Index';
import { ToastUtils } from 'wdKit';
import { DisplayUtils, ToastUtils } from 'wdKit';
import { WDShare } from 'wdShare/Index';
import { TrackConstants } from 'wdTracking/Index';
import font from '@ohos.font';
... ... @@ -130,11 +130,11 @@ export struct PaperTitleComponent {
@Builder
rightDecorateBuilder() {
Row()
.width('80vp')
.width(DisplayUtils.getDeviceWidth() - 265)
.height('18vp')
.clip(new Path({
commands: `M${vp2px(9)} 0 H${vp2px(91)} V${vp2px(18)} L0 ${vp2px(18)} Z`
}))
// .clip(new Path({
// commands: `M${vp2px(9)} 0 H${vp2px(91)} V${vp2px(18)} L0 ${vp2px(18)} Z`
// }))
.linearGradient({
direction: GradientDirection.Right, // 渐变方向
repeating: false, // 渐变颜色是否重复
... ...
... ... @@ -145,7 +145,7 @@ export struct LiveFollowComponent {
ContentDetailRequest.postPointLevelOperate({ operateType: 6 }).then((res) => {
console.log('关注号主获取积分==', JSON.stringify(res.data))
if (res.data?.showToast) {
ToastUtils.showToast(res.data.ruleName + '+' + res.data.rulePoint + '积分', 1000);
// ToastUtils.showToast(res.data.ruleName + '+' + res.data.rulePoint + '积分', 1000);
}
})
}
... ...
... ... @@ -16,6 +16,7 @@ import { MultiPictureDetailViewModel } from '../../viewmodel/MultiPictureDetailV
import { onlyWifiLoadImg } from '../../utils/lazyloadImg';
import { InfomationCardClick } from '../../utils/infomationCardClick'
import measure from '@ohos.measure'
import { PeopleShipHomePageDataModel } from '../../viewmodel/PeopleShipHomePageDataModel'
@Component
export struct RmhTitle {
@State compDTO: CompDTO = new CompDTO()
... ... @@ -74,7 +75,7 @@ export struct RmhTitle {
ContentDetailRequest.postPointLevelOperate({ operateType: 6 }).then((res) => {
console.log('关注号主获取积分==', JSON.stringify(res.data))
if (res.data?.showToast) {
ToastUtils.showToast(res.data.ruleName + '+' + res.data.rulePoint + '积分', 1000);
// ToastUtils.showToast(res.data.ruleName + '+' + res.data.rulePoint + '积分', 1000);
}
})
}
... ... @@ -236,15 +237,26 @@ export struct RmhTitle {
.height(36)
.margin({ bottom: 10 })
.onClick(()=>{
///个人主页 动态头像不能跳转
if (this.isPeopleShipHome) return
// 跳转号主
ProcessUtils.gotoPeopleShipHomePage( this.rmhInfo?.rmhId,this.rmhInfo?.banControl,this.rmhInfo?.cnMainControl,this.rmhInfo?.userId,this.rmhInfo?.userType)
this.gotoPeopleShipHomePage()
})
}
async gotoPeopleShipHomePage(){
///个人主页 动态头像不能跳转
if (this.isPeopleShipHome) return
try {
let detailModel = await PeopleShipHomePageDataModel.getPeopleShipHomePageDetailInfo(this.rmhInfo?.rmhId, '', '')
if (detailModel) {
// 跳转号主
ProcessUtils.gotoPeopleShipHomePage(this.rmhInfo?.rmhId,this.rmhInfo?.banControl,this.rmhInfo?.cnMainControl,this.rmhInfo?.userId,this.rmhInfo?.userType)
}else {
ToastUtils.showToast('暂时无法查看该创作者主页',1000);
}
}catch {
ToastUtils.showToast('暂时无法查看该创作者主页',1000);
}
}
// 获取文本宽度
private getTextWidth(text: string) {
let size = measure.measureTextSize({
... ...
... ... @@ -56,17 +56,17 @@ export default struct MinePageUserSimpleInfoUI {
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'))
.alt(this.userType === "1"?$r('app.media.default_head_userPage'):$r('app.media.AccountOwner_DefaultIcon'))
.width(63.21)
.height(63.21)
.objectFit(ImageFit.Cover)
.borderRadius(50)
.width(64)
.height(64)
.objectFit(ImageFit.Fill)
.borderRadius(32)
if(StringUtils.isNotEmpty(this.levelHead)){
Image(this.levelHead)
.width(75.86)
.height(75.86)
.width(90)
.height(90)
.objectFit(ImageFit.Cover)
.borderRadius(50)
// .borderRadius(50)
}
}
.width(86)
... ...
... ... @@ -172,7 +172,7 @@ export struct HomePageBottomCommentComponent {
parentCommentUserName))
})
this.bottomCompH = DisplayUtils.getDeviceHeight() - data.length*160
this.bottomCompH = DisplayUtils.getDeviceHeight() - data.length*160 - 140
if (status.commentIdList.length === 0) {
if (this.curPageNum === 1) this.data_comment.clear()
... ...
... ... @@ -184,7 +184,7 @@ export struct OtherHomePageBottomCommentComponent {
this.data_comment.notifyDataReload()
this.count = this.data_comment.totalCount()
this.commentNum = value.totalCount
// this.commentNum = value.totalCount
if (value.hasNext === 1) {
this.curPageNum++
} else {
... ... @@ -214,7 +214,7 @@ export struct OtherHomePageBottomCommentComponent {
this.data_comment.notifyDataReload()
this.count = this.data_comment.totalCount()
this.commentNum = value.totalCount
// this.commentNum = value.totalCount
if (value.hasNext === 1) {
this.curPageNum++
} else {
... ... @@ -236,7 +236,7 @@ export struct OtherHomePageBottomCommentComponent {
this.data_comment.notifyDataReload()
this.count = this.data_comment.totalCount()
this.commentNum = value.totalCount
// this.commentNum = value.totalCount
if (value.hasNext === 1) {
this.curPageNum++
} else {
... ...
... ... @@ -46,7 +46,7 @@ export struct PeopleShipHomePageTopComponent {
authIcon: this.detailModel.authIcon
}).margin({
left: '10vp',
bottom: '20vp'
bottom: '15vp'
}).onClick(() => {
let params = {
'headPhotoUrl': this.detailModel.headPhotoUrl,
... ...