Commit d95bbaa0 authored by 邱旭's avatar 邱旭

1

parent a7c203be
<?xml version="1.0" encoding="utf-8"?>
<e:Skin class="SignPrizeSkin" width="750" height="1300" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<e:Skin class="SignPrizeSkin" width="750" height="990" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<w:Config id="16d5c2563cb"/>
<e:Component y="758.04" skinName="ADSmallSkin" x="84" visible="false"/>
<e:Image y="0" horizontalCenter="0" source="TaskCenter_bg_png"/>
<e:Image y="0" source="TaskCenter_bg_png" horizontalCenter="0"/>
<e:Button id="closeBtn" label="" x="641" y="285.81">
<e:skinName>
<e:Skin states="up,down,disabled">
......@@ -11,8 +11,8 @@
</e:Skin>
</e:skinName>
</e:Button>
<e:Scroller width="674" height="800" y="378.81" horizontalCenter="2" anchorOffsetY="0">
<e:Group anchorOffsetX="0" width="222.73" anchorOffsetY="0" height="800">
<e:Scroller width="674" height="515" y="382.81" horizontalCenter="2" anchorOffsetY="0">
<e:Group anchorOffsetX="0" width="222.73" anchorOffsetY="0" height="532.33" x="0" y="4">
<e:List id="list" left="0" right="0" horizontalCenter="0" y="0">
<e:layout>
<e:VerticalLayout gap="22"/>
......
......@@ -4,6 +4,8 @@ import { NetManager } from "../../../libs/tw/manager/NetManager";
import PanelCtrl from "../../../libs/new_wx/ctrls/panelCtrl";
import { GDispatcher } from "../../../libs/tc/util/GDispatcher";
import { Buried } from "../../../libs/tw/util/Buried";
import { DataManager } from "../../../libs/tw/manager/DataManager";
import { NetName } from "../../../libs/tw/enum/NetName";
export default class TaskCenter extends Panel {
public closeBtn: eui.Button;
......@@ -11,12 +13,9 @@ export default class TaskCenter extends Panel {
onShowAnim() {
let canvasH = 750 / window.innerWidth * window.innerHeight;
// let canvasW = 750 / window.innerWidth * window.innerWidth;
// console.log({
// canvasW: canvasW,
// canvasH: canvasH
// });
egret.Tween.get(this).set({y: canvasH}).to({y: canvasH - this.height}, 300, egret.Ease.quadInOut);
egret.Tween.get(this)
.set({y: canvasH})
.to({y: canvasH - this.height + 1}, 300, egret.Ease.quadInOut);
}
start(data) {
......@@ -33,8 +32,14 @@ export default class TaskCenter extends Panel {
return;
}
const data = res.data;
this.list.dataProvider = new eui.ArrayCollection(data);
new eui.ArrayCollection(data);
NetManager.ins.getConfigInfo((success, res) => {
if(!success) {
return;
}
this.list.dataProvider = new eui.ArrayCollection(data);
new eui.ArrayCollection(data);
});
});
}
......@@ -82,6 +87,15 @@ class TaskCenterItem extends eui.ItemRenderer {
this.title.text = this.data.taskTitle;
this.remark.text = this.data.remark;
let config = DataManager.ins.getData(NetName.GET_CONFIG).data || null;
let taskConfig = config.taskConfs || [];
for(let i = 0; i < taskConfig.length; i++) {
// if(this.data.subActivityId == ){
//
// }
}
let count = this.data.remark.match(/(?<=得).*?(?=元宝)/);
this.moneyCount.text = ${count[count.length - 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