更新空白

This commit is contained in:
XiuYun CHEN 2025-06-04 11:26:56 +08:00
parent ca68e42541
commit 5a59fa16bf
14 changed files with 38 additions and 30 deletions

File diff suppressed because one or more lines are too long

View File

@ -6,7 +6,6 @@ export struct EmptyViewComp {
@Prop isVisibility:boolean = false; @Prop isVisibility:boolean = false;
build() { build() {
Stack({ alignContent: Alignment.Center }) {
Column() { Column() {
Image(this.imageSrc) Image(this.imageSrc)
.width(100) .width(100)
@ -15,12 +14,11 @@ export struct EmptyViewComp {
.fontSize(16) .fontSize(16)
.fontColor(Color.Gray) .fontColor(Color.Gray)
} }
.width('100%')
.height('100%')
.justifyContent(FlexAlign.Center) .justifyContent(FlexAlign.Center)
} .alignItems(HorizontalAlign.Center)
.width('100%') .width('100%')
.height('100%') .height('100%')
// .backgroundColor(Color.Pink)
.visibility(this.isVisibility?Visibility.Visible:Visibility.Hidden) .visibility(this.isVisibility?Visibility.Visible:Visibility.Hidden)
} }
} }

View File

@ -92,6 +92,7 @@ export struct ListComp {
} else { } else {
this.isEmptyViewVisible = true; this.isEmptyViewVisible = true;
} }
}).catch((err: BusinessError) => { }).catch((err: BusinessError) => {
this.dialog.close(); this.dialog.close();
if (this.list.length > 0) { if (this.list.length > 0) {

View File

@ -130,8 +130,7 @@ export struct ListCompBack {
build() { build() {
if (this.isEmptyViewVisible){ if (this.isEmptyViewVisible){
EmptyViewComp({promptText:'暂无回放',isVisibility:this.isEmptyViewVisible}) EmptyViewComp({promptText:'暂无回放',isVisibility:this.isEmptyViewVisible})
.width('100%')
.height('100%')
} else { } else {
HdList({ HdList({
lw: 1, lw: 1,

View File

@ -109,6 +109,7 @@ export struct ListCompPast {
} else { } else {
this.isEmptyViewVisible = true; this.isEmptyViewVisible = true;
} }
}).catch((err: BusinessError) => { }).catch((err: BusinessError) => {
this.dialog.close() this.dialog.close()
if (this.list.length > 0) { if (this.list.length > 0) {

View File

@ -91,9 +91,13 @@ export struct ListCompVideo {
build() { build() {
if (this.isEmptyViewVisible){ if (this.isEmptyViewVisible){
EmptyViewComp({promptText:'暂无数据',isVisibility:this.isEmptyViewVisible})
.width('100%')
.height('100%') EmptyViewComp({promptText:'暂无数据',isVisibility:this.isEmptyViewVisible}).height('calc(100% - 100vp)')
} else { } else {
HdGrid({ HdGrid({
lw: 1, lw: 1,

View File

@ -112,7 +112,7 @@ export struct SecondaryLink {
Row().height(10).width('100%') .backgroundColor('#efefef') Row().height(10).width('100%') .backgroundColor('#efefef')
Stack({alignContent:Alignment.Top}) Stack({alignContent:Alignment.Top})
{ {
ListCompGandan({ sort:this.sort,type_uuid:this.type_uuid,keywords:this.keywords}) ListCompGandan({ sort:this.sort,type_uuid:this.type_uuid,keywords:this.keywords}).padding({left:10,right:10})
if(this.isOpenSelect1) if(this.isOpenSelect1)
{ {
Column() Column()
@ -159,7 +159,7 @@ export struct SecondaryLink {
.columnsGap(10) .columnsGap(10)
.rowsGap(10) .rowsGap(10)
.backgroundColor(Color.White) .backgroundColor(Color.White)
.height('calc(100% - 175vp)') .height('100%')
.width('100%') .width('100%')
.layoutWeight(1) .layoutWeight(1)
Row() Row()
@ -208,7 +208,7 @@ export struct SecondaryLink {
.backgroundColor(Color.White) .backgroundColor(Color.White)
} }
.height('calc(100% - 175vp)') .height('calc(100% - 0vp)')
} }
if(this.isOpenSelect) if(this.isOpenSelect)
@ -238,7 +238,7 @@ export struct SecondaryLink {
} }
.backgroundColor('#efefef') .backgroundColor('#efefef')
.width('27%') .width('27%')
.height('calc(100% - 175vp)') .height('100%')
// 二级列表 // 二级列表
List() { List() {
if(this.currentTagIndex==0) if(this.currentTagIndex==0)
@ -263,7 +263,7 @@ export struct SecondaryLink {
Text(item.name) Text(item.name)
.fontSize(15) .fontSize(15)
.padding(10) .padding(10)
.fontColor(this.currentTagIndex2 === index ? $r('app.color.top_title'): $r('app.color.848284')) .fontColor(this.currentTagIndex2 === index&& this.videoTitle==item.name ? $r('app.color.top_title'): $r('app.color.848284'))
} }
}.onClick(()=>{ }.onClick(()=>{
this.currentTagIndex2=index this.currentTagIndex2=index
@ -281,7 +281,7 @@ export struct SecondaryLink {
startMargin:10, startMargin:10,
endMargin:10 endMargin:10
}) })
.height('calc(100% - 175vp)') .height('100%')
}.width('100%').alignItems(VerticalAlign.Top) }.width('100%').alignItems(VerticalAlign.Top)
} }

View File

@ -74,8 +74,8 @@ export struct PlayBack {
}.width('100%').height(45) }.width('100%').height(45)
Text().Line() Text().Line()
Stack({ }) { Stack({ alignContent:Alignment.Top}) {
ListCompBack({year:this.timeText,type:this.type}).padding({bottom:20}).backgroundColor($r('app.color.e4e4e4')) ListCompBack({year:this.timeText,type:this.type}).padding({bottom:20}).backgroundColor($r('app.color.e4e4e4')).height('calc(100% - 1vp)')
if(this.tlistStatus) if(this.tlistStatus)
{ {
List() { List() {

View File

@ -15,9 +15,13 @@ export struct VideoGandan {
params:{'pageName':'视频'} params:{'pageName':'视频'}
}) })
}}) }})
SwiperComp() SwiperComp().height(150)
SecondaryLink() SecondaryLink().layoutWeight(1)
}.width('100%') }.width('100%')
.height('100%').backgroundColor($r('app.color.top_bg')) .height('100%')
.backgroundColor($r('app.color.top_bg'))
} }
} }

View File

@ -15,7 +15,7 @@ export struct VideoMore {
Text('').height(1).width('100%') Text('').height(1).width('100%')
.backgroundColor($r('app.color.1a000000')) .backgroundColor($r('app.color.1a000000'))
.margin({bottom:10}) .margin({bottom:10})
ListCompVideo({type_uuid:this.params.uuid}).padding({bottom:20,left:10,right:10}).backgroundColor($r('app.color.top_bg')) ListCompVideo({type_uuid:this.params.uuid}).padding({left:10,right:10}).backgroundColor($r('app.color.top_bg')).layoutWeight(1)
}.width('100%') }.width('100%')
.height('100%').backgroundColor($r('app.color.top_bg')) .height('100%').backgroundColor($r('app.color.top_bg'))
} }

View File

@ -183,7 +183,7 @@ export struct VideoPage {
.height('100%') .height('100%')
} }
} }.layoutWeight(1)
} }
.width('100%') .width('100%')
@ -195,7 +195,7 @@ export struct VideoPage {
right: { anchor: "__container__", align: HorizontalAlign.End }, right: { anchor: "__container__", align: HorizontalAlign.End },
bottom:{ anchor: "__container__", align:VerticalAlign.Bottom} bottom:{ anchor: "__container__", align:VerticalAlign.Bottom}
}) })
.margin({bottom:40}) .margin({bottom:60})
.onClick(() => { .onClick(() => {
router.pushUrl({url:'pages/VideoPage/PastVideoPage'}) router.pushUrl({url:'pages/VideoPage/PastVideoPage'})
// router.pushUrl({url:'pages/VideoPage/VideoGandanPage'}) // router.pushUrl({url:'pages/VideoPage/VideoGandanPage'})

View File

@ -140,6 +140,7 @@ export struct EditUserDataComp {
this.photoPath = uri; this.photoPath = uri;
console.info('Selected image URI:', uri); console.info('Selected image URI:', uri);
const base64String = await ChangeUtil.convertUriToBase64(uri); const base64String = await ChangeUtil.convertUriToBase64(uri);
const updateDataUrl:string = BasicConstant.urlExpert + 'modify'; const updateDataUrl:string = BasicConstant.urlExpert + 'modify';
// 定义content请根据实际情况选择 // 定义content请根据实际情况选择
const postContent = new rcp.MultipartForm({ const postContent = new rcp.MultipartForm({

View File

@ -152,10 +152,10 @@ struct VideoSearchPage {
this.onRefresh(); this.onRefresh();
}}) }})
if (this.isSearchData){ if (this.isSearchData){
EmptyViewComp({promptText:'暂无搜索数据',isVisibility:this.isSearchData}) EmptyViewComp({promptText:'暂无搜索数据',isVisibility:this.isSearchData}).height('calc(100% - 140vp)')
.width('100%')
.height('100%') }
} else { else {
if (this.params.pageName === '视频') { if (this.params.pageName === '视频') {
Column() { Column() {
Row(){ Row(){

View File

@ -39,8 +39,8 @@ export struct TabBarComp {
}) { }) {
ForEach(TabBarItems, (item: TabBarCompModel, index: number) => { ForEach(TabBarItems, (item: TabBarCompModel, index: number) => {
TabContent() { TabContent() {
if (index === 0) VideoPage().padding({bottom:70}) if (index === 0) VideoPage()
else if (index === 1) VideoGandan().padding({bottom:70}) else if (index === 1) VideoGandan()
else if (index === 2) MyHomePage() else if (index === 2) MyHomePage()
// else MyHomePage() // else MyHomePage()
} }