/** * 微信授权界面 * @author kaka */ import JsbSystem from "../../../mk/system/JsbSystem"; const { ccclass, property} = cc._decorator; @ccclass export default class AuthUI extends cc.Component { @property({ type: cc.Label, displayName: '描述' }) lbl_des: cc.Label = null; start(){ if(gData.gameData.authUIType == 0) { this.lbl_des.string = '红包将提现至微信,登陆后立即到账'; }else if(gData.gameData.authUIType == 1){ this.lbl_des.string = '登陆后即可邀请微信好友一起玩'; }else{ this.lbl_des.string = '登陆后即可提现红包至微信'; } } clickAuth() { mk.audio.playEffect('button'); JsbSystem.WxAuth(); } onEnable() { mk.ad.showNative(); } onDisable() { mk.ad.destroyNativeAd(); } }