|
@@ -40,9 +40,21 @@ export default class Setting extends cc.Component {
|
|
|
console.log("=== gData.wechatData.unionid", gData.wechatData.unionid);
|
|
console.log("=== gData.wechatData.unionid", gData.wechatData.unionid);
|
|
|
console.log("=== gData.wechatData.nickName", gData.wechatData.nickName);
|
|
console.log("=== gData.wechatData.nickName", gData.wechatData.nickName);
|
|
|
this.lbl_id.string = "ID:" + mk.string.getNewLimitStr(gData.wechatData.unionid, 10);// 14
|
|
this.lbl_id.string = "ID:" + mk.string.getNewLimitStr(gData.wechatData.unionid, 10);// 14
|
|
|
- this.lbl_nickname.string = gData.wechatData.nickName;
|
|
|
|
|
|
|
+ if (gData.gameData.funOpenData['6'] != '1') {
|
|
|
|
|
+ this.lbl_nickname.string = '';
|
|
|
|
|
+ }
|
|
|
|
|
+ else {
|
|
|
|
|
+ this.lbl_nickname.string = gData.wechatData.nickName;
|
|
|
|
|
+ }
|
|
|
this.lbl_version.string = gData.appData.appVersion;
|
|
this.lbl_version.string = gData.appData.appVersion;
|
|
|
|
|
|
|
|
|
|
+ if (mk.console.ifShowLog) {
|
|
|
|
|
+ this.lbl_group.string = `分组号:${gData.gameData.gameData.groupCode}`;
|
|
|
|
|
+ }
|
|
|
|
|
+ else {
|
|
|
|
|
+ this.lbl_group.string = ``;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
let music = "module/setting/texture/" + (mk.audio.getSwitchMusic() ? "on" : "off");
|
|
let music = "module/setting/texture/" + (mk.audio.getSwitchMusic() ? "on" : "off");
|
|
|
let effect = "module/setting/texture/" + (mk.audio.getSwitchEffect() ? "on" : "off");
|
|
let effect = "module/setting/texture/" + (mk.audio.getSwitchEffect() ? "on" : "off");
|
|
|
this.img_music.spriteFrame = await mk.loader.load(music, cc.SpriteFrame);
|
|
this.img_music.spriteFrame = await mk.loader.load(music, cc.SpriteFrame);
|
|
@@ -52,17 +64,6 @@ export default class Setting extends cc.Component {
|
|
|
let result = await mk.loader.loadRemote(gData.wechatData.avatar + "?aaa=aa.jpg", null);
|
|
let result = await mk.loader.loadRemote(gData.wechatData.avatar + "?aaa=aa.jpg", null);
|
|
|
this.img_head.spriteFrame = new cc.SpriteFrame(result);
|
|
this.img_head.spriteFrame = new cc.SpriteFrame(result);
|
|
|
console.log("=== loadHead:", result);
|
|
console.log("=== loadHead:", result);
|
|
|
-
|
|
|
|
|
- if (mk.console.ifShowLog) {
|
|
|
|
|
- this.lbl_group.string = `分组号:${gData.gameData.gameData.groupCode}`;
|
|
|
|
|
- }
|
|
|
|
|
- else {
|
|
|
|
|
- this.lbl_group.string = ``;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- if (gData.gameData.funOpenData['6'] != '1') {
|
|
|
|
|
- this.lbl_nickname.string = '';
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
clickCopy() {
|
|
clickCopy() {
|