|
@@ -21,6 +21,7 @@ cc.Class({
|
|
|
buyuHall:cc.Node,
|
|
buyuHall:cc.Node,
|
|
|
caipiaoHall:cc.Node,
|
|
caipiaoHall:cc.Node,
|
|
|
zhenrenHall:cc.Node,
|
|
zhenrenHall:cc.Node,
|
|
|
|
|
+ webviewNode:cc.Node,
|
|
|
|
|
|
|
|
Gundong:cc.Label,
|
|
Gundong:cc.Label,
|
|
|
GundongMask:cc.Mask,
|
|
GundongMask:cc.Mask,
|
|
@@ -61,10 +62,12 @@ cc.Class({
|
|
|
this.dzyyHall.active = false
|
|
this.dzyyHall.active = false
|
|
|
this.buyuHall.active = false
|
|
this.buyuHall.active = false
|
|
|
this.caipiaoHall.active = false
|
|
this.caipiaoHall.active = false
|
|
|
|
|
+ this.webviewNode.active = false
|
|
|
|
|
|
|
|
this.returnNode.active =false
|
|
this.returnNode.active =false
|
|
|
this.shareNode.active =true
|
|
this.shareNode.active =true
|
|
|
this.hallListBtn.active = false
|
|
this.hallListBtn.active = false
|
|
|
|
|
+
|
|
|
// this.halllist.active = false
|
|
// this.halllist.active = false
|
|
|
// this.playShow()
|
|
// this.playShow()
|
|
|
// this.animation = this.nvren.getComponent(cc.Animation);
|
|
// this.animation = this.nvren.getComponent(cc.Animation);
|
|
@@ -91,7 +94,9 @@ cc.Class({
|
|
|
['4' , this.zhenrenHall.getComponent('ZhenrenHallController')],
|
|
['4' , this.zhenrenHall.getComponent('ZhenrenHallController')],
|
|
|
['5' , this.dzjjHall.getComponent('DzjjHallController')],
|
|
['5' , this.dzjjHall.getComponent('DzjjHallController')],
|
|
|
['6' , this.buyuHall.getComponent('BuyuHallController')],
|
|
['6' , this.buyuHall.getComponent('BuyuHallController')],
|
|
|
- ['7' , this.sportsHall.getComponent('SportsHallController')]]
|
|
|
|
|
|
|
+ // ['7' , this.sportsHall.getComponent('SportsHallController')]
|
|
|
|
|
+ ['7' , this.webviewNode.getComponent('WebviewCtrl')]
|
|
|
|
|
+ ]
|
|
|
|
|
|
|
|
this.myhallMap = new Map(subhall);
|
|
this.myhallMap = new Map(subhall);
|
|
|
console.log(this.myhallMap.keys());
|
|
console.log(this.myhallMap.keys());
|
|
@@ -273,13 +278,14 @@ cc.Class({
|
|
|
clickHall(sender,customEventData){
|
|
clickHall(sender,customEventData){
|
|
|
this.showingHall = this.myhallMap.get(customEventData)
|
|
this.showingHall = this.myhallMap.get(customEventData)
|
|
|
this.showingHall.parentScene = this
|
|
this.showingHall.parentScene = this
|
|
|
- this.showingHall.initScene()
|
|
|
|
|
|
|
+ this.showingHall.initScene(customEventData)
|
|
|
this.setHalllist(customEventData)
|
|
this.setHalllist(customEventData)
|
|
|
this.display()
|
|
this.display()
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
clickHallList(sender,customEventData){
|
|
clickHallList(sender,customEventData){
|
|
|
var nextScene = this.myhallMap.get(customEventData)
|
|
var nextScene = this.myhallMap.get(customEventData)
|
|
|
- nextScene.initScene()
|
|
|
|
|
|
|
+ nextScene.initScene(customEventData)
|
|
|
nextScene.parentScene = this
|
|
nextScene.parentScene = this
|
|
|
this.setHalllist(customEventData)
|
|
this.setHalllist(customEventData)
|
|
|
if (nextScene) {
|
|
if (nextScene) {
|