Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wfc13
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wildfirecode13
wfc13
Commits
ab4dd17e
Commit
ab4dd17e
authored
Aug 13, 2021
by
shunx 马
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
e7c8bc27
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
+14
-5
index.do.json
project/mock/webNet/dazzle/index.do.json
+3
-3
notEnoughMoney.ts
project/src/panels/notEnoughMoney.ts
+1
-1
BoxGroup.ts
project/src/scenes/BoxGroup.ts
+10
-1
No files found.
project/mock/webNet/dazzle/index.do.json
View file @
ab4dd17e
{
"code"
:
null
,
"data"
:
{
"surplusCount"
:
1
,
"credits"
:
22222
,
"needCredits"
:
3333
,
"surplusCount"
:
0
,
"credits"
:
5
,
"needCredits"
:
10
,
"type"
:
1
,
"isMember"
:
1
},
...
...
project/src/panels/notEnoughMoney.ts
View file @
ab4dd17e
...
...
@@ -9,7 +9,7 @@ export class notEnoughMoneyPanel extends Panel {
click_notEnoughMoney_btn
(){
sendLog
(
"click"
,
5
);
console
.
log
(
'click_notEnoughMoney_btn'
)
;
location
.
href
=
'pages/pointsmall-index/pointsmall-index?pageId=ff8080816deed7ce016df398f7662325'
;
}
get
groupNames
()
{
return
[
"notEnoughMoney"
]
}
...
...
project/src/scenes/BoxGroup.ts
View file @
ab4dd17e
...
...
@@ -2,6 +2,10 @@ import { showPanel } from "../../module/ctrls";
import
{
RES
}
from
"../../module/RES"
;
import
{
delayClick
}
from
"../common/delayClick"
;
import
{
CostPanel
}
from
"../panels/cost"
;
import
{
notEnoughMoneyPanel
}
from
"../panels/notEnoughMoney"
;
import
{
timesNotEnoughPanel
}
from
"../panels/timesNotEnough"
;
import
{
getWebData
}
from
"../WebNet"
;
import
{
WebNetName
}
from
"../WebNetName"
;
import
{
Box
}
from
"./Box"
;
export
interface
Move
{
...
...
@@ -80,7 +84,12 @@ export class BoxGroup extends FYGE.Sprite {
indexsvga
.
position
.
set
(
e
.
target
.
x
-
200
,
e
.
target
.
y
-
190
)
this
.
addChild
(
indexsvga
);
indexsvga
.
startAniRange
(
1
,
indexsvga
.
totalFrames
,
1
,
()
=>
{
showPanel
(
CostPanel
);
const
result
=
getWebData
(
WebNetName
.
index
);
if
(
result
.
data
.
needCredits
>
result
.
data
.
credits
)
{
showPanel
(
notEnoughMoneyPanel
);
}
else
{
showPanel
(
CostPanel
);
}
});
}
}
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