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
yangchenggong1_wd
2024-10-21 16:22:06 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fde74f2fb736e38374dedf42bcef77885d3fe80e
fde74f2f
1 parent
c67433be
fix |> 20830 uat,人民号>推荐,小视频横滑卡配置不支持跳转,不应展示更多按钮
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
2 deletions
sight_harmony/features/wdComponent/src/main/ets/components/compview/ZhSingleRow02.ets
sight_harmony/features/wdComponent/src/main/ets/components/compview/ZhSingleRow02.ets
View file @
fde74f2
...
...
@@ -7,6 +7,7 @@ import { ProcessUtils } from 'wdRouter';
import { HttpUtils } from 'wdNetwork/Index';
import { onlyWifiLoadImg } from '../../utils/lazyloadImg';
import { InfomationCardClick } from '../../utils/infomationCardClick'
import { StringUtils } from 'wdKit';
/**
* 小视频横划卡
...
...
@@ -78,9 +79,37 @@ export struct ZhSingleRow02 {
}
}
showMore() {
return !!this.compDTO.dataSourceType || !(this.compDTO?.objectType === '0' || this.compDTO?.objectType === '')
showMore():boolean {
let showMore = this.checkMoreJumpPage()
if(!showMore){
return true
}else{
if(this.compDTO && StringUtils.isNotEmpty(this.compDTO?.objectType)){
if(this.compDTO?.objectType === '0'){
return false
}else{
return true
}
}else{
return false
}
}
// return !!this.compDTO.dataSourceType || !(this.compDTO?.objectType === '0' || this.compDTO?.objectType === '')
}
checkMoreJumpPage():boolean{
let localJump = true
if(this.compDTO && StringUtils.isNotEmpty(this.compDTO?.objectType)){
let type = this.compDTO?.objectType
if(type == "LIVE_HORIZONTAL_CARD" || type == "LIVE_RESERVATION" || type == "LIVE_MONTHLY_RANKING") {
localJump = false
}
}
return localJump
}
build() {
Column() {
...
...
Please
register
or
login
to post a comment