Commit 59348590 authored by 刘俊's avatar 刘俊

添加单独开关

parent 636569f7
...@@ -10262,7 +10262,7 @@ ...@@ -10262,7 +10262,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 93, "width": 89,
"height": 40 "height": 40
}, },
"_rotationX": 0, "_rotationX": 0,
...@@ -34405,7 +34405,7 @@ ...@@ -34405,7 +34405,7 @@
}, },
"_contentSize": { "_contentSize": {
"__type__": "cc.Size", "__type__": "cc.Size",
"width": 72, "width": 71,
"height": 27 "height": 27
}, },
"_rotationX": 0, "_rotationX": 0,
...@@ -35994,7 +35994,7 @@ ...@@ -35994,7 +35994,7 @@
} }
], ],
"_tag": -1, "_tag": -1,
"_active": true, "_active": false,
"_components": [], "_components": [],
"_prefab": null, "_prefab": null,
"_id": "41axZ41jhCy6eO973OcmUa", "_id": "41axZ41jhCy6eO973OcmUa",
...@@ -36116,7 +36116,7 @@ ...@@ -36116,7 +36116,7 @@
}, },
"_children": [], "_children": [],
"_tag": -1, "_tag": -1,
"_active": true, "_active": false,
"_components": [ "_components": [
{ {
"__id__": 912 "__id__": 912
......
...@@ -4,7 +4,7 @@ var sdk_conf = { ...@@ -4,7 +4,7 @@ var sdk_conf = {
//.游戏唯一标识:由游戏技术修改 //.游戏唯一标识:由游戏技术修改
game: 'yiqiqieshuiguo-weixin', game: 'yiqiqieshuiguo-weixin',
//.当前游戏版本:由游戏技术修改 //.当前游戏版本:由游戏技术修改
version: '2.2.2', version: '2.2.3',
//以下广告ID获取已经废弃,改成从服务端配置config4中获取 //以下广告ID获取已经废弃,改成从服务端配置config4中获取
//.banner广告单元id //.banner广告单元id
......
...@@ -212,9 +212,11 @@ cc.Class({ ...@@ -212,9 +212,11 @@ cc.Class({
if(!sdk.getConfig4().ipLimit){ //ip限制 if(!sdk.getConfig4().ipLimit){ //ip限制
if(sdk.getConfig1().sns){ if(sdk.getConfig1().sns){
//一刀切奖励推送 //一刀切奖励推送
if(cc.HQ.GameMgr.isACut){ if(sdk.getConfig2().yidaqieSW){
this._parentJS.yidaqieTipsUI.getComponent("yidaqieTipsUI").init(200); if(cc.HQ.GameMgr.isACut){
this._parentJS.yidaqieTipsUI.active =true; this._parentJS.yidaqieTipsUI.getComponent("yidaqieTipsUI").init(200);
this._parentJS.yidaqieTipsUI.active =true;
}
} }
} }
} }
......
...@@ -470,7 +470,11 @@ cc.Class({ ...@@ -470,7 +470,11 @@ cc.Class({
self.qiandaoUI.getChildByName("day_7").children[signDay].getChildByName("today").active = true; self.qiandaoUI.getChildByName("day_7").children[signDay].getChildByName("today").active = true;
self.qiandaoUI.getChildByName("day_7").children[signDay].getChildByName("yiqiandao").active = false; self.qiandaoUI.getChildByName("day_7").children[signDay].getChildByName("yiqiandao").active = false;
self.qiandaoUI.getChildByName("lingqu").active = true; self.qiandaoUI.getChildByName("lingqu").active = true;
self.qiandaoUI.getChildByName("xuanyao").active = true; //签到炫耀开关
if(sdk.getConfig2().qiandaoSW){
self.qiandaoUI.getChildByName("xuanyao").active = true;
self.qiandaoUI.getChildByName("xuanyao").getChildByName("gouxuan_on").active = true;
}
self.qiandaoUI.getChildByName("sure").active = false; self.qiandaoUI.getChildByName("sure").active = false;
//显示领取对应的奖励 //显示领取对应的奖励
self.qiandaoUI.getComponent("qinadaoUI").init(reward[signDay]); self.qiandaoUI.getComponent("qinadaoUI").init(reward[signDay]);
......
...@@ -15,15 +15,15 @@ cc.Class({ ...@@ -15,15 +15,15 @@ cc.Class({
}, },
onEnable: function(){ onEnable: function(){
if(this.node.getChildByName("xuanyao").getChildByName("gouxuan_on").active == false){ // if(this.node.getChildByName("xuanyao").getChildByName("gouxuan_on").active == false){
this.node.getChildByName("xuanyao").getChildByName("gouxuan_on").active = true; // this.node.getChildByName("xuanyao").getChildByName("gouxuan_on").active = true;
this.node.getChildByName("xuanyao").getChildByName("gouxuan_off").active = false; // this.node.getChildByName("xuanyao").getChildByName("gouxuan_off").active = false;
} // }
}, },
init: function(data){ init: function(data){
this._data =data; this._data =data;
console.log("签到签到签到签到签到签到签到",this._data); // console.log("签到签到签到签到签到签到签到",this._data);
}, },
//领取奖励 //领取奖励
......
...@@ -48,16 +48,21 @@ cc.Class({ ...@@ -48,16 +48,21 @@ cc.Class({
guessYouLike.setPosition(0,-320); guessYouLike.setPosition(0,-320);
} }
} }
//再来一次按钮/炫耀有奖按钮开关 //再来一次按钮/
if(sdk.getConfig1().fs){ if(sdk.getConfig1().fs){
this.moreBtn.active =true; this.moreBtn.active =true;
this.showRewardBtn.active =true;
this.lingjinbiBtn.active =true; this.lingjinbiBtn.active =true;
}else{ }else{
this.moreBtn.active =false; this.moreBtn.active =false;
this.showRewardBtn.active =false;
this.lingjinbiBtn.active =false; this.lingjinbiBtn.active =false;
} }
//炫耀有奖按钮开关
if(sdk.getConfig2().jiesuanSW){
this.showRewardBtn.active =true;
}else{
this.showRewardBtn.active =false;
}
} }
if (cc.sys.platform == cc.sys.WECHAT_GAME) { if (cc.sys.platform == cc.sys.WECHAT_GAME) {
......
...@@ -84,7 +84,7 @@ cc.Class({ ...@@ -84,7 +84,7 @@ cc.Class({
}else{ }else{
this.bounsBtn.active =false; this.bounsBtn.active =false;
if(cc.sys.platform == cc.sys.WECHAT_GAME) { if(cc.sys.platform == cc.sys.WECHAT_GAME) {
if(sdk.getConfig1().hz){ if(sdk.getConfig2().jiangliSW){
this.jiangliBtn.active =true; this.jiangliBtn.active =true;
}else{ }else{
this.jiangliBtn.active =false; this.jiangliBtn.active =false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment