1、清理仓库
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
var beiMiCommon = require("BeiMiCommon");
|
||||
cc.Class({
|
||||
extends: beiMiCommon,
|
||||
|
||||
properties: {
|
||||
// foo: {
|
||||
// default: null, // The default value will be used only when the component attaching
|
||||
// to a node for the first time
|
||||
// url: cc.Texture2D, // optional, default is typeof default
|
||||
// serializable: true, // optional, default is true
|
||||
// visible: true, // optional, default is true
|
||||
// displayName: 'Foo', // optional
|
||||
// readonly: false, // optional, default is false
|
||||
// },
|
||||
// ...
|
||||
},
|
||||
|
||||
// use this for initialization
|
||||
onLoad: function () {
|
||||
this.node.on(cc.Node.EventType.TOUCH_START, function(e){
|
||||
e.stopPropagation();
|
||||
});
|
||||
/**
|
||||
* 关闭ALERT的回调动作
|
||||
*/
|
||||
this.node.on("close", function (event) {
|
||||
if(cc.beimi!=null && cc.beimi.sessiontimeout == true){
|
||||
cc.beimi.sessiontimeout = null;
|
||||
self.scene("login" , self) ;
|
||||
}
|
||||
event.stopPropagation();
|
||||
});
|
||||
},
|
||||
onClose:function(){
|
||||
let dialog = cc.find("Canvas/alert") ;
|
||||
cc.beimi.dialog.put(dialog);
|
||||
this.node.dispatchEvent( new cc.Event.EventCustom("close", true) );
|
||||
}
|
||||
|
||||
// called every frame, uncomment this function to activate update callback
|
||||
// update: function (dt) {
|
||||
|
||||
// },
|
||||
});
|
||||
Reference in New Issue
Block a user