|
@@ -70,10 +70,11 @@ cc.Class({
|
|
|
// }
|
|
|
// })
|
|
|
|
|
|
- // if (CC_QQPLAY) {
|
|
|
- // this.QQLogin();
|
|
|
- // this.initShare();
|
|
|
- // }
|
|
|
+ if (CC_QQPLAY) {
|
|
|
+ // this.QQLogin();
|
|
|
+ // this.initShare();
|
|
|
+ UserInfo.showIndexBanner();
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
start() {
|
|
@@ -91,7 +92,6 @@ cc.Class({
|
|
|
BK.Console.log('登录成功')
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
// initShare(data) {
|
|
|
// let datavalue = UserInfo.getString('allscore');
|
|
|
// let key = UserInfo.getCurWeekScoreValue();
|
|
@@ -153,11 +153,6 @@ cc.Class({
|
|
|
// },
|
|
|
|
|
|
onRankBtn: function (event, optData) {
|
|
|
- console.log('onrankbtn:', optData)
|
|
|
- // wx.postMessage({
|
|
|
- // method: 'showFriendRank',
|
|
|
- // data: optData
|
|
|
- // });
|
|
|
|
|
|
cc.find("Canvas/PHB").getChildByName("BtnPHBClose").active = (optData == "true");
|
|
|
cc.find("Canvas/PHB").getChildByName("emptyBtn").active = (optData == "true");
|
|
@@ -165,16 +160,12 @@ cc.Class({
|
|
|
|
|
|
if (this.node.active) {
|
|
|
if ("true" == optData) {
|
|
|
- // window.indexBanner.hide();
|
|
|
+ UserInfo.destroyIndexBanner();
|
|
|
this.rankScene.status = 1;
|
|
|
this.showRank();
|
|
|
}
|
|
|
if ("false" == optData) {
|
|
|
- // window.indexBanner.show();
|
|
|
- // wx.postMessage({
|
|
|
- // method: 'hideRank',
|
|
|
- // data: optData
|
|
|
- // });
|
|
|
+ UserInfo.showIndexBanner();
|
|
|
cc.find("Canvas/PHB").active = false;
|
|
|
}
|
|
|
} else {
|
|
@@ -207,7 +198,7 @@ cc.Class({
|
|
|
|
|
|
onGameStartBtn: function () {
|
|
|
this.node.parent.getChildByName("SkinNode").active = false;
|
|
|
- // window.indexBanner.hide();
|
|
|
+ UserInfo.destroyIndexBanner();
|
|
|
if (this.showGuide()) {
|
|
|
this.GuideNode.active = true;
|
|
|
} else {
|
|
@@ -254,10 +245,10 @@ cc.Class({
|
|
|
sumScoreLabel.getComponent("cc.Label").string = UserInfo.getTotalGold();
|
|
|
|
|
|
this.updateSkinNode();
|
|
|
- // window.indexBanner.hide();
|
|
|
+ UserInfo.destroyIndexBanner();
|
|
|
} else if (optData == "false") {
|
|
|
this.node.parent.getChildByName("SkinNode").active = false;
|
|
|
- // window.indexBanner.show();
|
|
|
+ UserInfo.showIndexBanner();
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -339,7 +330,7 @@ cc.Class({
|
|
|
|
|
|
onGuideBtn: function (event) {
|
|
|
this.node.parent.getChildByName("Guide").active = false;
|
|
|
- // window.indexBanner.show();
|
|
|
+ // UserInfo.showIndexBanner();
|
|
|
},
|
|
|
|
|
|
onNextBtn: function (event, optData) {
|
|
@@ -386,14 +377,6 @@ cc.Class({
|
|
|
},
|
|
|
|
|
|
onShareBtn: function () {
|
|
|
- if (CC_WECHATGAME) {
|
|
|
- var data = {
|
|
|
- titleData: UserInfo.shareDesc,
|
|
|
- imgurlData: UserInfo.shareUrl
|
|
|
- }
|
|
|
- WxCommon.ShareAppMessage(data, this, null);
|
|
|
- }
|
|
|
-
|
|
|
if (CC_QQPLAY) {
|
|
|
var data = {
|
|
|
titleData: UserInfo.shareDesc,
|
|
@@ -451,7 +434,5 @@ cc.Class({
|
|
|
cc.audioEngine.playEffect(this.buttonAudio);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
// update (dt) {},
|
|
|
});
|