Commit 01dcb6db authored by wildfirecode's avatar wildfirecode

Merge branch 'dev' of http://gitlab2.dui88.com/wanghongyuan/yyh into dev

parents 9094ff7f 51e6807e
...@@ -29,6 +29,10 @@ ...@@ -29,6 +29,10 @@
"resource/skins/HeadItemSkin.exml", "resource/skins/HeadItemSkin.exml",
"resource/skins/PKRuleSkin.exml", "resource/skins/PKRuleSkin.exml",
"resource/skins/PKPrizeSkin.exml", "resource/skins/PKPrizeSkin.exml",
"resource/skins/FinishSkin.exml",
"resource/skins/RankSkin.exml",
"resource/skins/RankItemSkin.exml",
"resource/skins/ConfirmSkin.exml", "resource/skins/ConfirmSkin.exml",
"resource/skins/JoinShareSkin.exml", "resource/skins/JoinShareSkin.exml",
"resource/skins/PKScoreSkin.exml", "resource/skins/PKScoreSkin.exml",
......
...@@ -102,6 +102,13 @@ export default class StartScene extends Scene { ...@@ -102,6 +102,13 @@ export default class StartScene extends Scene {
PanelCtrl.instance.show(ModuleTypes.PKSCORE_PANEL,this.startdata); PanelCtrl.instance.show(ModuleTypes.PKSCORE_PANEL,this.startdata);
} }
} }
if(data.currentLevel == 8){
if(!GCache.readCache("finishtzw")){
GCache.writeCache("finishtzw",true);
PanelCtrl.instance.show(ModuleTypes.FINISH_PANEL);
}
}
} }
noCredits(){ noCredits(){
...@@ -142,7 +149,7 @@ export default class StartScene extends Scene { ...@@ -142,7 +149,7 @@ export default class StartScene extends Scene {
return; return;
} }
let data = DataManager.ins.getData("rankInfo").data; let data = DataManager.ins.getData("rankInfo").data;
PanelCtrl.instance.show(ModuleTypes.RANK_PANEL); PanelCtrl.instance.show(ModuleTypes.RANK_PANEL,data);
},window['projectId']) },window['projectId'])
} }
onTap_ruleBtn(){ onTap_ruleBtn(){
...@@ -152,6 +159,21 @@ export default class StartScene extends Scene { ...@@ -152,6 +159,21 @@ export default class StartScene extends Scene {
SceneCtrl.instance.change(ModuleTypes.RECORD_SCENE,this.level) SceneCtrl.instance.change(ModuleTypes.RECORD_SCENE,this.level)
} }
unlockArea(){ unlockArea(){
if(this.level == 0){
yzwNet.doStart((s)=>{
if(!s){
ToastCtrl.instance.show("网络异常请重试~");
return;
}
let startdata = DataManager.ins.getData("doStart").data;
let data = {startdata:startdata,type:3};
this.hz.source = "CHNhangzhou_png"
this.hand.visible = false;
this.clearTap(this.unlockBtn,this.GuideFive);
this.onTap(this.unlockBtn,this.unlockArea);
PanelCtrl.instance.show(ModuleTypes.GUIDE_PANEL,data);
},window['projectId'])
}else{
yzwNet.unlockArea((s)=>{ yzwNet.unlockArea((s)=>{
if(!s){ if(!s){
ToastCtrl.instance.show("网络异常请重试~"); ToastCtrl.instance.show("网络异常请重试~");
...@@ -162,6 +184,8 @@ export default class StartScene extends Scene { ...@@ -162,6 +184,8 @@ export default class StartScene extends Scene {
},window['projectId']); },window['projectId']);
} }
}
initEvents(){ initEvents(){
super.initEvents(); super.initEvents();
this.onTap(this.ruleBtn,this.onTap_ruleBtn); this.onTap(this.ruleBtn,this.onTap_ruleBtn);
......
{ {
"code":null, "code":null,
"data":123456, "data":{
"currentUserInfo":{
"count":1,
"rank":2
},
"list":[
{
"count":2,
"phone":"136****4582",
"rank":1,
"userId":"500095001"
},
{
"count":1,
"phone":"null",
"rank":2,
"userId":"1539361"
},
{
"count":1,
"phone":"null",
"rank":3,
"userId":"1539361"
},
{
"count":1,
"phone":"null",
"rank":4,
"userId":"1539361"
},
{
"count":1,
"phone":"null",
"rank":5,
"userId":"1539361"
},
{
"count":1,
"phone":"null",
"rank":6,
"userId":"1539361"
},
{
"count":1,
"phone":"null",
"rank":7,
"userId":"1539361"
},
{
"count":1,
"phone":"null",
"rank":8,
"userId":"1539361"
},
{
"count":1,
"phone":"null",
"rank":10,
"userId":"1539361"
},
{
"count":1,
"phone":"null",
"rank":11,
"userId":"1539361"
}
]
},
"message":null, "message":null,
"success":true "success":true
} }
\ No newline at end of file
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