Commit 9fc63e49 authored by wildfirecode's avatar wildfirecode

1

parent a556c3bc
......@@ -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;
......
......@@ -365,11 +365,11 @@
},
{
"type": 3,
"num": 1
"num": 2
},
{
"type": 4,
"num": 1
"num": 3
}
],
"remainEnargy": 9979,
......
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment