text: var __reflect=this&&this.__reflect||function(e,t,i){e.__class__=t,i?i.push(t):i=[t],e.__types__=e.__types__?i.concat(e.__types__):i},__extends=this&&this.__extends||function(e,t){function i(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)},JcGameBaseView=function(e){function t(){var t=e.call(this)||this;return t.addEventListener(eui.UIEvent.CREATION_COMPLETE,t.init,t),t}return __extends(t,e),t.prototype.Hide=function(){this.visible=!1},t.prototype.Show=function(e,t){this.visible=!0},t.prototype.init=function(){},t}(eui.Component);__reflect(JcGameBaseView.prototype,"JcGameBaseView",["JcGamePlug"]);var RulesBad=function(e){function t(){var t=e.call(this)||this;return t.skinName="RulesBadSkin",t.top=t.bottom=t.right=t.left=0,t}return __extends(t,e),t.prototype.init=function(){var e=this;this.Hide(),this._luckingBt.addEventListener(egret.TouchEvent.TOUCH_TAP,function(){Data.IsFilinInfo?GameMian.instance._LuckyUi.Show():GameMian.instance._FilliInfo.Show(),e.Hide()},this),this._RetrueBt.addEventListener(egret.TouchEvent.TOUCH_TAP,function(){Data._Mian.RestGame()},this)},t}(JcGameBaseView);__reflect(RulesBad.prototype,"RulesBad");var Special2=function(e){function t(){var t=e.call(this)||this;return t._Type=1,t.m_stayscore=0,t.m_speed=1.5,t.m_ReboundSpeed=15,t.Reboundcoefficient=1,t.MaxHeight=231,t.MinHeight=115.5,t.IsStart=!1,t.IsRebound=!1,t.IsReboundLev1=!1,t.IsReboundLev2=!1,t.IsReboundLev3=!1,t.ReboundTime=300,t.IsFirstStay=!1,t.skinName="Special2Skin",t._Type=Data.RandomNumBoth(1,2),t}return __extends(t,e),t.prototype.init=function(){this.addEventListener(egret.Event.ENTER_FRAME,this.OnFrame,this),this.imgPosy=this.img.y,this.ImgRigthPosy=this.ImgRigth.y,this.ImgleftPosy=this.Imgleft.y,this.m_CenterImg.visible=!1,this.MianGourp.y=this.MianGourp.y-200,this.DropdownAni(),this.img.source=RES.getRes("2Special"+this._Type+"_1"),this.ImgRigth.source=RES.getRes("2Special"+this._Type+"_3"),this.Imgleft.source=RES.getRes("2Special"+this._Type+"_2")},t.prototype.DropdownAni=function(){var e=this;egret.Tween.get(this.MianGourp).wait(200).to({y:this.MianGourp.y+200},500,egret.Ease.backOut).call(function(){e.m_CenterImg.visible=!0})},t.prototype.OnFrame=function(){this.IsStart&&this.ImgRigth.height>this.MinHeight&&(this.ImgRigth.height=this.ImgRigth.height-this.m_speed,this.Imgleft.height=this.Imgleft.height-this.m_speed,this.img.y=this.img.y+this.m_speed,this.ImgRigth.y=this.ImgRigth.y+this.m_speed,this.Imgleft.y=this.Imgleft.y+this.m_speed),this.IsRebound&&(this.ImgRigth.height<1.1*this.MaxHeight&&this.IsReboundLev1?(this.ImgRigth.height=this.ImgRigth.height+this.m_ReboundSpeed,this.Imgleft.height=this.Imgleft.height+this.m_ReboundSpeed,this.img.y=this.img.y-this.m_ReboundSpeed,this.ImgRigth.y=this.ImgRigth.y-this.m_ReboundSpeed,this.Imgleft.y=this.Imgleft.y-this.m_ReboundSpeed):this.IsReboundLev1&&(this.IsReboundLev1=!1,this.IsReboundLev2=!0),this.ImgRigth.height>.9*this.MaxHeight&&this.IsReboundLev2?(this.ImgRigth.height=this.ImgRigth.height-this.m_ReboundSpeed*this.Reboundcoefficient,this.Imgleft.height=this.Imgleft.height-this.m_ReboundSpeed*this.Reboundcoefficient,this.img.y=this.img.y+this.m_ReboundSpeed*this.Reboundcoefficient,this.ImgRigth.y=this.ImgRigth.y+this.m_ReboundSpeed*this.Reboundcoefficient,this.Imgleft.y=this.Imgleft.y+this.m_ReboundSpeed*this.Reboundcoefficient):this.IsReboundLev2&&(this.IsReboundLev1=!1,this.IsReboundLev2=!1,this.IsReboundLev3=!0),this.ImgRigth.height<this.MaxHeight&&this.IsReboundLev3?(this.ImgRigth.height=this.ImgRigth.height+this.m_ReboundSpeed*this.Reboundcoefficient,this.Imgleft.height=this.Imgleft.height+this.m_ReboundSpeed*this.Reboundcoefficient,this.img.y=this.img.y-this.m_ReboundSpeed*this.Reboundcoefficient,this.ImgRigth.y=this.ImgRigth.y-this.m_ReboundSpeed*this.Reboundcoefficient,this.Imgleft.y=this.Imgleft.y-this.m_ReboundSpeed*this.Reboundcoefficient):this.IsReboundLev3&&(this.IsReboundLev1=!1,this.IsReboundLev2=!1,this.IsReboundLev3=!1,this.IsRebound=!1))},t.prototype.StartFun=function(){this.IsStart=!0},t.prototype.StopFun=function(){this.IsStart=!1},t.prototype.RemoveFun=function(){this.IsStart=!1,this.removeEventListener(egret.Event.ENTER_FRAME,this.OnFrame,this)},t.prototype.ReboundAni=function(){this.StopFun(),this.IsRebound=!0,this.IsReboundLev1=!0},t.prototype.Show=function(){this.DropdownAni()},t.prototype.JumpOn=function(){this.IsFirstStay||(this.IsFirstStay=!0)},t.prototype.Jumpleave=function(){},t}(JcGameBaseView);__reflect(Special2.prototype,"Special2");var Special3=function(e){function t(){var t=e.call(this)||this;return t._Type=1,t.m_stayscore=0,t.staytext="",t.m_speed=1.5,t.m_ReboundSpeed=15,t.Reboundcoefficient=1,t.MaxHeight=127,t.MinHeight=63.5,t.IsStart=!1,t.IsRebound=!1,t.IsReboundLev1=!1,t.IsReboundLev2=!1,t.IsReboundLev3=!1,t.ReboundTime=300,t.IsFirstStay=!1,t.skinName="Special3Skin",t._Type=Data.RandomNumBoth(1,4),t}return __extends(t,e),t.prototype.init=function(){this.addEventListener(egret.Event.ENTER_FRAME,this.OnFrame,this),this.imgPosy=this.img.y,this.ImgRigthPosy=this.ImgRigth.y,this.ImgleftPosy=this.Imgleft.y,this.m_CenterImg.visible=!1,this.MianGourp.y=this.MianGourp.y-200,this.DropdownAni(),this.img.source=RES.getRes("3Special"+this._Type+"_1"),this.ImgRigth.source=RES.getRes("3Special"+this._Type+"_3"),this.Imgleft.source=RES.getRes("3Special"+this._Type+"_2"),1==this._Type?(this.m_stayscore=10,this.staytext="北京华联超市"):2==this._Type?(this.m_stayscore=15,this.staytext="十二中富力华庭校区"):3==this._Type?(this.m_stayscore=10,this.staytext="新建路小学富力华庭分校"):4==this._Type&&(this.m_stayscore=5,this.staytext="富力华庭乐恩幼儿园")},t.prototype.DropdownAni=function(){var e=this;egret.Tween.get(this.MianGourp).wait(200).to({y:this.MianGourp.y+200},500,egret.Ease.backOut).call(function(){e.m_CenterImg.visible=!0})},t.prototype.OnFrame=function(){this.IsStart&&this.ImgRigth.height>this.MinHeight&&(this.ImgRigth.height=this.ImgRigth.height-this.m_speed,this.Imgleft.height=this.Imgleft.height-this.m_speed,this.img.y=this.img.y+this.m_speed,this.ImgRigth.y=this.ImgRigth.y+this.m_speed,this.Imgleft.y=this.Imgleft.y+this.m_speed),this.IsRebound&&(this.ImgRigth.height<1.1*this.MaxHeight&&this.IsReboundLev1?(this.ImgRigth.height=this.ImgRigth.height+this.m_ReboundSpeed,this.Imgleft.height=this.Imgleft.height+this.m_ReboundSpeed,this.img.y=this.img.y-this.m_ReboundSpeed,this.ImgRigth.y=this.ImgRigth.y-this.m_ReboundSpeed,this.Imgleft.y=this.Imgleft.y-this.m_ReboundSpeed):this.IsReboundLev1&&(this.IsReboundLev1=!1,this.IsReboundLev2=!0),this.ImgRigth.height>.9*this.MaxHeight&&this.IsReboundLev2?(this.ImgRigth.height=this.ImgRigth.height-this.m_ReboundSpeed*this.Reboundcoefficient,this.Imgleft.height=this.Imgleft.height-this.m_ReboundSpeed*this.Reboundcoefficient,this.img.y=this.img.y+this.m_ReboundSpeed*this.Reboundcoefficient,this.ImgRigth.y=this.ImgRigth.y+this.m_ReboundSpeed*this.Reboundcoefficient,this.Imgleft.y=this.Imgleft.y+this.m_ReboundSpeed*this.Reboundcoefficient):this.IsReboundLev2&&(this.IsReboundLev1=!1,this.IsReboundLev2=!1,this.IsReboundLev3=!0),this.ImgRigth.height<this.MaxHeight&&this.IsReboundLev3?(this.ImgRigth.height=this.ImgRigth.height+this.m_ReboundSpeed*this.Reboundcoefficient,this.Imgleft.height=this.Imgleft.height+this.m_ReboundSpeed*this.Reboundcoefficient,this.img.y=this.img.y-this.m_ReboundSpeed*this.Reboundcoefficient,this.ImgRigth.y=this.ImgRigth.y-this.m_ReboundSpeed*this.Reboundcoefficient,this.Imgleft.y=this.Imgleft.y-this.m_ReboundSpeed*this.Reboundcoefficient):this.IsReboundLev3&&(this.IsReboundLev1=!1,this.IsReboundLev2=!1,this.IsReboundLev3=!1,this.IsRebound=!1))},t.prototype.StartFun=function(){this.IsStart=!0},t.prototype.StopFun=function(){this.IsStart=!1},t.prototype.RemoveFun=function(){this.IsStart=!1,this.removeEventListener(egret.Event.ENTER_FRAME,this.OnFrame,this)},t.prototype.ReboundAni=function(){this.StopFun(),this.IsRebound=!0,this.IsReboundLev1=!0},t.prototype.Show=function(){this.DropdownAni()},t.prototype.JumpOn=function(){var e=this;this.IsFirstStay||(this.IsFirstStay=!0,egret.Tween.get(this.m_CenterImg).wait(2e3).call(function(){1==e._Type?GameMian.instance.PlaySound(GameMian.instance.chaoshimp3):2==e._Type?GameMian.instance.PlaySound(GameMian.instance.shierzhongmp3):3==e._Type?GameMian.instance.PlaySound(GameMian.instance.xiaoxuemp3):4==e._Type&&GameMian.instance.PlaySound(GameMian.instance.youeryuanmp3),Data._PlayerScore+=e.m_stayscore,GameMian.instance._Jumper.AddScoreFun(e.m_stayscore,e.staytext)}))},t.prototype.Jumpleave=function(){egret.Tween.removeTweens(this.m_CenterImg)},t}(JcGameBaseView);__reflect(Special3.prototype,"Special3");var JumperClass=function(e){function t(){var t=e.call(this)||this;return t.MaxHeight=127,t.m_Yaspeed=1.5,t.IsStart=!1,t.m_speed=.6,t.CurJmperRIndex=0,t.MaxJmperRindex=13,t.Effindex=0,t.EffMaxIndex=11,t.CurFallenIndex=0,t.MaxFallenIndex=7,t.skinName="JumperClassSkin",t}return __extends(t,e),t.prototype.init=function(){this.addEventListener(egret.Event.ENTER_FRAME,this.OnFrame,this),this.StopFun(),this.CenterEff.scaleX=this.CenterEff.scaleY=.1},t.prototype.OnFrame=function(){this.IsStart&&this.JumperBoby.height>.5*this.MaxHeight&&(this.JumperBoby.height=this.JumperBoby.height-this.m_Yaspeed,this.JumperHead.y=this.JumperHead.y+this.m_Yaspeed+.8,this.JumperBoby.y=this.JumperBoby.y+this.m_Yaspeed+.5,this.JumperBoby.width=this.JumperBoby.width+this.m_Yaspeed/2)},t.prototype.StartFun=function(e){this.MianGourp.y=0,this._jumper.visible=!1,this.JumperHead.visible=!0,this.JumperBoby.visible=!0,e==JumpType.JumpToLeft?this.JumperHead.source=RES.getRes("JumperHeadR"):this.JumperHead.source=RES.getRes("JumperHeadL"),this.IsStart=!0,this.absorption()},t.prototype.StopFun=function(){this.IsStart=!1,this._jumper.visible=!0,this.JumperHead.visible=!1,this.JumperBoby.visible=!1,this.JumperBoby.x=27,this.JumperBoby.y=111,this.JumperBoby.width=75,this.JumperBoby.height=127,this.JumperHead.x=26,this.JumperHead.y=23,this.CenterEff.visible=!1,this._FallenOn.visible=!1,this._FallenL.visible=!1,this._FallenR.visible=!1,this._FallenBottom.visible=!1,this._AddScoreLale.visible=!1},t.prototype.DisvisibleFun=function(){this.MianGourp.visible=!1,this.CurFallenIndex=0},t.prototype.DowrpVisb=function(){this._jumper.visible=!0,this.JumperHead.visible=!1,this.JumperBoby.visible=!1,this.CurFallenIndex=0},t.prototype.PlayJmperToR=function(e){var t=this;this.StopFun(),egret.Tween.get(this.JumperHead).wait(e/13).call(function(){t.CurJmperRIndex<t.MaxJmperRindex?(++t.CurJmperRIndex,t._jumper.source=RES.getRes("JumperR"+t.CurJmperRIndex),t.PlayJmperToR(e)):(t._jumper.visible=!1,t.JumperHead.visible=!0,t.JumperBoby.visible=!0,t.CurJmperRIndex=0,egret.Tween.removeTweens(t.JumperHead),GameMian.instance.RankToDirection())},this,[e])},t.prototype.PlayJmperToL=function(e){var t=this;this.StopFun(),egret.Tween.get(this.JumperBoby).wait(e/13).call(function(){t.CurJmperRIndex<t.MaxJmperRindex?(++t.CurJmperRIndex,t._jumper.source=RES.getRes("JumperL"+t.CurJmperRIndex),t.PlayJmperToL(e)):(t._jumper.visible=!1,t.JumperHead.visible=!0,t.JumperBoby.visible=!0,t.CurJmperRIndex=0,egret.Tween.removeTweens(t.JumperBoby),GameMian.instance.RankToDirection())},this,[e])},t.prototype.Dropdown=function(){egret.Tween.get(this.MianGourp).to({y:this.MianGourp.y+100},300).call(function(){GameMian.instance._EndPage.Show()})},t.prototype.Dropdown2=function(){egret.Tween.get(this._FallGourp).to({y:this.MianGourp.y+100},300).wait(1e3).call(function(){GameMian.instance._EndPage.Show()})},t.prototype.JumpDropEff=function(){var e=this;egret.Tween.get(this._jumper).wait(50).call(function(){e.Effindex<e.EffMaxIndex?(++e.Effindex,e._JumpEffImg.visible=!0,e._JumpEffImg.source=RES.getRes("JumpDropEff"+e.Effindex),e.JumpDropEff()):e.StopEff()},this)},t.prototype.absorption=function(){var e=this;this._JumpEffImg.visible=!0,egret.Tween.get(this._jumper).wait(100).call(function(){e.Effindex<e.EffMaxIndex?(++e.Effindex,e._JumpEffImg.source=RES.getRes("absorption"+e.Effindex),e.absorption()):(e.Effindex=0,e.absorption())},this)},t.prototype.CenterEffFun=function(){var e=this;this.CenterEff.visible=!0,egret.Tween.get(this.CenterEff).to({scaleX:.1,scaleY:.1}).to({scaleX:1.5,scaleY:1.5},500).call(function(){e.CenterEff.visible=!1,e.CenterEff.scaleX=e.CenterEff.scaleY=.1})},t.prototype.AddScoreFun=function(e,t){var i=this;void 0===t&&(t=""),this._AddScoreLale.visible=!0,this._AddScoreLale.text=t+"+"+e,egret.Tween.get(this._AddScoreLale).to({y:0}).to({y:-20},400).wait(500).call(function(){i._AddScoreLale.visible=!1,i._AddScoreLale.y=0},this),GameMian.instance.setmainsocre()},t.prototype.StopEff=function(){this._JumpEffImg.visible=!1,egret.Tween.removeTweens(this._jumper),this.Effindex=0},t.prototype.FallenAniFun=function(e){var t=this;e==FallenType.FallenBottom?egret.Tween.get(this).wait(200).call(function(){t.CurFallenIndex<t.MaxFallenIndex?(++t.CurFallenIndex,t._FallenBottom.source=RES.getRes("FallenBottom"+t.CurFallenIndex),t.FallenAniFun(e)):(egret.Tween.removeTweens(t),t.Dropdown2())},this,[e]):e==FallenType.FallenL?egret.Tween.get(this).wait(100).call(function(){t.CurFallenIndex<t.MaxFallenIndex?(++t.CurFallenIndex,t._FallenL.source=RES.getRes("FallenL"+t.CurFallenIndex),t.FallenAniFun(e)):(egret.Tween.removeTweens(t),t.Dropdown2())},this,[e]):e==FallenType.FallenR?egret.Tween.get(this).wait(100).call(function(){t.CurFallenIndex<t.MaxFallenIndex?(++t.CurFallenIndex,t._FallenR.source=RES.getRes("FallenR"+t.CurFallenIndex),t.FallenAniFun(e)):(egret.Tween.removeTweens(t),t.Dropdown2())},this,[e]):e==FallenType.FallenOn&&egret.Tween.get(this).wait(100).call(function(){t.CurFallenIndex<t.MaxFallenIndex?(++t.CurFallenIndex,t._FallenOn.source=RES.getRes("FallenOn"+t.CurFallenIndex),t.FallenAniFun(e)):(egret.Tween.removeTweens(t),t.Dropdown2())},this,[e])},t}(JcGameBaseView);__reflect(JumperClass.prototype,"JumperClass");var FallenType;!function(e){e[e.FallenBottom=1]="FallenBottom",e[e.FallenL=2]="FallenL",e[e.FallenOn=3]="FallenOn",e[e.FallenR=4]="FallenR"}(FallenType||(FallenType={}));var LoadingUI=function(e){function t(t,i){var n=e.call(this)||this;return n.skinName="LoadingUISkin",n.width=t,n.height=i,n.addEventListener(eui.UIEvent.CREATION_COMPLETE,n.init,n),n}return __extends(t,e),t.prototype.childrenCreated=function(){this.left=this.right=this.top=this.bottom=0},t.prototype.init=function(){this.LoadingBg.x=this.Loading.x=.1*egret.MainContext.instance.stage.stageWidth,this.LoadingBg.y=this.Loading.y=.5*egret.MainContext.instance.stage.stageHeight;var e=RES.getRes("Loading_p"),t=RES.getRes("Loading_j");this.Particlesystem=new particle.GravityParticleSystem(e,t),this.addChildAt(this.Particlesystem,1),this.Particlesystem.x=.1*egret.MainContext.instance.stage.stageWidth-200,this.Particlesystem.y=.1*egret.MainContext.instance.stage.stageHeight+100,this.Particlesystem.start()},t.prototype.setProgress=function(e,t,i){this.textField.text="Loading..."+parseInt((e/t*100).toString())+"%",this.textField2.text="当前正在加载资源:"+i,this.Loading.width=580*(e/t)},t}(eui.Component);__reflect(LoadingUI.prototype,"LoadingUI");var Main=function(e){function t(){var t=e.apply(this,arguments)||this;return t.isThemeLoadEnd=!1,t.isResourceLoadEnd=!1,t}return __extends(t,e),t.prototype.createChildren=function(){e.prototype.createChildren.call(this);var t=new AssetAdapter;egret.registerImplementation("eui.IAssetAdapter",t),egret.registerImplementation("eui.IThemeAdapter",new ThemeAdapter),RES.addEventListener(RES.ResourceEvent.CONFIG_COMPLETE,this.onConfigComplete,this),RES.loadConfig("resource/default.res.json","resource/")},t.prototype.onConfigComplete=function(e){RES.removeEventListener(RES.ResourceEvent.CONFIG_COMPLETE,this.onConfigComplete,this);var t=new eui.Theme("resource/default.thm.json",this.stage);t.addEventListener(eui.UIEvent.COMPLETE,this.onThemeLoadComplete,this),RES.addEventListener(RES.ResourceEvent.GROUP_COMPLETE,this.onResourceLoadComplete,this),RES.addEventListener(RES.ResourceEvent.GROUP_LOAD_ERROR,this.onResourceLoadError,this),RES.addEventListener(RES.ResourceEvent.GROUP_PROGRESS,this.onResourceProgress,this),RES.addEventListener(RES.ResourceEvent.ITEM_LOAD_ERROR,this.onItemLoadError,this)},t.prototype.onThemeLoadComplete=function(){this.isThemeLoadEnd=!0,RES.loadGroup("loading"),this.loadingView=new LoadingUI(this.width,this.height)},t.prototype.onResourceLoadComplete=function(e){"preload"==e.groupName?(this.loadingView.Particlesystem.stop(),this.stage.removeChild(this.loadingView),RES.removeEventListener(RES.ResourceEvent.GROUP_COMPLETE,this.onResourceLoadComplete,this),RES.removeEventListener(RES.ResourceEvent.GROUP_LOAD_ERROR,this.onResourceLoadError,this),RES.removeEventListener(RES.ResourceEvent.GROUP_PROGRESS,this.onResourceProgress,this),RES.removeEventListener(RES.ResourceEvent.ITEM_LOAD_ERROR,this.onItemLoadError,this),this.isResourceLoadEnd=!0,this.createScene()):"loading"==e.groupName&&(RES.loadGroup("preload"),this.stage.addChild(this.loadingView))},t.prototype.createScene=function(){this.isThemeLoadEnd&&this.isResourceLoadEnd&&this.startCreateScene()},t.prototype.onItemLoadError=function(e){console.warn("Url:"+e.resItem.url+" has failed to load")},t.prototype.onResourceLoadError=function(e){console.warn("Group:"+e.groupName+" has failed to load"),this.onResourceLoadComplete(e)},t.prototype.onResourceProgress=function(e){"preload"==e.groupName&&this.loadingView.setProgress(e.itemsLoaded,e.itemsTotal,e.resItem.name)},t.prototype.startCreateScene=function(){var e=this;Data._Mian=this,egret.Capabilities.isMobile&&(this.stage.scaleMode=egret.StageScaleMode.FIXED_NARROW);var t=GameMian.instance;this.addChild(t),this.stage.setContentSize(1080,1920),this.addChild(CommonMain.instance);var i=new WeixinUtil;i.initWeixinInfo("中翼科技带您玩转升级版“跳一跳”，祝您好运！","中翼科技，跳动2018，带您体验不一样的跳一跳，来Happy吧！",function(){e.sharefun()})},t.prototype.RestGame=function(){Data.jumpTimes=0,this.contains(GameMian.instance)&&(this.removeChild(GameMian.instance),GameMian._instance=null);var e=GameMian.instance;this.addChild(e),e.RestGame()},t.prototype.sharefun=function(){CommonMain.instance._loadingrun.Show();var e="",t=Data.DomainUrl+"/game/share?user_id="+Data.PlayerId,i=new egret.HttpRequest;i.responseType=egret.HttpResponseType.TEXT,i.open(t,egret.HttpMethod.GET),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.send(e),i.addEventListener(egret.Event.COMPLETE,this.sharefunComplete,this)},t.prototype.sharefunComplete=function(e){CommonMain.instance._loadingrun.Hide();var t=e.currentTarget,i=String(t.response),n=JSON.parse(i);1e3==n.code&&(Data.LuckyNumber+=1,GameMian.instance._LuckyUi.Update()),alert(n.message)},t}(eui.UILayer);__reflect(Main.prototype,"Main");var EndPage=function(e){function t(){var t=e.call(this)||this;return t.skinName="EndPageSkin",t.top=t.bottom=t.right=t.left=0,t}return __extends(t,e),t.prototype.init=function(){var e=this;this.RestBt.addEventListener(egret.TouchEvent.TOUCH_TAP,function(){Data._Mian.RestGame()},this),this._rankUiBt.addEventListener(egret.TouchEvent.TOUCH_TAP,function(){GameMian.instance._RankUi.Show(),e.Hide()},this),this._RulesBt.addEventListener(egret.TouchEvent.TOUCH_TAP,function(){Data.IsFilinInfo?GameMian.instance._LuckyUi.Show():GameMian.instance._FilliInfo.Show(),e.Hide()},this),this.Hide()},t.prototype.Show=function(){this._ScoreLabel.text=Data._PlayerScore.toString(),this.visible=!0,Data.IsTest||this.UpdataSorceFun()},t.prototype.GameSmallRankFun=function(){CommonMain.instance._loadingrun.Show();var e="",t=Data.DomainUrl+"/game/smallpai?user_id="+Data.PlayerId,i=new egret.HttpRequest;i.responseType=egret.HttpResponseType.TEXT,i.open(t,egret.HttpMethod.GET),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.send(e),i.addEventListener(egret.Event.COMPLETE,this.GetGameSmallRankComplete,this),console.log(t)},t.prototype.GetGameSmallRankComplete=function(e){CommonMain.instance._loadingrun.Hide();var t=e.currentTarget,i=String(t.response),n=JSON.parse(i);if(this.PlayerInfo1.visible=!1,this.PlayerInfo2.visible=!1,this.PlayerInfo3.visible=!1,"1000"==n.code)for(var s=0,o=0;o<n.result.length;o++)s=o+1,this["PlayerInfo"+s].visible=!0,this["_index"+s].text=n.result[o].pai,this["_headimg"+s].source=n.result[o].headimgurl,this["_Score"+s].text=n.result[o].score,this["_name"+s].text=n.result[o].nickname},t.prototype.UpdataSorceFun=function(){CommonMain.instance._loadingrun.Show();var e="",t=Data.DomainUrl+"/game/gameover?user_id="+Data.PlayerId+"&score="+Data._PlayerScore,i=new egret.HttpRequest;i.responseType=egret.HttpResponseType.TEXT,i.open(t,egret.HttpMethod.GET),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.send(e),i.addEventListener(egret.Event.COMPLETE,this.GetUpdataSorceComplete,this)},t.prototype.GetUpdataSorceComplete=function(e){CommonMain.instance._loadingrun.Hide();var t=e.currentTarget,i=String(t.response),n=JSON.parse(i);"1000"==n.code?this.GameSmallRankFun():CommonMain.instance._tips.Show(n.message)},t}(JcGameBaseView);__reflect(EndPage.prototype,"EndPage");var FilliInfo=function(e){function t(){var t=e.call(this)||this;return t.skinName="FilliInfoSkin",t.top=t.bottom=t.right=t.left=0,t}return __extends(t,e),t.prototype.init=function(){var e=this;this._tel.inputType=egret.TextFieldInputType.TEL,this.Hide(),this.SubmitBt.addEventListener(egret.TouchEvent.TOUCH_TAP,function(){""==e._tel.text||""==e._name.text?CommonMain.instance._tips.Show("填写完整信息"):e.requestFilliInfo()},this)},t.prototype.requestFilliInfo=function(){CommonMain.instance._loadingrun.Show();var e="",t=Data.DomainUrl+"/game/submit?user_id="+Data.PlayerId+"&mobile="+this._tel.text+"&realname="+this._name.text,i=new egret.HttpRequest;i.responseType=egret.HttpResponseType.TEXT,i.open(t,egret.HttpMethod.GET),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.send(e),i.addEventListener(egret.Event.COMPLETE,this.GetFilliInfoComplete,this)},t.prototype.GetFilliInfoComplete=function(e){CommonMain.instance._loadingrun.Hide();var t=e.currentTarget,i=String(t.response),n=JSON.parse(i);"1003"==n.code||"1000"==n.code&&(Data.IsFilinInfo=!0),CommonMain.instance._tips.Show(n.message),this.Hide(),GameMian.instance._LuckyUi.Show()},t}(JcGameBaseView);__reflect(FilliInfo.prototype,"FilliInfo");var LuckyUi=function(e){function t(){var t=e.call(this)||this;return t.skinName="LuckyUiSkin",t.top=t.bottom=t.right=t.left=0,t}return __extends(t,e),t.prototype.init=function(){this.Hide(),this._Lucky.addEventListener(egret.TouchEvent.TOUCH_TAP,this.luckingFun,this)},t.prototype.Show=function(){this.visible=!0,this.requestUserinfo()},t.prototype.Update=function(){this._LuckyNumber.text=Data.LuckyNumber.toString()},t.prototype.luckingFun=function(){this.LuckingFun()},t.prototype.requestUserinfo=function(){CommonMain.instance._loadingrun.Show();var e="",t=Data.DomainUrl+"/game/user?user_id="+Data.PlayerId,i=new egret.HttpRequest;i.responseType=egret.HttpResponseType.TEXT,i.open(t,egret.HttpMethod.GET),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.send(e),i.addEventListener(egret.Event.COMPLETE,this.GetUserinfoComplete,this)},t.prototype.GetUserinfoComplete=function(e){CommonMain.instance._loadingrun.Hide();var t=e.currentTarget,i=String(t.response),n=JSON.parse(i);"1003"==n.code||"1000"==n.code&&(Data.IsFilinInfo=n.result.is_new,Data.LuckyNumber=n.result.number,this.Update())},t.prototype.LuckingFun=function(){CommonMain.instance._loadingrun.Show();var e="",t=Data.DomainUrl+"/game/choujiang?user_id="+Data.PlayerId,i=new egret.HttpRequest;i.responseType=egret.HttpResponseType.TEXT,i.open(t,egret.HttpMethod.GET),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.send(e),i.addEventListener(egret.Event.COMPLETE,this.GetluckingComplete,this)},t.prototype.GetluckingComplete=function(e){CommonMain.instance._loadingrun.Hide();var t=e.currentTarget,i=String(t.response),n=JSON.parse(i);Data.LuckyNumber--,"1000"==n.code?null==n.result.good_img?(this.Hide(),GameMian.instance._RulesBad.Show()):(this.Hide(),GameMian.instance._RulesWin.Show(n.result)):CommonMain.instance._tips.Show(n.message)},t}(JcGameBaseView);__reflect(LuckyUi.prototype,"LuckyUi");var AssetAdapter=function(){function e(){}return e.prototype.getAsset=function(e,t,i){function n(n){t.call(i,n,e)}if(RES.hasRes(e)){var s=RES.getRes(e);s?n(s):RES.getResAsync(e,n,this)}else RES.getResByUrl(e,n,this,RES.ResourceItem.TYPE_IMAGE)},e}();__reflect(AssetAdapter.prototype,"AssetAdapter",["eui.IAssetAdapter"]);var MyLuckySing=function(e){function t(t,i){var n=e.call(this)||this;return n._text1=t,n._text2=i,n.skinName="MyLuckySingSkin",n}return __extends(t,e),t.prototype.init=function(){this.ItemLabel1.text=this._text1,this.ItemLabel2.text=this._text2},t}(JcGameBaseView);__reflect(MyLuckySing.prototype,"MyLuckySing");var PageSecen1=function(e){function t(){var t=e.call(this)||this;return t.skinName="PageSecen1Skin",t.top=t.bottom=t.right=t.left=0,t}return __extends(t,e),t.prototype.init=function(){var e=this;this.Show(),GameMian.instance.PlayBgSound(!1),this.addEventListener(egret.TouchEvent.TOUCH_TAP,function(){e.Hide(),GameMian.instance.PlayBgSound(!0),GameMian.instance._Page2.Show()},this),this.AniFun()},t.prototype.AniFun=function(){var e=this;egret.Tween.get(this.NextSecen).to({scaleX:1.1,scaleY:1.1},500).to({scaleX:1,scaleY:1},500).to({scaleX:.9,scaleY:.9},500).call(function(){e.AniFun()})},t}(JcGameBaseView);__reflect(PageSecen1.prototype,"PageSecen1");var PageSecen2=function(e){function t(){var t=e.call(this)||this;return t.skinName="PageSecen2Skin",t.top=t.bottom=t.right=t.left=0,t}return __extends(t,e),t.prototype.init=function(){var e=this;this.Hide(),this.StartGameBt.addEventListener(egret.TouchEvent.TOUCH_TAP,function(){GameMian.instance.IsCanTouch=!0,GameMian.instance.StopBgSound(),e.Hide()},this),this._rank.addEventListener(egret.TouchEvent.TOUCH_TAP,function(){GameMian.instance._RankUi.Show()},this),this._Rules.addEventListener(egret.TouchEvent.TOUCH_TAP,function(){GameMian.instance._Rules.Show()},this),this._MyLuckyIco.addEventListener(egret.TouchEvent.TOUCH_TAP,function(){e.IsRead.visible=!1,GameMian.instance._MyLucky.Show()},this),this.IsRead.visible=!1,this.ReadFun()},t.prototype.ReadFun=function(){CommonMain.instance._loadingrun.Show();var e="",t=Data.DomainUrl+"/game/status?user_id="+Data.PlayerId,i=new egret.HttpRequest;i.responseType=egret.HttpResponseType.TEXT,i.open(t,egret.HttpMethod.GET),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.send(e),i.addEventListener(egret.Event.COMPLETE,this.GetReadComplete,this)},t.prototype.GetReadComplete=function(e){CommonMain.instance._loadingrun.Hide();var t=e.currentTarget,i=String(t.response),n=JSON.parse(i);1e3==n.code?this.IsRead.visible=n.result.status:this.IsRead.visible=!1},t}(JcGameBaseView);__reflect(PageSecen2.prototype,"PageSecen2");var RankUi=function(e){function t(){var t=e.call(this)||this;return t.RankAry=[],t.skinName="RankUiSkin",t.top=t.bottom=t.right=t.left=0,t}return __extends(t,e),t.prototype.init=function(){var e=this;this.RetureGame.addEventListener(egret.TouchEvent.TOUCH_TAP,function(){GameMian.instance._Page2.visible?e.Hide():Data._Mian.RestGame()},this),this.Hide()},t.prototype.Show=function(){this.visible=!0,this.GameBigRankFun()},t.prototype.ReadData=function(e){var t=0;this.RankGourp.removeChildren();for(var i=0;i<e.length;i++)if(i>=3){var n=new SingleRankUi(i+1,e[i].headimgurl,e[i].nickname,e[i].score);n.x=0,n.y=146*(i-3),this.RankAry.push(n),this.RankGourp.addChild(n)}else t=i+1,this["_WinIndex"+t].visible=!0,this["_name"+t].text=e[i].nickname,this["_headimg"+t].source=e[i].headimgurl,this["_scroe"+t].text=e[i].score},t.prototype.GameBigRankFun=function(){CommonMain.instance._loadingrun.Show();var e="",t=Data.DomainUrl+"/game/bigpai",i=new egret.HttpRequest;i.responseType=egret.HttpResponseType.TEXT,i.open(t,egret.HttpMethod.GET),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.send(e),i.addEventListener(egret.Event.COMPLETE,this.GetGameSmallRankComplete,this)},t.prototype.GetGameSmallRankComplete=function(e){CommonMain.instance._loadingrun.Hide();var t=e.currentTarget,i=String(t.response),n=JSON.parse(i);"1000"==n.code&&this.ReadData(n.result)},t}(JcGameBaseView);__reflect(RankUi.prototype,"RankUi");var Special1=function(e){function t(){var t=e.call(this)||this;return t._Type=1,t.m_stayscore=30,t.m_speed=1.5,t.m_ReboundSpeed=15,t.Reboundcoefficient=1,t.MaxHeight=127,t.MinHeight=63.5,t.IsStart=!1,t.IsRebound=!1,t.IsReboundLev1=!1,t.IsReboundLev2=!1,t.IsReboundLev3=!1,t.ReboundTime=300,t.IsFirstStay=!1,t.skinName="Special1Skin",t._Type=Data.RandomNumBoth(1,1),t}return __extends(t,e),t.prototype.init=function(){this.addEventListener(egret.Event.ENTER_FRAME,this.OnFrame,this),this.imgPosy=this.img.y,this.ImgRigthPosy=this.ImgRigth.y,this.ImgleftPosy=this.Imgleft.y,this.m_CenterImg.visible=!1,this.MianGourp.y=this.MianGourp.y-200,this.DropdownAni(),this.img.source=RES.getRes("Special"+this._Type+"_1"),this.ImgRigth.source=RES.getRes("Special"+this._Type+"_3"),this.Imgleft.source=RES.getRes("Special"+this._Type+"_2")},t.prototype.DropdownAni=function(){var e=this;egret.Tween.get(this.MianGourp).wait(200).to({y:this.MianGourp.y+200},500,egret.Ease.backOut).call(function(){e.m_CenterImg.visible=!0})},t.prototype.OnFrame=function(){this.IsStart&&this.ImgRigth.height>this.MinHeight&&(this.ImgRigth.height=this.ImgRigth.height-this.m_speed,this.Imgleft.height=this.Imgleft.height-this.m_speed,this.img.y=this.img.y+this.m_speed,this.ImgRigth.y=this.ImgRigth.y+this.m_speed,this.Imgleft.y=this.Imgleft.y+this.m_speed),this.IsRebound&&(this.ImgRigth.height<1.1*this.MaxHeight&&this.IsReboundLev1?(this.ImgRigth.height=this.ImgRigth.height+this.m_ReboundSpeed,this.Imgleft.height=this.Imgleft.height+this.m_ReboundSpeed,this.img.y=this.img.y-this.m_ReboundSpeed,this.ImgRigth.y=this.ImgRigth.y-this.m_ReboundSpeed,this.Imgleft.y=this.Imgleft.y-this.m_ReboundSpeed):this.IsReboundLev1&&(this.IsReboundLev1=!1,this.IsReboundLev2=!0),this.ImgRigth.height>.9*this.MaxHeight&&this.IsReboundLev2?(this.ImgRigth.height=this.ImgRigth.height-this.m_ReboundSpeed*this.Reboundcoefficient,this.Imgleft.height=this.Imgleft.height-this.m_ReboundSpeed*this.Reboundcoefficient,this.img.y=this.img.y+this.m_ReboundSpeed*this.Reboundcoefficient,this.ImgRigth.y=this.ImgRigth.y+this.m_ReboundSpeed*this.Reboundcoefficient,this.Imgleft.y=this.Imgleft.y+this.m_ReboundSpeed*this.Reboundcoefficient):this.IsReboundLev2&&(this.IsReboundLev1=!1,this.IsReboundLev2=!1,this.IsReboundLev3=!0),this.ImgRigth.height<this.MaxHeight&&this.IsReboundLev3?(this.ImgRigth.height=this.ImgRigth.height+this.m_ReboundSpeed*this.Reboundcoefficient,this.Imgleft.height=this.Imgleft.height+this.m_ReboundSpeed*this.Reboundcoefficient,this.img.y=this.img.y-this.m_ReboundSpeed*this.Reboundcoefficient,this.ImgRigth.y=this.ImgRigth.y-this.m_ReboundSpeed*this.Reboundcoefficient,this.Imgleft.y=this.Imgleft.y-this.m_ReboundSpeed*this.Reboundcoefficient):this.IsReboundLev3&&(this.IsReboundLev1=!1,this.IsReboundLev2=!1,this.IsReboundLev3=!1,this.IsRebound=!1))},t.prototype.StartFun=function(){this.IsStart=!0},t.prototype.StopFun=function(){this.IsStart=!1},t.prototype.RemoveFun=function(){this.IsStart=!1,this.removeEventListener(egret.Event.ENTER_FRAME,this.OnFrame,this)},t.prototype.ReboundAni=function(){this.StopFun(),this.IsRebound=!0,this.IsReboundLev1=!0},t.prototype.Show=function(){this.DropdownAni()},t.prototype.JumpOn=function(){var e=this;this.IsFirstStay||(this.IsFirstStay=!0,egret.Tween.get(this.m_CenterImg).wait(2e3).call(function(){GameMian.instance.PlaySound(GameMian.instance.ditiemp3),Data._PlayerScore+=e.m_stayscore,GameMian.instance._Jumper.AddScoreFun(e.m_stayscore,"地铁2号线（矿机站）")}))},t.prototype.Jumpleave=function(){egret.Tween.removeTweens(this.m_CenterImg)},t}(JcGameBaseView);__reflect(Special1.prototype,"Special1");var RulesUi=function(e){function t(){var t=e.call(this)||this;
  return t.skinName="RulesUiSkin",t.top=t.bottom=t.right=t.left=0,t}return __extends(t,e),t.prototype.init=function(){var e=this;this.HideBt.addEventListener(egret.TouchEvent.TOUCH_TAP,function(){e.Hide()},this)},t.prototype.Show=function(){this.visible=!0,this.TextGetFun()},t.prototype.TextGetFun=function(){CommonMain.instance._loadingrun.Show();var e="",t=Data.DomainUrl+"/game/wfsm",i=new egret.HttpRequest;i.responseType=egret.HttpResponseType.TEXT,i.open(t,egret.HttpMethod.GET),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.send(e),i.addEventListener(egret.Event.COMPLETE,this.TextGetComplete,this)},t.prototype.TextGetComplete=function(e){CommonMain.instance._loadingrun.Hide();var t=e.currentTarget,i=String(t.response),n=JSON.parse(i),s="";s=n.content;for(var o=s.split("&"),h="",a=0;a<o.length;a++)h+=o[a]+"\n";this.content.text=h,this.title.text=n.title},t}(JcGameBaseView);__reflect(RulesUi.prototype,"RulesUi");var RulesWinUi=function(e){function t(){var t=e.call(this)||this;return t.skinName="RulesWinSkin",t.top=t.bottom=t.right=t.left=0,t}return __extends(t,e),t.prototype.init=function(){var e=this;this._luckingBt.addEventListener(egret.TouchEvent.TOUCH_TAP,function(){Data.IsFilinInfo?GameMian.instance._LuckyUi.Show():GameMian.instance._FilliInfo.Show(),e.Hide()},this),this._RetrueBt.addEventListener(egret.TouchEvent.TOUCH_TAP,function(){Data._Mian.RestGame()},this)},t.prototype.Show=function(e){this.visible=!0,this._winimg.source=e.good_img,this._index.text=e.good_levelname,this.TextGetFun()},t.prototype.TextGetFun=function(){CommonMain.instance._loadingrun.Show();var e="",t=Data.DomainUrl+"/game/zjsm",i=new egret.HttpRequest;i.responseType=egret.HttpResponseType.TEXT,i.open(t,egret.HttpMethod.GET),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.send(e),i.addEventListener(egret.Event.COMPLETE,this.TextGetComplete,this),console.log(t)},t.prototype.TextGetComplete=function(e){CommonMain.instance._loadingrun.Hide();var t=e.currentTarget,i=String(t.response),n=JSON.parse(i),s="";s=n.content;for(var o=s.split("&"),h="",a=0;a<o.length;a++)h+=o[a]+"\n";this.content.text=h},t}(JcGameBaseView);__reflect(RulesWinUi.prototype,"RulesWinUi");var SingleRankUi=function(e){function t(t,i,n,s){var o=e.call(this)||this;return o.skinName="SingleRankUiSkin",o._url=i,o._index=t,o._name=n,o._socre=s,o}return __extends(t,e),t.prototype.init=function(){this._HeadImg.source=this._url,this._indexLabel.text=this._index,this._NameLabel.text=this._name,this._SocreLabel.text=this._socre},t.prototype.Updata=function(e,t,i,n){this._HeadImg.source=t,this._indexLabel.text=e,this._NameLabel.text=i,this._SocreLabel.text=n},t}(JcGameBaseView);__reflect(SingleRankUi.prototype,"SingleRankUi");var ThemeAdapter=function(){function e(){}return e.prototype.getTheme=function(e,t,i,n){function s(e){t.call(n,e)}function o(t){t.resItem.url==e&&(RES.removeEventListener(RES.ResourceEvent.ITEM_LOAD_ERROR,o,null),i.call(n))}RES.addEventListener(RES.ResourceEvent.ITEM_LOAD_ERROR,o,null),RES.getResByUrl(e,s,this,RES.ResourceItem.TYPE_TEXT)},e}();__reflect(ThemeAdapter.prototype,"ThemeAdapter",["eui.IThemeAdapter"]);var Genera11=function(e){function t(){var t=e.call(this)||this;return t._Type=1,t.m_stayscore=0,t.m_speed=1.5,t.m_ReboundSpeed=15,t.Reboundcoefficient=1,t.MaxHeight=290,t.MinHeight=232,t.IsStart=!1,t.IsRebound=!1,t.IsReboundLev1=!1,t.IsReboundLev2=!1,t.IsReboundLev3=!1,t.ReboundTime=300,t.IsFirstStay=!1,t.skinName="Genera11Skin",t._Type=Data.RandomNumBoth(1,2),t}return __extends(t,e),t.prototype.init=function(){this.addEventListener(egret.Event.ENTER_FRAME,this.OnFrame,this),this.imgPosy=this.img.y,this.ImgRigthPosy=this.ImgRigth.y,this.m_CenterImg.visible=!1,this.MianGourp.y=this.MianGourp.y-200,this.DropdownAni(),this.img.source=RES.getRes("2Genera"+this._Type+"_1"),this.ImgRigth.source=RES.getRes("2Genera"+this._Type+"_2")},t.prototype.DropdownAni=function(){var e=this;egret.Tween.get(this.MianGourp).wait(200).to({y:this.MianGourp.y+200},500,egret.Ease.backOut).call(function(){e.m_CenterImg.visible=!0})},t.prototype.OnFrame=function(){this.IsStart&&this.ImgRigth.height>this.MinHeight&&(this.ImgRigth.height=this.ImgRigth.height-this.m_speed,this.img.y=this.img.y+this.m_speed,this.ImgRigth.y=this.ImgRigth.y+this.m_speed),this.IsRebound&&(this.ImgRigth.height<1.1*this.MaxHeight&&this.IsReboundLev1?(this.ImgRigth.height=this.ImgRigth.height+this.m_ReboundSpeed,this.img.y=this.img.y-this.m_ReboundSpeed,this.ImgRigth.y=this.ImgRigth.y-this.m_ReboundSpeed):this.IsReboundLev1&&(this.IsReboundLev1=!1,this.IsReboundLev2=!0),this.ImgRigth.height>.9*this.MaxHeight&&this.IsReboundLev2?(this.ImgRigth.height=this.ImgRigth.height-this.m_ReboundSpeed*this.Reboundcoefficient,this.img.y=this.img.y+this.m_ReboundSpeed*this.Reboundcoefficient,this.ImgRigth.y=this.ImgRigth.y+this.m_ReboundSpeed*this.Reboundcoefficient):this.IsReboundLev2&&(this.IsReboundLev1=!1,this.IsReboundLev2=!1,this.IsReboundLev3=!0),this.ImgRigth.height<this.MaxHeight&&this.IsReboundLev3?(this.ImgRigth.height=this.ImgRigth.height+this.m_ReboundSpeed*this.Reboundcoefficient,this.img.y=this.img.y-this.m_ReboundSpeed*this.Reboundcoefficient,this.ImgRigth.y=this.ImgRigth.y-this.m_ReboundSpeed*this.Reboundcoefficient):this.IsReboundLev3&&(this.IsReboundLev1=!1,this.IsReboundLev2=!1,this.IsReboundLev3=!1,this.IsRebound=!1))},t.prototype.StartFun=function(){this.IsStart=!0},t.prototype.StopFun=function(){this.IsStart=!1},t.prototype.RemoveFun=function(){this.IsStart=!1,this.removeEventListener(egret.Event.ENTER_FRAME,this.OnFrame,this)},t.prototype.ReboundAni=function(){this.StopFun(),this.IsRebound=!0,this.IsReboundLev1=!0},t.prototype.Show=function(){this.DropdownAni()},t.prototype.JumpOn=function(){this.IsFirstStay||(this.IsFirstStay=!0)},t.prototype.Jumpleave=function(){},t}(JcGameBaseView);__reflect(Genera11.prototype,"Genera11");var Genera1=function(e){function t(){var t=e.call(this)||this;return t._Type=1,t.m_stayscore=0,t.m_speed=1.5,t.m_ReboundSpeed=15,t.Reboundcoefficient=1,t.MaxHeight=127,t.MinHeight=63.5,t.IsStart=!1,t.IsRebound=!1,t.IsReboundLev1=!1,t.IsReboundLev2=!1,t.IsReboundLev3=!1,t.ReboundTime=300,t.IsFirstStay=!1,t.skinName="Genera1Skin",t._Type=Data.RandomNumBoth(1,11),t}return __extends(t,e),t.prototype.init=function(){this.addEventListener(egret.Event.ENTER_FRAME,this.OnFrame,this),this.imgPosy=this.img.y,this.ImgRigthPosy=this.ImgRigth.y,this.ImgleftPosy=this.Imgleft.y,this.m_CenterImg.visible=!1,this.MianGourp.y=this.MianGourp.y-200,this.DropdownAni(),this.img.source=RES.getRes("Genera"+this._Type+"_1"),this.ImgRigth.source=RES.getRes("Genera"+this._Type+"_3"),this.Imgleft.source=RES.getRes("Genera"+this._Type+"_2")},t.prototype.DropdownAni=function(){var e=this;egret.Tween.get(this.MianGourp).wait(200).to({y:this.MianGourp.y+200},500,egret.Ease.backOut).call(function(){e.m_CenterImg.visible=!0})},t.prototype.OnFrame=function(){this.IsStart&&this.ImgRigth.height>this.MinHeight&&(this.ImgRigth.height=this.ImgRigth.height-this.m_speed,this.Imgleft.height=this.Imgleft.height-this.m_speed,this.img.y=this.img.y+this.m_speed,this.ImgRigth.y=this.ImgRigth.y+this.m_speed,this.Imgleft.y=this.Imgleft.y+this.m_speed),this.IsRebound&&(this.ImgRigth.height<1.1*this.MaxHeight&&this.IsReboundLev1?(this.ImgRigth.height=this.ImgRigth.height+this.m_ReboundSpeed,this.Imgleft.height=this.Imgleft.height+this.m_ReboundSpeed,this.img.y=this.img.y-this.m_ReboundSpeed,this.ImgRigth.y=this.ImgRigth.y-this.m_ReboundSpeed,this.Imgleft.y=this.Imgleft.y-this.m_ReboundSpeed):this.IsReboundLev1&&(this.IsReboundLev1=!1,this.IsReboundLev2=!0),this.ImgRigth.height>.9*this.MaxHeight&&this.IsReboundLev2?(this.ImgRigth.height=this.ImgRigth.height-this.m_ReboundSpeed*this.Reboundcoefficient,this.Imgleft.height=this.Imgleft.height-this.m_ReboundSpeed*this.Reboundcoefficient,this.img.y=this.img.y+this.m_ReboundSpeed*this.Reboundcoefficient,this.ImgRigth.y=this.ImgRigth.y+this.m_ReboundSpeed*this.Reboundcoefficient,this.Imgleft.y=this.Imgleft.y+this.m_ReboundSpeed*this.Reboundcoefficient):this.IsReboundLev2&&(this.IsReboundLev1=!1,this.IsReboundLev2=!1,this.IsReboundLev3=!0),this.ImgRigth.height<this.MaxHeight&&this.IsReboundLev3?(this.ImgRigth.height=this.ImgRigth.height+this.m_ReboundSpeed*this.Reboundcoefficient,this.Imgleft.height=this.Imgleft.height+this.m_ReboundSpeed*this.Reboundcoefficient,this.img.y=this.img.y-this.m_ReboundSpeed*this.Reboundcoefficient,this.ImgRigth.y=this.ImgRigth.y-this.m_ReboundSpeed*this.Reboundcoefficient,this.Imgleft.y=this.Imgleft.y-this.m_ReboundSpeed*this.Reboundcoefficient):this.IsReboundLev3&&(this.IsReboundLev1=!1,this.IsReboundLev2=!1,this.IsReboundLev3=!1,this.IsRebound=!1))},t.prototype.StartFun=function(){this.IsStart=!0},t.prototype.StopFun=function(){this.IsStart=!1},t.prototype.RemoveFun=function(){this.IsStart=!1,this.removeEventListener(egret.Event.ENTER_FRAME,this.OnFrame,this)},t.prototype.ReboundAni=function(){this.StopFun(),this.IsRebound=!0,this.IsReboundLev1=!0},t.prototype.Show=function(){this.DropdownAni()},t.prototype.JumpOn=function(){this.IsFirstStay||(this.IsFirstStay=!0)},t.prototype.Jumpleave=function(){},t}(JcGameBaseView);__reflect(Genera1.prototype,"Genera1");var GameMian=function(e){function t(){var t=e.call(this)||this;return t.timesstart=0,t.IsCanTouch=!1,t.IsBegin=!1,t.m_jumpdistance=0,t.m_TotoJumpdistance=0,t.M_TotoMovedistance=0,t.LastIdstancecenter=0,t.HouseAry=[],t.Mindistance=290,t.Maxdistance=500,t.Mindistance2=350,t.Maxdistance2=500,t.JumpdistanceTemp=0,t.jumpMidx=384,t.jumpMidy=1011,t.shierzhongmp3="shierzhong",t.xiaoxuemp3="xiaoxue",t.youeryuanmp3="youeryuan",t.chaoshimp3="chaoshi",t.ditiemp3="ditie",t.jumpmp3="jump",t.skinName="GameMianSkin",t.addEventListener(eui.UIEvent.CREATION_COMPLETE,t.init,t),t.addEventListener(egret.Event.ADDED_TO_STAGE,t.OnStage,t),t.top=t.bottom=t.right=t.left=0,t}return __extends(t,e),Object.defineProperty(t,"instance",{get:function(){return null==t._instance&&(t._instance=new t),t._instance},enumerable:!0,configurable:!0}),t.prototype.PlayBgSound=function(e){e?"iOS"==egret.Capabilities.os&&(this.m_Bgsound=RES.getRes("bgmp3"),this.m_Bgsound.type=egret.Sound.MUSIC,this.m_BgSoundChannel=this.m_Bgsound.play(0,-1)):"iOS"!=egret.Capabilities.os&&(this.m_Bgsound=RES.getRes("bgmp3"),this.m_Bgsound.type=egret.Sound.MUSIC,this.m_BgSoundChannel=this.m_Bgsound.play(0,-1))},t.prototype.StopBgSound=function(){this.m_BgSoundChannel&&this.m_BgSoundChannel.stop()},t.prototype.init=function(){this.HouseAry.push(this.StartHouse),this.NewHouseFun(!0,!1),this.SetJumpToCenter(),this.TempFun(),this.ObtainPlayerCode()},t.prototype.OnStage=function(){this.stage.addEventListener(egret.TouchEvent.TOUCH_BEGIN,this.TouchBeginFun,this),this.stage.addEventListener(egret.TouchEvent.TOUCH_END,this.TouchEndFun,this)},t.prototype.TouchBeginFun=function(){this.IsCanTouch&&(this.IsBegin=!0,console.log("timesstart:"+this.timesstart),this.timesstart=egret.getTimer(),this.HouseAry[this.HouseAry.length-2].StartFun(),this._Jumper.StartFun(this.jumptype),this.HouseAry[this.HouseAry.length-2].Jumpleave())},t.prototype.TouchEndFun=function(){console.log("IsCanTouch:"+this.IsCanTouch),this.IsCanTouch&&this.IsBegin&&(this._Jumper.StopEff(),this.Check(),this.IsCanTouch=!1,this.IsBegin=!1,this.HouseAry[this.HouseAry.length-2].ReboundAni(),this.PlaySound(this.jumpmp3),this.jumperfun(),this.HouseGourp.setChildIndex(this._Jumper,this.HouseGourp.numChildren+1))},t.prototype.SetJumpToCenter=function(){var e=this.HouseAry[this.HouseAry.length-2].m_CenterImg.localToGlobal().x,t=this.HouseAry[this.HouseAry.length-2].m_CenterImg.localToGlobal().y;this._Jumper.x=this.HouseGourp.globalToLocal(e,t).x-this._Jumper.width/2+7,this._Jumper.y=this.HouseGourp.globalToLocal(e,t).y-this._Jumper.height+40},t.prototype.Check=function(){this.lastjumptype!=this.jumptype&&(console.log("类型不一样"),this.SetJumpToCenter(),this.m_TotoJumpdistance=0,this.M_TotoMovedistance=0,this.LastIdstancecenter=0)},t.prototype.jumperfun=function(){var e=egret.getTimer()-this.timesstart;e>2e3&&(e=2e3),console.log("这次直接距离："+this.m_Movedistance),console.log("本次跳跃："+e*this._Jumper.m_speed),this.m_jumpdistance=e*this._Jumper.m_speed,0==this.JumpdistanceTemp&&(this.M_TotoMovedistance+=this.m_Movedistance),this.m_TotoJumpdistance+=this.m_jumpdistance,this.jumptype==JumpType.JumpToLeft?this._Jumper.PlayJmperToR(300):this._Jumper.PlayJmperToL(300),this.jumptype==JumpType.JumpToLeft?egret.Tween.get(this._Jumper).to({x:this._Jumper.x+Math.abs(e*this._Jumper.m_speed*Math.sin(30)),y:this._Jumper.y-Math.abs(e*this._Jumper.m_speed*Math.cos(40))},300):egret.Tween.get(this._Jumper).to({x:this._Jumper.x+e*this._Jumper.m_speed*Math.sin(-133),y:this._Jumper.y+e*this._Jumper.m_speed*Math.cos(-134)},300),this.lastjumptype=this.jumptype},t.prototype.setmainsocre=function(){this._MainSocre.text=Data._PlayerScore.toString()},t.prototype.CheckWin=function(){var e=this.M_TotoMovedistance-this.m_TotoJumpdistance;console.log("本次偏中心移量Check:"+e),this.LastIdstancecenter=-e,Math.abs(e)<15?(console.log("跳入中心"),++Data._ComboTimes,Data._PlayerScore+=2*Data._ComboTimes,this._Jumper.AddScoreFun(2*Data._ComboTimes),this._Jumper.JumpDropEff(),this._Jumper.CenterEffFun(),t.instance.IsCanTouch=!0,this.HouseGourp.setChildIndex(this.HouseAry[this.HouseAry.length-1],1),this.HouseGourp.setChildIndex(this._Jumper,3),this.HouseGourp.setChildIndex(this.HouseAry[this.HouseAry.length-2],2),this.HouseAry[this.HouseAry.length-1].JumpOn()):Math.abs(e)<120&&Math.abs(e)>100?(this._Jumper.DisvisibleFun(),console.log("边缘掉落"),t.instance.IsCanTouch=!1,this.lastjumptype==JumpType.JumpToLeft?e>0?(console.log("FallenBottom"),this._Jumper._FallenBottom.visible=!0,this._Jumper.FallenAniFun(FallenType.FallenBottom),this.HouseGourp.setChildIndex(this.HouseAry[this.HouseAry.length-1],1),this.HouseGourp.setChildIndex(this._Jumper,2),this.HouseGourp.setChildIndex(this.HouseAry[this.HouseAry.length-2],3)):(console.log("FallenOn"),this._Jumper._FallenOn.visible=!0,this._Jumper.FallenAniFun(FallenType.FallenOn),this.HouseGourp.setChildIndex(this.HouseAry[this.HouseAry.length-1],3),this.HouseGourp.setChildIndex(this._Jumper,2),this.HouseGourp.setChildIndex(this.HouseAry[this.HouseAry.length-2],1)):e>0?(console.log("FallenR"),this._Jumper._FallenR.visible=!0,this._Jumper.FallenAniFun(FallenType.FallenR),this.HouseGourp.setChildIndex(this.HouseAry[this.HouseAry.length-2],3),this.HouseGourp.setChildIndex(this.HouseAry[this.HouseAry.length-1],1),this.HouseGourp.setChildIndex(this._Jumper,2)):(console.log("FallenL"),this._Jumper._FallenL.visible=!0,this._Jumper.FallenAniFun(FallenType.FallenL),this.HouseGourp.setChildIndex(this.HouseAry[this.HouseAry.length-1],2),this.HouseGourp.setChildIndex(this._Jumper,1))):Math.abs(e)>=115?(console.log("掉下"),this._Jumper.Dropdown(),t.instance.IsCanTouch=!1,e>0?(this.HouseGourp.setChildIndex(this.HouseAry[this.HouseAry.length-1],1),this.HouseGourp.setChildIndex(this._Jumper,2),this.HouseGourp.setChildIndex(this.HouseAry[this.HouseAry.length-2],1)):(this.HouseGourp.setChildIndex(this.HouseAry[this.HouseAry.length-1],2),this.HouseGourp.setChildIndex(this._Jumper,1)),this.JumpdistanceTemp>0&&this.JumpdistanceTemp<this.m_Movedistance&&(this.HouseGourp.setChildIndex(this.HouseAry[this.HouseAry.length-2],3),this.HouseGourp.setChildIndex(this._Jumper,2))):(console.log("正常跳"),++Data._ComboTimes,Data._PlayerScore+=Data._AddBaseScore,Data._ComboTimes=0,this._Jumper.AddScoreFun(Data._AddBaseScore),this._Jumper.JumpDropEff(),t.instance.IsCanTouch=!0,this.HouseGourp.setChildIndex(this.HouseAry[this.HouseAry.length-1],1),this.HouseGourp.setChildIndex(this._Jumper,3),this.HouseGourp.setChildIndex(this.HouseAry[this.HouseAry.length-2],2),this.HouseAry[this.HouseAry.length-1].JumpOn())},t.prototype.TempFun=function(){var e=Math.atan2(this.StartHouse1.y-this.StartHouse0.y,this.StartHouse1.x-this.StartHouse0.x);180*e/Math.PI},t.prototype.jumpcontrolFun=function(){++Data.jumpTimes,Data.jumpTimes<10?(this.Mindistance=290,this.Maxdistance=300):Data.jumpTimes>10&&Data.jumpTimes<15?(this.Mindistance=400,this.Maxdistance=500):Data.jumpTimes>15&&Data.jumpTimes<30?(this.Mindistance=290,this.Maxdistance=400):Data.jumpTimes>40&&(this.Mindistance=290,this.Maxdistance=500)},t.prototype.NewHouseFun=function(e,t){void 0===e&&(e=!1),this.jumpcontrolFun();var i=JumpType.JumpToLeft;if(e){var n=new Data.gameCls;this.m_Movedistance=Data.RandomNumBoth(this.Mindistance,this.Maxdistance),this.jumptype=JumpType.JumpToLeft,n.x=this.HouseAry[this.HouseAry.length-1].x+Math.abs(this.m_Movedistance*Math.sin(30)),n.y=this.HouseAry[this.HouseAry.length-1].y-Math.abs(this.m_Movedistance*Math.cos(40)),this.HouseGourp.addChild(n),this.HouseAry.push(n)}else{var s=new Data.gameCls;i=this.HouseAry[this.HouseAry.length-1].localToGlobal().x>560?JumpType.JumpToOn:this.HouseAry[this.HouseAry.length-1].localToGlobal().x<240?JumpType.JumpToLeft:Math.random()>0?JumpType.JumpToLeft:JumpType.JumpToOn,i==JumpType.JumpToLeft?(this.m_Movedistance=Data.RandomNumBoth(this.Mindistance,this.Maxdistance),this.jumptype=JumpType.JumpToLeft,s.x=this.HouseAry[this.HouseAry.length-1].x+Math.abs(this.m_Movedistance*Math.sin(30)),s.y=this.HouseAry[this.HouseAry.length-1].y-Math.abs(this.m_Movedistance*Math.cos(40))):(this.m_Movedistance=Data.RandomNumBoth(this.Mindistance2,this.Maxdistance2),this.jumptype=JumpType.JumpToOn,s.x=this.HouseAry[this.HouseAry.length-1].x+this.m_Movedistance*Math.sin(-133),s.y=this.HouseAry[this.HouseAry.length-1].y+this.m_Movedistance*Math.cos(-134)),this.HouseGourp.addChild(s),this.HouseAry.push(s)}t||(this.HouseAry[this.HouseAry.length-1].localToGlobal().x>700||this.HouseAry[this.HouseAry.length-1].localToGlobal().x<20)&&this.MoveScene2(),this.HouseGourp.setChildIndex(this.HouseAry[this.HouseAry.length-1],0)},t.prototype.RankToDirection=function(){this.JumpdistanceTemp+=this.m_jumpdistance,console.log("JumpdistanceTemp："+this.JumpdistanceTemp),console.log("LastIdstancecenter："+this.LastIdstancecenter),console.log("没有跳出去距离中心位子："+(this.LastIdstancecenter+this.JumpdistanceTemp)),this.LastIdstancecenter+this.JumpdistanceTemp<110?this.IsCanTouch=!0:(t.instance.CheckWin(),this.JumpdistanceTemp=0,this._Jumper.localToGlobal().x<400?this._Jumper.localToGlobal().y>600?this.MoveScene(!1):this.MoveScene(!0):this._Jumper.localToGlobal().y>600?this.MoveScene(!1):this.MoveScene(!0))},t.prototype.MoveScene=function(e){var t=this;e?egret.Tween.get(this.HouseGourp).to({x:this.HouseGourp.x-(this._Jumper.localToGlobal().x-this.jumpMidx),y:this.HouseGourp.y-(this._Jumper.localToGlobal().y-this.jumpMidy)},600).call(function(){t.NewHouseFun(!1,!0)}):this.NewHouseFun(!1,!1)},t.prototype.MoveScene2=function(){console.log("MoveScene2"),this.jumptype==JumpType.JumpToLeft?egret.Tween.get(this.HouseGourp).to({x:this.HouseGourp.x-(this._Jumper.localToGlobal().x-196),y:this.HouseGourp.y-(this._Jumper.localToGlobal().y-1387)},1e3):egret.Tween.get(this.HouseGourp).to({x:this.HouseGourp.x-(this._Jumper.localToGlobal().x-this.jumpMidx),y:this.HouseGourp.y-(this._Jumper.localToGlobal().y-this.jumpMidy)},1e3)},t.prototype.RankBgColor=function(){},t.prototype.RestGame=function(){this._Page1.Hide(),this._Page2.Hide(),this.IsCanTouch=!0,Data._PlayerScore=0,Data._ComboTimes=0,this.StopBgSound()},t.prototype.PlaySound=function(e){null!=this.m_Sound&&this.m_SoundChannel.stop(),Data.IsGameEff&&(this.m_Sound=RES.getRes(e),this.m_Sound.type=egret.Sound.EFFECT,this.m_SoundChannel=this.m_Sound.play(0,1))},t.prototype.ObtainPlayerCode=function(){Data.PlayerId=Data.getQueryString("user_id"),null==Data.PlayerId&&(Data.PlayerId=367),this.requestUserinfo()},t.prototype.requestUserinfo=function(){CommonMain.instance._loadingrun.Show();var e="",t=Data.DomainUrl+"/game/user?user_id="+Data.PlayerId,i=new egret.HttpRequest;i.responseType=egret.HttpResponseType.TEXT,i.open(t,egret.HttpMethod.GET),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.send(e),i.addEventListener(egret.Event.COMPLETE,this.GetUserinfoComplete,this)},t.prototype.GetUserinfoComplete=function(e){CommonMain.instance._loadingrun.Hide();var t=e.currentTarget,i=String(t.response),n=JSON.parse(i);"1003"==n.code||"1000"==n.code&&(Data.IsFilinInfo=n.result.is_new,Data.LuckyNumber=n.result.number)},t}(eui.Component);GameMian._instance=null,__reflect(GameMian.prototype,"GameMian");var JumpMustType;!function(e){e[e.JumpToNull=0]="JumpToNull",e[e.JumpToLeft=1]="JumpToLeft",e[e.JumpToOn=2]="JumpToOn"}(JumpMustType||(JumpMustType={}));var JumpType;!function(e){e[e.JumpToNull=0]="JumpToNull",e[e.JumpToLeft=1]="JumpToLeft",e[e.JumpToOn=2]="JumpToOn"}(JumpType||(JumpType={}));var MoveType;!function(e){e[e.JumpNull=0]="JumpNull",e[e.JumpToLeft=1]="JumpToLeft",e[e.JumpToOn=2]="JumpToOn"}(MoveType||(MoveType={}));var WeixinUtil=function(){function e(){this._imgUrl="http://localhost/tyt/head.png"}return e.prototype.initWeixinInfo=function(t,i,n){this.share_success=n;var s=window.location.href,o=encodeURIComponent(s);this._link="http://localhost/tyt/game/wechat.html",this._title=t,this._desc=i;var h=e.netAddr,a=new egret.URLLoader;a.dataFormat=egret.URLLoaderDataFormat.TEXT,a.addEventListener(egret.Event.COMPLETE,this.onGet_WeiXinComplete,this);var r=new egret.URLRequest(h);r.method=egret.URLRequestMethod.GET,r.data=new egret.URLVariables("url="+o),a.load(r)},e.prototype.successShare=function(){},e.prototype.onGet_WeiXinComplete=function(t){var i=this,n=JSON.parse(t.target.data);e.bodyConfig=new BodyConfig,e.bodyConfig.appId=n.appId,e.bodyConfig.debug=!1,e.bodyConfig.timestamp=n.timestamp,e.bodyConfig.nonceStr=n.nonceStr,e.bodyConfig.signature=n.signature,e.bodyConfig.jsApiList=["checkJsApi","onMenuShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareWeibo","hideMenuItems","showMenuItems","hideAllNonBaseMenuItem","showAllNonBaseMenuItem","translateVoice","startRecord","stopRecord","onRecordEnd","playVoice","pauseVoice","stopVoice","uploadVoice","downloadVoice","chooseImage","previewImage","uploadImage","downloadImage","getNetworkType","openLocation","getLocation","hideOptionMenu","showOptionMenu","closeWindow","scanQRCode","chooseWXPay","openProductSpecificView","addCard","chooseCard","openCard"],wx.config(e.bodyConfig),wx.ready(function(){e.appInfo=new BodyMenuShareAppMessage,e.appInfo.title=i._title,e.appInfo.desc=i._desc,e.appInfo.link=i._link,e.appInfo.imgUrl=i._imgUrl,e.appInfo.type="link",e.appInfo.success=function(){null!=i.share_success&&i.share_success()},wx.onMenuShareAppMessage(e.appInfo),e.timelineInfo=new BodyMenuShareTimeline,e.timelineInfo.imgUrl=i._imgUrl,e.timelineInfo.link=i._link,e.timelineInfo.title=i._title,e.timelineInfo.success=function(){null!=i.share_success&&i.share_success()},wx.onMenuShareTimeline(e.timelineInfo)})},e}();WeixinUtil.netAddr="http://localhost/tyt/game/fenxiang",__reflect(WeixinUtil.prototype,"WeixinUtil");var Data=function(){function e(){}return e.RandomNumBoth=function(e,t){var i=t-e,n=Math.random(),s=e+Math.round(n*i);return s},Object.defineProperty(e,"gameCls",{get:function(){var e="";e=Math.random()<.5?"Genera1":Math.random()<.9?"Genera11":"Special2",Math.random()<.1&&(e=Math.random()<.5?"Special1":"Special3");var t=egret.getDefinitionByName(e);return t},enumerable:!0,configurable:!0}),e.PoPoLongFun=function(e,t){for(var i,n=999,s=0;s<t.length;s++)n>Math.abs(e-t[s])&&(n=Math.abs(e-t[s]),i=s);return t[i]},e.getQueryString=function(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)","i"),i=window.location.search.substr(1).match(t);return null!=i?i[2]:null},e}();Data.IsTest=!1,Data.jumpTimes=0,Data.DomainUrl="http://localhost/tyt/",Data.PlayerCode=1111,Data.PlayerId=22,Data.IsFilinInfo=!1,Data.LuckyNumber=0,Data.GameCofigAry=["Genera1","Genera11","Special1","Special2","Special3"],Data.IsGameEff=!0,Data._AddBaseScore=1,Data._PlayerScore=0,Data._ComboTimes=0,__reflect(Data.prototype,"Data");var TipsCommon=function(e){function t(){var t=e.call(this)||this;return t.skinName="TipsSkin",t.left=t.right=t.top=t.bottom=0,t.addEventListener(eui.UIEvent.CREATION_COMPLETE,t.init,t),t}return __extends(t,e),t.prototype.init=function(){},t.prototype.Show=function(e){var t=this;egret.Tween.removeTweens(this),this.visible=!0,this.tipslabel.text=e,egret.Tween.get(this).to({alpha:1},500).wait(2e3).to({alpha:0},500).call(function(){t.visible=!1})},t.prototype.Hide=function(){this.visible=!1,this.alpha=0},t}(eui.Component);__reflect(TipsCommon.prototype,"TipsCommon");var LoadingRun=function(e){function t(){var t=e.call(this)||this;return t.skinName="LoadingRunSkin",t.left=t.right=t.top=t.bottom=0,t.addEventListener(eui.UIEvent.CREATION_COMPLETE,t.init,t),t}return __extends(t,e),t.prototype.init=function(){},t.prototype.RunAni=function(){var e=this;egret.Tween.get(this.loading).to({rotation:360},2e3).call(function(){e.RunAni()})},t.prototype.Show=function(){this.visible=!0,this.RunAni()},t.prototype.Hide=function(){this.visible=!1,egret.Tween.removeTweens(this.loading)},t}(eui.Component);__reflect(LoadingRun.prototype,"LoadingRun");var DialogUi=function(e){function t(){var t=e.call(this)||this;return t.skinName="DialogUiSkin",t.left=t.right=t.top=t.bottom=0,t.addEventListener(eui.UIEvent.CREATION_COMPLETE,t.init,t),t}return __extends(t,e),t.prototype.init=function(){var e=this;this.addEventListener(egret.TouchEvent.TOUCH_TAP,function(){e.Hide()},this)},t.prototype.Show=function(e){this.MessageLabel.text=e,this._mask.visible=!0,this.visible=!0,this.MianGourp.visible=!0,this.MianGourp.scaleX=this.MianGourp.scaleY=.7,egret.Tween.get(this.MianGourp).to({scaleX:1,scaleY:1},700,egret.Ease.backOut).call(function(){})},t.prototype.Hide=function(){var e=this;egret.Tween.get(this.MianGourp).call(function(){e.visible=!1})},t}(eui.Component);__reflect(DialogUi.prototype,"DialogUi");var CommonMain=function(e){function t(){var t=e.call(this)||this;return t.skinName="CommonMainSkin",t.left=t.right=t.top=t.bottom=0,t.addEventListener(eui.UIEvent.CREATION_COMPLETE,t.init,t),t}return __extends(t,e),t.prototype.init=function(){},Object.defineProperty(t,"instance",{get:function(){return null==t._instance&&(t._instance=new t),t._instance},enumerable:!0,configurable:!0}),t}(eui.Component);CommonMain._instance=null,__reflect(CommonMain.prototype,"CommonMain");var MyLucky=function(e){function t(){var t=e.call(this)||this;return t.skinName="MyLuckySkin",t.top=t.bottom=t.right=t.left=0,t}return __extends(t,e),t.prototype.init=function(){var e=this;this.RetureGame.addEventListener(egret.TouchEvent.TOUCH_TAP,function(){e.Hide()},this)},t.prototype.Show=function(){this.visible=!0,this.GameLuckingFun()},t.prototype.ReadData=function(e){this.ItemGourp.removeChildren();for(var t=0;t<e.length;t++){var i=new MyLuckySing(e[t].name,e[t].content);i.x=12,i.y=230*t,this.ItemGourp.addChild(i)}},t.prototype.GameLuckingFun=function(){CommonMain.instance._loadingrun.Show();var e="",t=Data.DomainUrl+"/game/zjlist?user_id="+Data.PlayerId,i=new egret.HttpRequest;i.responseType=egret.HttpResponseType.TEXT,i.open(t,egret.HttpMethod.GET),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.send(e),i.addEventListener(egret.Event.COMPLETE,this.GetLuckingRankComplete,this)},t.prototype.GetLuckingRankComplete=function(e){CommonMain.instance._loadingrun.Hide();var t=e.currentTarget,i=String(t.response),n=JSON.parse(i);"1000"==n.code&&this.ReadData(n.result)},t}(JcGameBaseView);__reflect(MyLucky.prototype,"MyLucky");