Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new_taobao
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
new_taobao
Commits
3d888475
Commit
3d888475
authored
Sep 22, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Plain Diff
1
parents
088771f4
d7dfacb4
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
396 additions
and
2878 deletions
+396
-2878
output.js
project/src/canvas/game/output.js
+10
-1
output.js.map
project/src/canvas/game/output.js.map
+5
-1
output.js
project/src/canvas/game/released/output.js
+10
-1
ResJson.ts
project/src/canvas/game/src/ResJson.ts
+1
-1
Cat.ts
project/src/canvas/game/src/cat/Cat.ts
+1
-1
MainScene.ts
project/src/canvas/game/src/scenes/MainScene.ts
+7
-4
output.js
taobao_mini/client/pages/pagecanvas/output.js
+362
-2869
No files found.
project/src/canvas/game/output.js
View file @
3d888475
...
@@ -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);
});
});
}
}
project/src/canvas/game/output.js.map
View file @
3d888475
This diff is collapsed.
Click to expand it.
project/src/canvas/game/released/output.js
View file @
3d888475
...
@@ -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);
});
});
}
}
project/src/canvas/game/src/ResJson.ts
View file @
3d888475
...
@@ -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/16007
43469
/resource/"
"path"
:
"https://yun.duiba.com.cn/db_games/activity/babycare_xiaoxiao/16007
63276
/resource/"
}
}
\ No newline at end of file
project/src/canvas/game/src/cat/Cat.ts
View file @
3d888475
...
@@ -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
();
}
}
...
...
project/src/canvas/game/src/scenes/MainScene.ts
View file @
3d888475
...
@@ -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
);
}
}
...
...
taobao_mini/client/pages/pagecanvas/output.js
View file @
3d888475
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment