Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
wangliang_wd
2024-09-23 16:39:46 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3e8e30aeab5f01895e9d09e2c4a895f8383b4e62
3e8e30ae
1 parent
5a9eefa6
feat:调整人民号动态卡头像点击
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
8 deletions
sight_harmony/features/wdComponent/src/main/ets/components/cardCommon/LiveFollowComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardCommon/RmhTitle.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardCommon/LiveFollowComponent.ets
View file @
3e8e30a
...
...
@@ -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);
}
})
}
...
...
sight_harmony/features/wdComponent/src/main/ets/components/cardCommon/RmhTitle.ets
View file @
3e8e30a
...
...
@@ -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);
}
})
}
...
...
@@ -227,15 +228,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({
...
...
Please
register
or
login
to post a comment