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
0b716b18
Commit
0b716b18
authored
Aug 13, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'disu0811' of
http://gitlab2.dui88.com/wildfirecode13/wfc13
into disu0811
parents
04853227
4e0d5b4e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
4 deletions
+13
-4
index.do.json
project/mock/webNet/dazzle/index.do.json
+2
-2
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 @
0b716b18
...
...
@@ -2,8 +2,8 @@
"code"
:
null
,
"data"
:
{
"surplusCount"
:
0
,
"credits"
:
22222
,
"needCredits"
:
3333
,
"credits"
:
5
,
"needCredits"
:
10
,
"type"
:
1
,
"isMember"
:
1
},
...
...
project/src/panels/notEnoughMoney.ts
View file @
0b716b18
...
...
@@ -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 @
0b716b18
...
...
@@ -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