yangchenggong1_wd

fix |> 20830 uat,人民号>推荐,小视频横滑卡配置不支持跳转,不应展示更多按钮

... ... @@ -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() {
... ...