Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
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
xiaoxiaole
Commits
9fc63e49
Commit
9fc63e49
authored
Oct 25, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a556c3bc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
8 deletions
+13
-8
BagPanel.ts
egret/src/panels/BagPanel.ts
+8
-3
home.1.json
mock/happyclear/home.1.json
+2
-2
home.json
mock/happyclear/home.json
+3
-3
No files found.
egret/src/panels/BagPanel.ts
View file @
9fc63e49
...
...
@@ -2,6 +2,8 @@ import Panel from "../../libs/new_wx/components/Panel";
import
PanelCtrl
from
"../../libs/new_wx/ctrls/panelCtrl"
;
import
BagItemRenderer
from
"./bag/BagItemRenderer"
;
import
BagIte2mRenderer
from
"./bag/BagItemRenderer2"
;
import
{
getPropNums
}
from
"../getHomeData"
;
import
PropType
from
"../PropType"
;
export
default
class
BagPanel
extends
Panel
{
list
:
eui
.
List
;
...
...
@@ -27,18 +29,21 @@ export default class BagPanel extends Panel {
},
this
);
this
.
list
.
itemRenderer
=
BagItemRenderer
;
const
prop2Nums
=
getPropNums
(
PropType
.
BOOM
);
const
prop1Nums
=
getPropNums
(
PropType
.
HAMMER
);
const
prop3Nums
=
getPropNums
(
PropType
.
CHANCE_NUM
);
this
.
list
.
dataProvider
=
new
eui
.
ArrayCollection
([
{
type
:
'hammer'
,
nums
:
"1"
nums
:
prop1Nums
},
{
type
:
'boom'
,
nums
:
"1"
nums
:
prop2Nums
},
{
type
:
'change'
,
nums
:
"1"
nums
:
prop3Nums
}
]);
this
.
list2
.
itemRenderer
=
BagIte2mRenderer
;
...
...
mock/happyclear/home.1.json
View file @
9fc63e49
...
...
@@ -365,11 +365,11 @@
},
{
"type"
:
3
,
"num"
:
1
"num"
:
2
},
{
"type"
:
4
,
"num"
:
1
"num"
:
3
}
],
"remainEnargy"
:
9979
,
...
...
mock/happyclear/home.json
View file @
9fc63e49
...
...
@@ -611,15 +611,15 @@
"remainProp"
:
[
{
"type"
:
2
,
"num"
:
0
"num"
:
1
},
{
"type"
:
3
,
"num"
:
1
"num"
:
2
},
{
"type"
:
4
,
"num"
:
1
"num"
:
3
}
],
"remainEnargy"
:
1
,
...
...
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