| 12345678910111213141516171819202122232425262728 |
- cc.Class({
- extends: cc.BaseClass,
- properties: {
- },
- InitPre:function(){
- if(this.m_UserCtrl == null) this.m_UserCtrl = this.node.getComponent('UserCtrl');
- this.m_UserCtrl.SetUserByID(0);
- },
- SetPreInfo:function(UserID){
- this.m_UserCtrl.SetUserByID(UserID);
- },
- //检查信息
- CheckUser:function(){
- if (this.m_UserCtrl == null || this.m_UserCtrl.GetUserID() == 0 ) {
- this.ShowTips("用戶資訊异常!");
- return false;
- }
- return true;
- },
- OnBtDelManager:function(){
- if(!this.CheckUser()) return
- this.m_Hook.ShowAlert('是否解除管理許可權?',Alert_YesNo, function(Res){
- if(Res) this.m_Hook.OnOpClubUserLv(this.m_UserCtrl.GetUserID(),CLUB_LEVEL_MEMBER);
- }.bind(this))
- },
- });
|