// module g2.account_dep {
//     // 账号登录界面
//     export class AccountLoginView extends ui.account.AccountLoginViewUI {
//         //第三方按钮登录
//         private m_otherLogBtnsView:OtherLoginBtnsView;
//         // 构造函数
//         constructor(){
//             super();
//             this.m_loginBtn.on(Laya.Event.CLICK, this, this.onLoginBtnClick);
//             // this.m_guestBtn.on(Laya.Event.CLICK, this, this.onGuestBtnClick);
//             this.m_forgetBtn.on(Laya.Event.CLICK, this, this.onForgetBtnClick);
//             this.on(Laya.Event.DISPLAY, this, this.onEnter);
//             this.ui_agreement.on(Laya.Event.CLICK, this, this.onAgreementClick);
//             this.ui_privacy.on(Laya.Event.CLICK, this, this.onPrivacyClick);
//             this.ui_agreementCheck.on(Laya.Event.CLICK, this, this.onAgreementCheckClick);
//             //第三方登录按纽
//             this.m_otherLogBtnsView = new OtherLoginBtnsView(Handler.create(
//                 this,():boolean => {
//                     return this.ui_agreementCheck1.visible;
//                 },null,false));
//             this.m_otherLogBtnsView.anchorX = 0.5;
//             this.m_otherLogBtnsView.x = this.ui_otherLogView.width / 2.0;
//             this.ui_otherLogView.addChild(this.m_otherLogBtnsView);
//         }
//         private onEnter(){
//             //this.refreshGuestBtn();
//         }
//         // 登录按钮点击
//         private onLoginBtnClick(){
//             // 检查用户协议是否勾选
//             if(!this.ui_agreementCheck1.visible) {
//                 G2ViewMgr.inst().tip("请仔细阅读游戏用户协议、隐私保护协议，并确认勾选框处于勾选状态.");
//                 return;
//             }
//             // 收集参数,验证参数
//             let mobile:string = this.m_mobileInput.text;
//             let password:string = this.m_passwordInput.text;
//             if(!g.common.Common.checkMobile(mobile)){
//                 G2ViewMgr.inst().tip("手机号码格式不正确");
//                 return;
//             }
//             // 调用接口
//             let accountMgr:g2.account.G2AccountMgr = g2.account.G2AccountMgr.inst();
//             // accountMgr.d_passwordLogin(mobile, password);
//             accountMgr.login(G2AccountMgr.makePasswordLoginReq(mobile,password));
//         }
//         // 游客按钮点击
//         private onGuestBtnClick(){
//             // 调用接口
//             let accountMgr:g2.account.G2AccountMgr = g2.account.G2AccountMgr.inst();
//             accountMgr.guest();
//         }
//         // 忘记密码按钮点击
//         private onForgetBtnClick(){
//             // 调用接口
//             let accountMgr:g2.account.G2AccountMgr = g2.account.G2AccountMgr.inst();
//             accountMgr.showForgetPasswordDialog();
//         }
//         // 决定是否隐藏游客登录按钮
//         // 2020.09.10: 仅玩家本地有游客账号时,才显示游客按钮
//         private refreshGuestBtn(){
//             // let localStorageMgr:g2.localstorage.LocalStorageMgr = g2.localstorage.LocalStorageMgr.inst();
//             // if(localStorageMgr.hasGuestAccount()) {
//             //     this.m_guestBtn.visible = true;
//             //     this.m_loginBtn.x = 280;
//             // } else {
//             //     this.m_guestBtn.visible = false;
//             //     this.m_loginBtn.x = 120;
//             // }
//         }
//         // 点击协议勾选框
//         private onAgreementCheckClick(){
//             this.ui_agreementCheck1.visible = !this.ui_agreementCheck1.visible;
//         }
//         // 用户协议链接点击
//         private onAgreementClick(){
//             // 显示协议内容
//             let htmlDialog:g2.view.common.HtmlDialog = new g2.view.common.HtmlDialog();
//             htmlDialog.set("游戏用户协议", Privacy.USER_PROTOCOL);
//             G2ViewMgr.inst().showDialog(htmlDialog, true,null,false);
//         }
//         // 隐私保护链接点击
//         private onPrivacyClick(){
//             // 显示协议内容
//             let htmlDialog:g2.view.common.HtmlDialog = new g2.view.common.HtmlDialog();
//             htmlDialog.set("隐私保护协议", Privacy.PRIVACY_PROTOCOL);
//             G2ViewMgr.inst().showDialog(htmlDialog, true,null,false);
//         }
//     }
// }
//# sourceMappingURL=AccountLoginView.js.map