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
d95bbaa0
Commit
d95bbaa0
authored
Mar 26, 2020
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a7c203be
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
12 deletions
+26
-12
TaskCenter_bg.png
egret/resource/assets/TaskCenterPanel/TaskCenter_bg.png
+0
-0
TaskCenterSkin.exml
egret/resource/skins/TaskCenterSkin.exml
+4
-4
TaskCenter.ts
egret/src/panels/TaskCenter/TaskCenter.ts
+22
-8
No files found.
egret/resource/assets/TaskCenterPanel/TaskCenter_bg.png
View replaced file @
a7c203be
View file @
d95bbaa0
191 KB
|
W:
|
H:
179 KB
|
W:
|
H:
2-up
Swipe
Onion skin
egret/resource/skins/TaskCenterSkin.exml
View file @
d95bbaa0
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"SignPrizeSkin"
width=
"750"
height=
"
130
0"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Skin
class=
"SignPrizeSkin"
width=
"750"
height=
"
99
0"
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"
/>
...
...
egret/src/panels/TaskCenter/TaskCenter.ts
View file @
d95bbaa0
...
...
@@ -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
]}
`
;
...
...
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