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
王士厅
2024-09-23 18:00:11 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
1caa93f7744a63868f984041a49dd2645c5c12df
1caa93f7
2 parents
43b950dc
60e3302f
Merge branches 'main' and 'main' of
http://192.168.1.42/developOne/harmonyPool
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
35 additions
and
23 deletions
sight_harmony/features/wdComponent/src/main/ets/components/MorningEveningPaper/PaperTitleComponent.ets
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/mine/MinePageUserSimpleInfoUI.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/HomePageBottomCommentComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/OtherHomePageBottomCommentComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/peopleShipHomePage/PeopleShipHomePageTopComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/MorningEveningPaper/PaperTitleComponent.ets
View file @
1caa93f
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, // 渐变颜色是否重复
...
...
sight_harmony/features/wdComponent/src/main/ets/components/cardCommon/LiveFollowComponent.ets
View file @
1caa93f
...
...
@@ -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 @
1caa93f
...
...
@@ -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,13 +237,24 @@ export struct RmhTitle {
.height(36)
.margin({ bottom: 10 })
.onClick(()=>{
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)
})
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);
}
}
// 获取文本宽度
...
...
sight_harmony/features/wdComponent/src/main/ets/components/mine/MinePageUserSimpleInfoUI.ets
View file @
1caa93f
...
...
@@ -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)
...
...
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/HomePageBottomCommentComponent.ets
View file @
1caa93f
...
...
@@ -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()
...
...
sight_harmony/features/wdComponent/src/main/ets/components/mine/home/OtherHomePageBottomCommentComponent.ets
View file @
1caa93f
...
...
@@ -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 {
...
...
sight_harmony/features/wdComponent/src/main/ets/components/peopleShipHomePage/PeopleShipHomePageTopComponent.ets
View file @
1caa93f
...
...
@@ -46,7 +46,7 @@ export struct PeopleShipHomePageTopComponent {
authIcon: this.detailModel.authIcon
}).margin({
left: '10vp',
bottom: '
20
vp'
bottom: '
15
vp'
}).onClick(() => {
let params = {
'headPhotoUrl': this.detailModel.headPhotoUrl,
...
...
Please
register
or
login
to post a comment