Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
babycare_xiaoxiao
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
翁阳
babycare_xiaoxiao
Commits
71900eb4
Commit
71900eb4
authored
Oct 14, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
礼盒loading引导
parent
3b0dd171
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
64 additions
and
35 deletions
+64
-35
workspace.xml
.idea/workspace.xml
+25
-24
output.js
output.js
+3
-1
output.js.map
output.js.map
+1
-1
TaoBaoNet.ts
src/TaoBaoNet.ts
+5
-0
PlayScene.ts
src/scene/PlayScene.ts
+30
-9
No files found.
.idea/workspace.xml
View file @
71900eb4
This diff is collapsed.
Click to expand it.
output.js
View file @
71900eb4
...
...
@@ -23850,8 +23850,10 @@ var PlayScene = (function (_super) {
level: this.chapter,
prizeDataType: 1
}, function (success, res) {
if (success && res.data)
if (success && res.data)
{
_this.redBombPanelMark = true;
_this.openRedBombPanel();
}
});
}
}
output.js.map
View file @
71900eb4
This diff is collapsed.
Click to expand it.
src/TaoBaoNet.ts
View file @
71900eb4
...
...
@@ -287,6 +287,11 @@ export function destroyNetData() {
async
function
fetchAsync
(
url
:
string
)
{
// await response of fetch call
// await new Promise(resolve => {
// setTimeout(()=>{
// resolve();
// }, 500);
// });
let
response
=
await
fetch
(
url
);
// only proceed once promise is resolved
let
data
=
await
response
.
json
();
...
...
src/scene/PlayScene.ts
View file @
71900eb4
...
...
@@ -2721,7 +2721,21 @@ export class PlayScene extends Scene {
*/
openRedBombPanel
(
callback
:
Function
=
null
)
{
if
(
this
.
redBombPanelMark
)
{
showPanel
(
FesRedPrizePanel
,
{
callback
:
callback
});
sendTbNet
(
TbNetName
.
drawLotteryPrize
,
{
level
:
this
.
chapter
,
prizeDataType
:
1
},
(
success
,
res
)
=>
{
if
(
success
&&
res
.
data
)
{
showPanel
(
FesRedPrizePanel
,
{
callback
:
callback
});
}
else
{
callback
();
}
}
);
// showPanel(FesRedPrizePanel, {callback: callback});
this
.
redBombPanelMark
=
false
;
return
true
;
}
...
...
@@ -2919,19 +2933,26 @@ export class PlayScene extends Scene {
.
call
(()
=>
{
this
.
removeChild
(
eleC
);
this
.
festivalTarget
.
count
--
;
});
//完成了,发接口,到时需要修改,对于接口没成功的不设置
if
(
this
.
festivalTargetNum
<=
0
)
{
sendTbNet
(
TbNetName
.
drawLotteryPrize
,
{
level
:
this
.
chapter
,
prizeDataType
:
1
},
(
success
,
res
)
=>
{
if
(
success
&&
res
.
data
)
this
.
redBombPanelMark
=
true
;
}
);
this
.
redBombPanelMark
=
true
;
// sendTbNet(TbNetName.drawLotteryPrize, {
// level: this.chapter,
// prizeDataType: 1
// },
// (success, res) => {
// if (success && res.data) {
// this.redBombPanelMark = true;
// this.openRedBombPanel();
// }
// }
// );
}
}
}
...
...
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