123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- import UIMgr from "../base/UIMgr";
- cc.Class({
- extends: cc.Component,
- properties: {
-
- },
- // LIFE-CYCLE CALLBACKS:
- // onLoad () {},
- start () {
- },
- setType(type, faterJs){
- this.type = type;
- this.faterJs = faterJs;
- },
- setCloseCb(cb){
- this.cb = cb;
- },
- //鸿运礼包
- onClickHongyun(){
- if(this.type == 0)
- return;
- UIMgr.openUI('prefabs/FortuneGiftLayer');
- this.faterJs.onClose();
- },
- //满享礼包
- onClickManxiang(){
- if(this.type == 1)
- return;
- UIMgr.openUI('prefabs/SupplyLayer');
- this.faterJs.onClose();
- },
- //赏金站令
- onClickZhanling(){
- if(this.type == 2)
- return;
- UIMgr.openUI('prefabs/ShangCardLayer');
- this.faterJs.onClose();
- },
- //存钱罐
- onClickPig(){
- if(this.type == 3)
- return;
- UIMgr.openUI('prefabs/PigLayer');
- this.faterJs.onClose();
- },
- });
|