登陆页面UI
This commit is contained in:
@@ -67,6 +67,7 @@ export class PreloadUI extends Component {
|
||||
private loginFinish = false; //登录完成
|
||||
|
||||
loginBtn: Node;
|
||||
guestLoginBtn: Node;
|
||||
private jinduBar: Node = null;
|
||||
private jinduFilled: Sprite = null;
|
||||
private VideoPlayer: VideoPlayer;
|
||||
@@ -90,6 +91,10 @@ export class PreloadUI extends Component {
|
||||
this.appVersion = this._nodeTab.appVersion.getComponent(Label);
|
||||
this.loginBtn = this._nodeTab.btnLogin;
|
||||
this.loginBtn.active = false;
|
||||
|
||||
this.guestLoginBtn = this._nodeTab.guestBtnLogin;
|
||||
this.loginBtn.active = false;
|
||||
|
||||
this.appVersion.string = `app version: ${prodConfig.appVersion}`;
|
||||
this.VideoPlayer = this._nodeTab.VideoPlayer.getComponent(VideoPlayer);
|
||||
|
||||
@@ -114,6 +119,7 @@ export class PreloadUI extends Component {
|
||||
this
|
||||
);
|
||||
|
||||
GButton.BandClick(this.guestLoginBtn, this.onGuestLogin, this);
|
||||
GButton.BandClick(this.loginBtn, this.onLogin, this);
|
||||
|
||||
this.jinduBar = this.node.getChildByName("jinduBar");
|
||||
@@ -302,7 +308,10 @@ export class PreloadUI extends Component {
|
||||
startloginProcess() {
|
||||
this.jinduBar.active = false;
|
||||
this.preloadFinish = true;
|
||||
|
||||
//TODO:获取当前有无账号信息
|
||||
this.loginBtn.active = true;
|
||||
this.guestLoginBtn.active = true;
|
||||
}
|
||||
|
||||
//显示加载进度
|
||||
@@ -317,7 +326,7 @@ export class PreloadUI extends Component {
|
||||
// ResManager.I.goCustomScene("LoginScene");
|
||||
// }
|
||||
|
||||
async onLogin() {
|
||||
async onGuestLogin() {
|
||||
// 用户交互时尝试播放视频(如果自动播放失败)
|
||||
if (!this.videoPlayed && this.VideoPlayer) {
|
||||
logger.log("PreloadUI: User interaction detected, trying to play video");
|
||||
@@ -374,6 +383,8 @@ export class PreloadUI extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
async onLogin() {}
|
||||
|
||||
// 请求个人数据
|
||||
private async reqMyInfo() {
|
||||
const reqData = {};
|
||||
|
||||
Reference in New Issue
Block a user