搜索页
This commit is contained in:
@@ -17,3 +17,11 @@ export { VideoGandan } from './src/main/ets/pages/VideoGandan';
|
||||
export { PLVMockMediaResourceData } from './src/main/ets/polyv/PLVMockMediaResourceData'
|
||||
|
||||
export { VideoDetailsComment } from './src/main/ets/components/VideoDetailsComment'
|
||||
|
||||
export { VideoSearchComp } from './src/main/ets/pages/VideoSearchComp'
|
||||
|
||||
export { VideoList,DataModel,VideoData } from './src/main/ets/model/SearchDataModel'
|
||||
|
||||
export { ItemCompPast } from './src/main/ets/components/ItemCompPastk'
|
||||
|
||||
export { MeetingItemModel,MeetingModel,MeetingModels,ItemModel } from './src/main/ets/model/ItemModel'
|
||||
@@ -0,0 +1,25 @@
|
||||
export interface DataModel {
|
||||
code:number,
|
||||
data:VideoData,
|
||||
message:string
|
||||
}
|
||||
|
||||
export interface VideoData {
|
||||
pageSize:number,
|
||||
list:VideoList[],
|
||||
totalRow:number,
|
||||
pageNumber:number,
|
||||
totalPage:number
|
||||
}
|
||||
|
||||
export interface VideoList {
|
||||
name:string,
|
||||
public_name:string,
|
||||
create_date:string,
|
||||
readnum:string,
|
||||
video_type_name:string,
|
||||
path:string,
|
||||
type_uuid:string,
|
||||
imgpath:string,
|
||||
uuid:string
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
import { HdNav, BasicConstant } from '@itcast/basic'
|
||||
import { ListCompPast } from '../components/ListCompPast'
|
||||
import { promptAction } from '@kit.ArkUI'
|
||||
import { promptAction,router } from '@kit.ArkUI'
|
||||
@Entry
|
||||
@Component
|
||||
export struct PastVideo {
|
||||
@@ -30,8 +30,11 @@ export struct PastVideo {
|
||||
build() {
|
||||
Column()
|
||||
{
|
||||
HdNav({ title: '过往会议', showRightIcon: false, showLeftIcon: true,showRightText:true,rightIcon:$r('app.media.selected_hospital_ws'),rightItemAction:()=>{
|
||||
|
||||
HdNav({ title: '过往会议', showRightIcon: true, showLeftIcon: true,showRightText:true,rightIcon:$r('app.media.selected_hospital_ws'),rightItemAction:()=>{
|
||||
router.pushUrl({
|
||||
url:'pages/SearchPage/VideoSearchPage',
|
||||
params:{'pageName':'过往会议'}
|
||||
})
|
||||
}})
|
||||
Row() {
|
||||
Row() {
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
import { VideoList } from '../model/SearchDataModel'
|
||||
|
||||
@Component
|
||||
export struct VideoSearchComp {
|
||||
@Prop model:VideoList;
|
||||
|
||||
build() {
|
||||
Column() {
|
||||
Column() {
|
||||
Text(this.model.name)
|
||||
.fontSize(16).fontColor($r('app.color.main_color'))
|
||||
.margin({left:10,top:10,right:10})
|
||||
Text(this.model.public_name)
|
||||
.fontSize(14).fontColor('#666666')
|
||||
.margin({left:10,top:10,right:10})
|
||||
Row(){
|
||||
Text(this.model.create_date.length>10?this.model.create_date.substring(0,10).replace('-','.'):this.model.create_date)
|
||||
.fontSize(12).fontColor('#999999')
|
||||
.textAlign(TextAlign.Center)
|
||||
Blank()
|
||||
Row(){
|
||||
Image($r('app.media.video_look'))
|
||||
.objectFit(ImageFit.Cover)
|
||||
.width(22).height(15)
|
||||
Text(' '+this.model.readnum+'')
|
||||
.fontSize(12).fontColor('#666666')
|
||||
}
|
||||
.justifyContent(FlexAlign.End)
|
||||
.width(150)
|
||||
.margin({right:10})
|
||||
}
|
||||
.justifyContent(FlexAlign.SpaceBetween)
|
||||
.margin({left:10,top:10,right:10}).width('98%')
|
||||
Blank()
|
||||
.backgroundColor('#999999').height(0.5).margin({left:10,top:10,right:5})
|
||||
Text(this.model.video_type_name)
|
||||
.fontSize(12).fontColor('#666666')
|
||||
.margin({left:10,top:10,right:10,bottom:10})
|
||||
}
|
||||
.margin({left:10,right:10,top:10})
|
||||
.backgroundColor(Color.White)
|
||||
.borderRadius(5)
|
||||
.width('calc(100% - 20vp)')
|
||||
.height('auto')
|
||||
.justifyContent(FlexAlign.Start)
|
||||
.alignItems(HorizontalAlign.Start)
|
||||
}
|
||||
.width('100%')
|
||||
.height('auto')
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user