Commit 3d888475 authored by wildfirecode13's avatar wildfirecode13

1

parents 088771f4 d7dfacb4
...@@ -2195,6 +2195,15 @@ var Main = (function () { ...@@ -2195,6 +2195,15 @@ var Main = (function () {
_a.sent(); _a.sent();
console.log("initLottieList完成"); console.log("initLottieList完成");
FYGE.GDispatcher.dispatchEvent("loadEnd"); FYGE.GDispatcher.dispatchEvent("loadEnd");
<<<<<<< HEAD
=======
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.getAppData, {}, function (s, res) {
console.log('getAppData success,res', s, res);
});
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.getActivityBaseInfoById, {}, function (s, res) {
console.log('getActivityBaseInfoById success,res', s, res);
});
>>>>>>> d7dfacb49210b7d977b14056cde24ca6994aee22
return [2]; return [2];
} }
}); });
...@@ -46887,7 +46896,7 @@ var MainScene = (function (_super) { ...@@ -46887,7 +46896,7 @@ var MainScene = (function (_super) {
MainScene.prototype.openLetter = function () { MainScene.prototype.openLetter = function () {
console.log("打开信封弹窗"); console.log("打开信封弹窗");
if (this.letter && this.letter.visible) { if (this.letter && this.letter.visible) {
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.showModal, { name: 'ruleModal' }, function (s, res) { TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.showModal, { name: 'messageModal', data: { catName: Ins_1.Ins.userInfo.catName } }, function (s, res) {
console.log('showModal ruleModal, success,res', s, res); console.log('showModal ruleModal, success,res', s, res);
}); });
} }
This diff is collapsed.
...@@ -2197,6 +2197,15 @@ var Main = (function () { ...@@ -2197,6 +2197,15 @@ var Main = (function () {
_a.sent(); _a.sent();
console.log("initLottieList完成"); console.log("initLottieList完成");
FYGE.GDispatcher.dispatchEvent("loadEnd"); FYGE.GDispatcher.dispatchEvent("loadEnd");
<<<<<<< HEAD
=======
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.getAppData, {}, function (s, res) {
console.log('getAppData success,res', s, res);
});
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.getActivityBaseInfoById, {}, function (s, res) {
console.log('getActivityBaseInfoById success,res', s, res);
});
>>>>>>> d7dfacb49210b7d977b14056cde24ca6994aee22
return [2]; return [2];
} }
}); });
...@@ -46889,7 +46898,7 @@ var MainScene = (function (_super) { ...@@ -46889,7 +46898,7 @@ var MainScene = (function (_super) {
MainScene.prototype.openLetter = function () { MainScene.prototype.openLetter = function () {
console.log("打开信封弹窗"); console.log("打开信封弹窗");
if (this.letter && this.letter.visible) { if (this.letter && this.letter.visible) {
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.showModal, { name: 'ruleModal' }, function (s, res) { TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.showModal, { name: 'messageModal', data: { catName: Ins_1.Ins.userInfo.catName } }, function (s, res) {
console.log('showModal ruleModal, success,res', s, res); console.log('showModal ruleModal, success,res', s, res);
}); });
} }
...@@ -10,5 +10,5 @@ export const ResJson = { ...@@ -10,5 +10,5 @@ export const ResJson = {
"name": "startScene" "name": "startScene"
} }
], ],
"path": "https://yun.duiba.com.cn/db_games/activity/babycare_xiaoxiao/1600743469/resource/" "path": "https://yun.duiba.com.cn/db_games/activity/babycare_xiaoxiao/1600763276/resource/"
} }
\ No newline at end of file
...@@ -52,7 +52,7 @@ export class Cat extends Module { ...@@ -52,7 +52,7 @@ export class Cat extends Module {
console.log(this.catLottieArr); console.log(this.catLottieArr);
this.initCat(); this.initCat();
this.initDialog(); this.initDialog();
this.setCatAnimShow(1); this.setCatAnimShow(0);
this.initEvents(); this.initEvents();
} }
......
...@@ -38,6 +38,9 @@ export class MainScene extends Scene { ...@@ -38,6 +38,9 @@ export class MainScene extends Scene {
private energyImgW: number; //精力条宽度 private energyImgW: number; //精力条宽度
private maxEnergy: number = 1500; //最大精力值 private maxEnergy: number = 1500; //最大精力值
/**猫咪等级 */
private level: number = 0;
initUi() { initUi() {
var that = this; var that = this;
that.initSceneEle(); that.initSceneEle();
...@@ -92,8 +95,8 @@ export class MainScene extends Scene { ...@@ -92,8 +95,8 @@ export class MainScene extends Scene {
/**打开信封 */ /**打开信封 */
openLetter() { openLetter() {
console.log("打开信封弹窗") console.log("打开信封弹窗")
if(this.letter&&this.letter.visible){ if (this.letter && this.letter.visible) {
sendTbNet(TbNetName.showModal, { name: 'ruleModal' }, (s, res) => { sendTbNet(TbNetName.showModal, { name: 'messageModal', data: { catName: Ins.userInfo.catName } }, (s, res) => {
console.log('showModal ruleModal, success,res', s, res) console.log('showModal ruleModal, success,res', s, res)
}) })
} }
...@@ -210,7 +213,7 @@ export class MainScene extends Scene { ...@@ -210,7 +213,7 @@ export class MainScene extends Scene {
console.log("主场景添加事件") console.log("主场景添加事件")
that.tlBtn.addEventListener(FYGE.MouseEvent.CLICK, () => { that.changeMainScene(SCENETYPE.CLASSROOM) }, that); that.tlBtn.addEventListener(FYGE.MouseEvent.CLICK, () => { that.changeMainScene(SCENETYPE.CLASSROOM) }, that);
that.mxqBtn.addEventListener(FYGE.MouseEvent.CLICK, () => { that.changeMainScene(SCENETYPE.PLAYGROUND) }, that); that.mxqBtn.addEventListener(FYGE.MouseEvent.CLICK, () => { that.changeMainScene(SCENETYPE.PLAYGROUND) }, that);
that.letter&&that.letter.addEventListener(FYGE.MouseEvent.CLICK,that.openLetter,that); that.letter && that.letter.addEventListener(FYGE.MouseEvent.CLICK, that.openLetter, that);
FYGE.GDispatcher.addEventListener(MSG.CHANGE_SCENE, () => { that.changeMainScene(SCENETYPE.BEADROOM) }, that); FYGE.GDispatcher.addEventListener(MSG.CHANGE_SCENE, () => { that.changeMainScene(SCENETYPE.BEADROOM) }, that);
FYGE.GDispatcher.addEventListener(MSG.UPDATE_USERINFO, that.updateUserInfo, that); FYGE.GDispatcher.addEventListener(MSG.UPDATE_USERINFO, that.updateUserInfo, that);
} }
...@@ -220,7 +223,7 @@ export class MainScene extends Scene { ...@@ -220,7 +223,7 @@ export class MainScene extends Scene {
console.log("主场景移除事件") console.log("主场景移除事件")
that.tlBtn.removeEventListener(FYGE.MouseEvent.CLICK, () => { that.changeMainScene(SCENETYPE.CLASSROOM) }, that); that.tlBtn.removeEventListener(FYGE.MouseEvent.CLICK, () => { that.changeMainScene(SCENETYPE.CLASSROOM) }, that);
that.mxqBtn.removeEventListener(FYGE.MouseEvent.CLICK, () => { that.changeMainScene(SCENETYPE.PLAYGROUND) }, that); that.mxqBtn.removeEventListener(FYGE.MouseEvent.CLICK, () => { that.changeMainScene(SCENETYPE.PLAYGROUND) }, that);
that.letter&&that.letter.removeEventListener(FYGE.MouseEvent.CLICK,that.openLetter,that); that.letter && that.letter.removeEventListener(FYGE.MouseEvent.CLICK, that.openLetter, that);
FYGE.GDispatcher.removeEventListener(MSG.CHANGE_SCENE, () => { that.changeMainScene(SCENETYPE.BEADROOM) }, that); FYGE.GDispatcher.removeEventListener(MSG.CHANGE_SCENE, () => { that.changeMainScene(SCENETYPE.BEADROOM) }, that);
FYGE.GDispatcher.removeEventListener(MSG.UPDATE_USERINFO, that.updateUserInfo, that); FYGE.GDispatcher.removeEventListener(MSG.UPDATE_USERINFO, that.updateUserInfo, that);
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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