class Shop extends egret . DisplayObjectContainer { public constructor ( ) { super ( ) ; this . width = 1920 ; this . height = 1080 ; let bg = new egret . Shape ( ) ; bg . graphics . beginFill ( 0xDFDDCD ) ; bg . graphics . drawRect ( 0 , 0 , this . width , this . height ) ; bg . graphics . endFill ( ) ; this . addChild ( bg ) ; this . show ( ) ; } private bottomContainer : BottomContainer = new BottomContainer ( 1 ) ; private show ( ) { this . bottomContainer . name = "bottomContainer" ; this . addChild ( this . bottomContainer ) ; let shopContainer = new ShopContainer ( 0 ) ; this . addChild ( shopContainer ) ; } }