更新空白

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
@@ -92,6 +92,7 @@ export struct ListComp {
} else {
this.isEmptyViewVisible = true;
}
}).catch((err: BusinessError) => {
this.dialog.close();
if (this.list.length > 0) {
@@ -130,8 +130,7 @@ export struct ListCompBack {
build() {
if (this.isEmptyViewVisible){
EmptyViewComp({promptText:'暂无回放',isVisibility:this.isEmptyViewVisible})
.width('100%')
.height('100%')
} else {
HdList({
lw: 1,
@@ -109,6 +109,7 @@ export struct ListCompPast {
} else {
this.isEmptyViewVisible = true;
}
}).catch((err: BusinessError) => {
this.dialog.close()
if (this.list.length > 0) {
@@ -91,9 +91,13 @@ export struct ListCompVideo {
build() {
if (this.isEmptyViewVisible){
EmptyViewComp({promptText:'暂无数据',isVisibility:this.isEmptyViewVisible})
.width('100%')
.height('100%')
EmptyViewComp({promptText:'暂无数据',isVisibility:this.isEmptyViewVisible}).height('calc(100% - 100vp)')
} else {
HdGrid({
lw: 1,
@@ -112,7 +112,7 @@ export struct SecondaryLink {
Row().height(10).width('100%') .backgroundColor('#efefef')
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)
{
Column()
@@ -159,7 +159,7 @@ export struct SecondaryLink {
.columnsGap(10)
.rowsGap(10)
.backgroundColor(Color.White)
.height('calc(100% - 175vp)')
.height('100%')
.width('100%')
.layoutWeight(1)
Row()
@@ -208,7 +208,7 @@ export struct SecondaryLink {
.backgroundColor(Color.White)
}
.height('calc(100% - 175vp)')
.height('calc(100% - 0vp)')
}
if(this.isOpenSelect)
@@ -238,7 +238,7 @@ export struct SecondaryLink {
}
.backgroundColor('#efefef')
.width('27%')
.height('calc(100% - 175vp)')
.height('100%')
// 二级列表
List() {
if(this.currentTagIndex==0)
@@ -263,7 +263,7 @@ export struct SecondaryLink {
Text(item.name)
.fontSize(15)
.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(()=>{
this.currentTagIndex2=index
@@ -281,7 +281,7 @@ export struct SecondaryLink {
startMargin:10,
endMargin:10
})
.height('calc(100% - 175vp)')
.height('100%')
}.width('100%').alignItems(VerticalAlign.Top)
}
@@ -74,8 +74,8 @@ export struct PlayBack {
}.width('100%').height(45)
Text().Line()
Stack({ }) {
ListCompBack({year:this.timeText,type:this.type}).padding({bottom:20}).backgroundColor($r('app.color.e4e4e4'))
Stack({ alignContent:Alignment.Top}) {
ListCompBack({year:this.timeText,type:this.type}).padding({bottom:20}).backgroundColor($r('app.color.e4e4e4')).height('calc(100% - 1vp)')
if(this.tlistStatus)
{
List() {
@@ -15,9 +15,13 @@ export struct VideoGandan {
params:{'pageName':'视频'}
})
}})
SwiperComp()
SecondaryLink()
SwiperComp().height(150)
SecondaryLink().layoutWeight(1)
}.width('100%')
.height('100%').backgroundColor($r('app.color.top_bg'))
.height('100%')
.backgroundColor($r('app.color.top_bg'))
}
}
@@ -15,7 +15,7 @@ export struct VideoMore {
Text('').height(1).width('100%')
.backgroundColor($r('app.color.1a000000'))
.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%')
.height('100%').backgroundColor($r('app.color.top_bg'))
}
@@ -183,7 +183,7 @@ export struct VideoPage {
.height('100%')
}
}
}.layoutWeight(1)
}
.width('100%')
@@ -195,7 +195,7 @@ export struct VideoPage {
right: { anchor: "__container__", align: HorizontalAlign.End },
bottom:{ anchor: "__container__", align:VerticalAlign.Bottom}
})
.margin({bottom:40})
.margin({bottom:60})
.onClick(() => {
router.pushUrl({url:'pages/VideoPage/PastVideoPage'})
// router.pushUrl({url:'pages/VideoPage/VideoGandanPage'})
@@ -140,6 +140,7 @@ export struct EditUserDataComp {
this.photoPath = uri;
console.info('Selected image URI:', uri);
const base64String = await ChangeUtil.convertUriToBase64(uri);
const updateDataUrl:string = BasicConstant.urlExpert + 'modify';
// 定义content,请根据实际情况选择
const postContent = new rcp.MultipartForm({