|
|
@@ -5,11 +5,24 @@
|
|
|
|
|
|
import JsbSystem from "../../../mk/system/JsbSystem";
|
|
|
|
|
|
-const { ccclass } = cc._decorator;
|
|
|
+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();
|