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
7fdc0be5
Commit
7fdc0be5
authored
Oct 08, 2019
by
wjf
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of gitlab2.dui88.com:wanghongyuan/xiaoxiaole into dev
parents
97b36b82
b3361445
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
48 additions
and
1 deletion
+48
-1
MainBase.ts
egret/libs/new_wx/MainBase.ts
+2
-0
default.thm.json
egret/resource/default.thm.json
+2
-0
TaskPrizeSkin.exml
egret/resource/skins/TaskPrizeSkin.exml
+13
-0
MapScene.ts
egret/src/mapScene/MapScene.ts
+1
-1
TaskPanel.ts
egret/src/panels/TaskPanel.ts
+5
-0
TaskPrizePanel.ts
egret/src/panels/TaskPrizePanel.ts
+25
-0
No files found.
egret/libs/new_wx/MainBase.ts
View file @
7fdc0be5
...
...
@@ -42,6 +42,7 @@ import ExchangePanel from "../../src/panels/ExchangePanel";
import
{
initstatistics
}
from
"../../src/statistics"
;
import
ADPanel
from
"../../src/panels/ADPanel"
;
import
TaskPanel
from
"../../src/panels/TaskPanel"
;
import
TaskPrizePanel
from
"../../src/panels/TaskPrizePanel"
;
export
default
class
MainBase
extends
eui
.
UILayer
{
constructor
()
{
...
...
@@ -76,6 +77,7 @@ export default class MainBase extends eui.UILayer {
[
'sign'
,
{
cls
:
SignPanel
}],
[
'signPrize'
,
{
cls
:
SignPrizePanel
}],
[
'task'
,
{
cls
:
TaskPanel
}],
[
'taskPrize'
,
{
cls
:
TaskPrizePanel
}],
[
'ad'
,
{
cls
:
ADPanel
}],
];
...
...
egret/resource/default.thm.json
View file @
7fdc0be5
...
...
@@ -42,6 +42,8 @@
"resource/skins/TargetItemSkin.exml"
,
"resource/skins/TaskItemSkin.exml"
,
"resource/skins/TaskSkin.exml"
,
"resource/skins/TaskPrizeSkin.exml"
,
"resource/skins/ADSkin.exml"
,
"resource/skins/ToastSkin.exml"
,
"resource/skins/VScrollBarSkin.exml"
],
...
...
egret/resource/skins/TaskPrizeSkin.exml
0 → 100644
View file @
7fdc0be5
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"TaskPrizeSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
>
<e:Image
source=
"闯关失败_png"
y=
"27"
horizontalCenter=
"0"
/>
<e:Button
id=
"closeBtn"
label=
""
x=
"609"
y=
"197"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"closeCommonBtn_png"
source.down=
"closeCommonBtn_png"
source.disabled=
"closeCommonBtn_png"
/>
<e:Label
id=
"labelDisplay"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
</e:Skin>
</e:skinName>
</e:Button>
<e:Label
text=
"task prize panel"
x=
"260"
y=
"604"
/>
</e:Skin>
\ No newline at end of file
egret/src/mapScene/MapScene.ts
View file @
7fdc0be5
...
...
@@ -311,7 +311,7 @@ export default class MapScene extends Scene {
PanelCtrl
.
instance
.
show
(
'task'
);
}
onTap_adBtn
(){
PanelCtrl
.
instance
.
show
(
'ad'
);
console
.
log
(
'onTap_adBtn'
)
}
onTap_signBtn
(){
NetManager
.
ins
.
getSignInfo
(()
=>
{
...
...
egret/src/panels/TaskPanel.ts
View file @
7fdc0be5
import
Panel
from
"../../libs/new_wx/components/Panel"
;
import
TaskItemRenderer
from
"./TaskItemRenderer"
;
import
PanelCtrl
from
"../../libs/new_wx/ctrls/panelCtrl"
;
export
default
class
TaskPanel
extends
Panel
{
public
list
:
eui
.
List
;
...
...
@@ -11,6 +12,10 @@ export default class TaskPanel extends Panel {
this
.
list
.
itemRenderer
=
TaskItemRenderer
;
const
ac
=
new
eui
.
ArrayCollection
([
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
]);
this
.
list
.
dataProvider
=
ac
;
setTimeout
(()
=>
{
PanelCtrl
.
instance
.
show
(
'taskPrize'
);
},
2000
);
}
showlog
(){
...
...
egret/src/panels/TaskPrizePanel.ts
0 → 100644
View file @
7fdc0be5
import
Panel
from
"../../libs/new_wx/components/Panel"
;
export
default
class
TaskPrizePanel
extends
Panel
{
start
(
data
)
{
super
.
start
();
this
.
showlog
();
}
showlog
(){
// NetManager.ins.showLog(getlogItem(3));
// NetManager.ins.showLog(getlogItem(4));
}
initEvents
()
{
super
.
initEvents
();
// this['inviteBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTapInvite, this)
}
onTapInvite
()
{
}
protected
get
closeBtns
():
eui
.
Button
[]
{
return
[
this
[
'closeBtn'
]]
}
get
skinKey
()
{
return
'TaskPrize'
}
}
\ No newline at end of file
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