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
b05082d1
Commit
b05082d1
authored
Nov 25, 2020
by
Edwise
🍷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
3d42a078
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
6 deletions
+12
-6
MainScene.ts
project/src/canvas/game/src/scenes/MainScene.ts
+1
-1
app.js
taobao_mini/client/app.js
+3
-1
output.js
taobao_mini/client/pages/pagecanvas/output.js
+4
-2
pagecanvas.js
taobao_mini/client/pages/pagecanvas/pagecanvas.js
+4
-2
No files found.
project/src/canvas/game/src/scenes/MainScene.ts
View file @
b05082d1
taobao_mini/client/app.js
View file @
b05082d1
...
...
@@ -29,7 +29,9 @@ App({
const
{
activityId
}
=
query
;
// this.activityId = activityId || '5f81841def5071b132fd5e21'; //赵然
// this.activityId = activityId || '5f8022919da671f3b6d5fb14'; //小婷1
this
.
activityId
=
activityId
||
'5f8d47218e6a0888fc426fad'
;
//小婷2
this
.
activityId
=
activityId
||
'5f8d47218e6a0888fc426fad'
;
//小婷2zhengshi
// this.activityId = activityId || '5f87e8a29897b4e0ce0ada02'; //ceshi
}
});
taobao_mini/client/pages/pagecanvas/output.js
View file @
b05082d1
...
...
@@ -2221,7 +2221,7 @@ var Ins = (function () {
label.text = data.text ? data.text : "";
return label;
};
Ins.recoverEnergy =
3
* 60 * 1000;
Ins.recoverEnergy =
10
* 60 * 1000;
return Ins;
}());
exports.Ins = Ins;
...
...
@@ -47084,7 +47084,7 @@ var MainScene = (function (_super) {
that.energyGroup.addChild(that.energyDeco);
that.energyDialog = Ins_1.Ins.initSprite("69009eb9-4593-4a43-a9d7-a6356ebd6d04", 174, -60);
that.energyGroup.addChild(that.energyDialog);
that.energyDialogLabel = Ins_1.Ins.initLabel({ size: 26, text: "每
3
分钟恢复1点精力" });
that.energyDialogLabel = Ins_1.Ins.initLabel({ size: 26, text: "每
10
分钟恢复1点精力" });
that.energyDialog.addChild(that.energyDialogLabel);
that.energyDialogLabel.x = (that.energyDialog.width - that.energyDialogLabel.textWidth) * 0.5;
that.energyDialogLabel.y = (that.energyDialog.height - that.energyDialogLabel.textHeight) * 0.5 - 6;
...
...
@@ -47297,6 +47297,8 @@ var MainScene = (function (_super) {
MainScene.prototype.onHide = function () {
console.log("canvas页面显示, isShow设置为false");
this.isShow = false;
if (this.recoverEnergyHandler)
clearInterval(this.recoverEnergyHandler);
};
MainScene.prototype.initEvents = function () {
var that = this;
taobao_mini/client/pages/pagecanvas/pagecanvas.js
View file @
b05082d1
...
...
@@ -301,6 +301,7 @@ Page({
},
onShow
()
{
console
.
log
(
"页面显示啦"
)
// 页面显示
if
(
this
.
main
)
{
this
.
main
.
run
();
...
...
@@ -310,6 +311,7 @@ Page({
},
onHide
()
{
console
.
log
(
"页面隐藏啦"
)
// 页面隐藏
if
(
this
.
main
)
{
this
.
main
.
pause
();
...
...
@@ -359,11 +361,11 @@ Page({
if
(
success
)
{
my
.
hideLoading
();
app
.
openId
=
data
.
openId
;
if
(
data
.
custom
Value
!=
1
){
if
(
data
.
load
Value
!=
1
){
this
.
initCanvas
();
}
this
.
setData
({
customValue
:
data
.
custom
Value
customValue
:
data
.
load
Value
})
this
.
getActivityBaseInfoById
();
}
...
...
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