mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
更新登录
This commit is contained in:
@@ -4,6 +4,8 @@ import { Toggle } from 'cc';
|
||||
import { JNSyncAction } from '../../../../extensions/ngame/assets/ngame/sync/JNSyncAction';
|
||||
import { director } from 'cc';
|
||||
import { WorldCanvas } from '../../WorldCanvas';
|
||||
import { StorageData, StorageEnum } from '../../consts/GData';
|
||||
import { GUI } from '../UIConfig';
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@ccclass('HomeView')
|
||||
@@ -39,10 +41,17 @@ export class HomeView extends JNGLayerBase {
|
||||
//前往PVP
|
||||
onClickGoPVP(){
|
||||
director.getScene().getComponentInChildren(WorldCanvas).index = 0;
|
||||
app.layer.Open(GUI.Tips,{text:"切换成功 请点击重置"});
|
||||
}
|
||||
//前往无尽
|
||||
onClickGoOnHook(){
|
||||
director.getScene().getComponentInChildren(WorldCanvas).index = 1;
|
||||
app.layer.Open(GUI.Tips,{text:"切换成功 请点击重置"});
|
||||
}
|
||||
//清除Token
|
||||
onClickToken(){
|
||||
StorageData.delect(StorageEnum.Token);
|
||||
app.layer.Open(GUI.Tips,{text:"清除成功"});
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user