video-play.ets
This commit is contained in:
		
							parent
							
								
									b3b332aed9
								
							
						
					
					
						commit
						71fac389ed
					
				
							
								
								
									
										25
									
								
								entry/src/main/ets/pages/compontents/judge/video-play.ets
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								entry/src/main/ets/pages/compontents/judge/video-play.ets
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,25 @@ | |||||||
|  | 
 | ||||||
|  | @Component | ||||||
|  | export default struct EndPopup { | ||||||
|  |   constructor() { | ||||||
|  |     super() | ||||||
|  |   } | ||||||
|  | 
 | ||||||
|  |   private title:string = '' | ||||||
|  |   private cancelFn:(event?: ClickEvent) => void | ||||||
|  |   private confirmFn:(event?: ClickEvent) => void | ||||||
|  | 
 | ||||||
|  |   build(){ | ||||||
|  |     Column(){ | ||||||
|  |       Column(){ | ||||||
|  |         Text(this.title).fontSize(38).margin({bottom:20}) | ||||||
|  |         Row(){}.height(50) | ||||||
|  |         Row(){ | ||||||
|  |           Text('取消').backgroundImage($rawfile('judge/end-btn.png'),ImageRepeat.NoRepeat).backgroundImageSize({width:'100%',height:'100%'}).width(250).height(100).fontSize(30).fontColor('#FFF').textAlign(TextAlign.Center).onClick(this.cancelFn) | ||||||
|  |           Text('确定').backgroundImage($rawfile('judge/end-btn.png'),ImageRepeat.NoRepeat).backgroundImageSize({width:'100%',height:'100%'}).width(250).height(100).fontSize(30).fontColor('#FFF').textAlign(TextAlign.Center).margin({left:45}).onClick(this.confirmFn) | ||||||
|  |         } | ||||||
|  |       }.width('80%').height('70%').backgroundColor('#E6E3DF').borderRadius(38).position({y:'12%',x:'10%'}).justifyContent(FlexAlign.Center) | ||||||
|  | 
 | ||||||
|  |     }.width('100%').height('100%').position({y:0}).backgroundColor('rgba(0,0,0,0.7)') | ||||||
|  |   } | ||||||
|  | } | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user