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
9d5551c9
Commit
9d5551c9
authored
Oct 11, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
游戏结束中体力
parent
e9d86996
Changes
12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
87 additions
and
10511 deletions
+87
-10511
workspace.xml
.idea/workspace.xml
+37
-26
popmartXXL2c.doJoin.json
mock/miniTb/popmartXXL2c.doJoin.json
+1
-1
popmartXXL2c.drawLotteryPrize.json
mock/miniTb/popmartXXL2c.drawLotteryPrize.json
+4
-5
popmartXXL2c.getActivityBaseInfoById.json
mock/miniTb/popmartXXL2c.getActivityBaseInfoById.json
+2
-2
output.js
output.js
+7
-5
output.js.map
output.js.map
+1
-1
power.png
resource/common/power.png
+0
-0
res.json
resource/res.json
+1
-1
ResJson.ts
src/ResJson.ts
+29
-10456
FesRedPrizePanel.ts
src/panels/FesRedPrizePanel.ts
+1
-8
SuccessPrizePanel.ts
src/panels/SuccessPrizePanel.ts
+2
-1
LoadingScene.ts
src/scene/LoadingScene.ts
+2
-5
No files found.
.idea/workspace.xml
View file @
9d5551c9
This diff is collapsed.
Click to expand it.
mock/miniTb/popmartXXL2c.doJoin.json
View file @
9d5551c9
...
...
@@ -4,6 +4,6 @@
"message"
:
"成功"
,
"data"
:
{
"power"
:
100
,
"isGiftPrizeLevel"
:
fals
e
"isGiftPrizeLevel"
:
tru
e
}
}
mock/miniTb/popmartXXL2c.drawLotteryPrize.json
View file @
9d5551c9
{
"code"
:
"000000"
,
"data"
:
{
"image"
:
"https://img.alicdn.com/imgextra/i3/2885348004/O1CN01Lw5ZoM28zsjhMDLVE_!!2885348004-0-miniprogram.jpg"
,
"name"
:
"游戏测试3"
,
"id"
:
"5f8059c8e5c0d7c634f186c5"
,
"type"
:
1
"name"
:
"体力"
,
"type"
:
6
,
"toolType"
:
"power"
},
"success"
:
true
,
"message"
:
"成功"
}
\ No newline at end of file
}
mock/miniTb/popmartXXL2c.getActivityBaseInfoById.json
View file @
9d5551c9
{
"code"
:
"000000"
,
"data"
:
{
"currentLevel"
:
1
,
"currentLevel"
:
4
,
"isFirstLogin"
:
false
,
"records"
:
[{
"score"
:
0
,
...
...
@@ -28,4 +28,4 @@
},
"success"
:
true
,
"message"
:
"成功"
}
\ No newline at end of file
}
output.js
View file @
9d5551c9
...
...
@@ -13565,13 +13565,15 @@ var Tools = (function () {
if (s) {
_this.propInfo[type] -= 1;
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.getToolsInfo, {}, function (st, rt) {
if (!st)
if (!st) {
resolve(true);
return;
_this.propInfo.booms = +rt.data.tools.booms;
_this.propInfo.steps = +rt.data.tools.steps;
_this.propInfo.hammers = +rt.data.tools.hammers;
}
_this.propInfo.booms = Tools.propInfo.booms = +rt.data.tools.booms;
_this.propInfo.steps = Tools.propInfo.steps = +rt.data.tools.steps;
_this.propInfo.hammers = Tools.propInfo.hammers = +rt.data.tools.hammers;
resolve(true);
});
resolve(true);
}
else {
resolve(false);
output.js.map
View file @
9d5551c9
This diff is collapsed.
Click to expand it.
resource/common/power.png
0 → 100644
View file @
9d5551c9
9 KB
resource/res.json
View file @
9d5551c9
...
...
@@ -49,7 +49,7 @@
"name"
:
"bonus"
},
{
"keys"
:
"boomBtn.png,closeBtn2.png,comCloseBtn.png,comm_light.png,ele0.png,ele1.png,ele10.png,ele11.png,ele12.png,ele13.png,ele14.png,ele2.png,ele3.png,ele4.png,ele5.png,ele6.png,ele7.png,ele8.png,ele9.png,hammerBtn.png,liaojiele.png,powerImg.png,stepBtn.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,再想想.png,开始闯关不要能量.png,开始闯关要能量.png,开心收下.png,确定.png,继续闯关大.png,继续闯关小.png"
,
"keys"
:
"boomBtn.png,closeBtn2.png,comCloseBtn.png,comm_light.png,ele0.png,ele1.png,ele10.png,ele11.png,ele12.png,ele13.png,ele14.png,ele2.png,ele3.png,ele4.png,ele5.png,ele6.png,ele7.png,ele8.png,ele9.png,hammerBtn.png,liaojiele.png,power
.png,power
Img.png,stepBtn.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,再想想.png,开始闯关不要能量.png,开始闯关要能量.png,开心收下.png,确定.png,继续闯关大.png,继续闯关小.png"
,
"name"
:
"common"
},
{
...
...
src/ResJson.ts
View file @
9d5551c9
This diff is collapsed.
Click to expand it.
src/panels/FesRedPrizePanel.ts
View file @
9d5551c9
import
{
Panel
}
from
"../../module/views/Panel"
;
import
{
PropType
}
from
"../something/enum/PropType"
;
import
{
RES
}
from
"../../module/RES"
;
import
{
Tools
}
from
"../Tools"
;
import
{
getTbData
,
TbNetName
}
from
"../TaoBaoNet"
;
...
...
@@ -9,12 +8,6 @@ import Sprite = FYGE.Sprite;
import
MouseEvent
=
FYGE
.
MouseEvent
;
import
Button
=
FYGE
.
Button
;
const
propImg
=
{
[
PropType
.
BOOMS
]:
'boomBtn.png'
,
[
PropType
.
HAMMERS
]:
'hammerBtn.png'
,
[
PropType
.
STEPS
]:
'stepBtn.png'
}
export
class
FesRedPrizePanel
extends
Panel
{
get
groupNames
()
{
return
[
'FesRedPrizePanel'
]
...
...
@@ -38,7 +31,7 @@ export class FesRedPrizePanel extends Panel {
initUi
()
{
// const {stars, tool, prize} = this.data;
// const {stars, tool, prize} = this.data;
this
.
addChild
(
Tools
.
getSprite
(
'FesRedPrizeBg.png'
))
.
position
.
set
(
53
,
209
);
...
...
src/panels/SuccessPrizePanel.ts
View file @
9d5551c9
...
...
@@ -16,7 +16,8 @@ import { sendTbNet, TbNetName } from "../TaoBaoNet";
const
propImg
=
{
[
PropType
.
BOOMS
]:
'boomBtn.png'
,
[
PropType
.
HAMMERS
]:
'hammerBtn.png'
,
[
PropType
.
STEPS
]:
'stepBtn.png'
[
PropType
.
STEPS
]:
'stepBtn.png'
,
[
PropType
.
POWER
]:
'power.png'
}
export
class
SuccessPrizePanel
extends
Panel
{
...
...
src/scene/LoadingScene.ts
View file @
9d5551c9
...
...
@@ -29,7 +29,7 @@ export class LoadingScene extends Scene {
const
loadingTitle
=
this
.
addChild
(
new
Lottie
(
pop_loading_title
));
console
.
log
(
loadingTitle
);
loadingTitle
.
play
(
1
);
//进度条底图
...
...
@@ -61,15 +61,12 @@ export class LoadingScene extends Scene {
async
start
()
{
super
.
start
()
// 访问页面埋点
sendTbNet
(
TbNetName
.
reportAnalytics
,
{
logkey
:
'visit'
});
this
.
addEventListener
(
FYGE
.
Event
.
PROGRESS
,
this
.
progressEvent
,
this
)
//首次进度一点
this
.
dispatchEvent
(
FYGE
.
Event
.
PROGRESS
,
0.2
)
//获取app数据
Tools
.
getAppData
();
await
Tools
.
getAppData
();
this
.
dispatchEvent
(
FYGE
.
Event
.
PROGRESS
,
0.3
)
//询问读取权限,不阻止进程
...
...
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