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
23655e06
Commit
23655e06
authored
Oct 16, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
70978553
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
68 additions
and
36 deletions
+68
-36
NoPrizePanel.ts
egret/libs/new_wx/components/NoPrizePanel.ts
+8
-10
PrizePanel.ts
egret/libs/new_wx/components/PrizePanel.ts
+5
-7
RankFriendListSkin.exml
egret/resource/skins/RankFriendListSkin.exml
+1
-1
RankFriendList.ts
egret/src/mapScene/RankFriendList.ts
+5
-2
BoxPanel.ts
egret/src/panels/BoxPanel.ts
+1
-1
FailedPanel.ts
egret/src/panels/FailedPanel.ts
+2
-4
Prize2Panel.ts
egret/src/panels/Prize2Panel.ts
+5
-7
StartPanel.ts
egret/src/panels/StartPanel.ts
+11
-3
levelNumRank.json
mock/happyclear/levelNumRank.json
+30
-1
No files found.
egret/libs/new_wx/components/NoPrizePanel.ts
View file @
23655e06
import
getShowOffPic
from
"../../../src/getShowOffPic"
;
import
{
iswx
}
from
"../../../src/iswx"
;
import
{
getlogItem
}
from
"../../../src/Main"
;
import
{
addRankFriendList
}
from
"../../../src/mapScene/RankFriendList"
;
import
setGray
from
"../../../src/setGray"
;
import
{
NetManager
}
from
"../../tw/manager/NetManager"
;
import
Panel
from
"./Panel"
;
import
SceneCtrl
from
"../ctrls/sceneCtrl"
;
import
{
ModuleTypes
}
from
"../types/sceneTypes"
;
import
{
createData
,
changeMapScene
}
from
"../../../src/startScene/StartScene"
;
import
{
DataManager
}
from
"../../tw/manager/DataManager"
;
import
getShowOffPic
from
"../../../src/getShowOffPic"
;
import
{
showShare
}
from
"../../../src/shareCtrl"
;
import
{
iswx
}
from
"../../../src/iswx
"
;
import
{
changeMapScene
}
from
"../../../src/startScene/StartScene
"
;
import
wait
from
"../../new_tc/wait"
;
import
{
addAdComp
}
from
"../../../src/panels/BoxPanel"
;
import
{
DataManager
}
from
"../../tw/manager/DataManager"
;
import
{
NetManager
}
from
"../../tw/manager/NetManager"
;
import
Panel
from
"./Panel"
;
export
default
class
NoPrizePanel
extends
Panel
{
_level
;
start
(
data
)
{
...
...
@@ -40,7 +38,7 @@ export default class NoPrizePanel extends Panel {
changeMapScene
();
},
this
);
add
AdComp
(
84
,
735.52
,
this
);
add
RankFriendList
(
84
,
735.52
,
this
);
}
...
...
egret/libs/new_wx/components/PrizePanel.ts
View file @
23655e06
import
getShowOffPic
from
"../../../src/getShowOffPic"
;
import
{
iswx
}
from
"../../../src/iswx"
;
import
{
getlogItem
}
from
"../../../src/Main"
;
import
{
addRankFriendList
}
from
"../../../src/mapScene/RankFriendList"
;
import
setGray
from
"../../../src/setGray"
;
import
{
showShare
}
from
"../../../src/shareCtrl"
;
import
{
changeMapScene
}
from
"../../../src/startScene/StartScene"
;
import
wait
from
"../../new_tc/wait"
;
import
{
DataManager
}
from
"../../tw/manager/DataManager"
;
import
{
NetManager
}
from
"../../tw/manager/NetManager"
;
import
SceneCtrl
from
"../ctrls/sceneCtrl"
;
import
{
ModuleTypes
}
from
"../types/sceneTypes"
;
import
Panel
from
"./Panel"
;
import
getShowOffPic
from
"../../../src/getShowOffPic"
;
import
wait
from
"../../new_tc/wait"
;
import
{
changeMapScene
}
from
"../../../src/startScene/StartScene"
;
import
{
addAdComp
}
from
"../../../src/panels/BoxPanel"
;
export
default
class
PrizePanel
extends
Panel
{
_level
;
start
(
data
)
{
...
...
@@ -43,7 +41,7 @@ export default class PrizePanel extends Panel {
this
.
setStar
(
hc_submitData
.
stars
);
add
AdComp
(
84
,
938.52
,
this
);
add
RankFriendList
(
84
,
938.52
,
this
);
}
showlog
()
{
...
...
egret/resource/skins/RankFriendListSkin.exml
View file @
23655e06
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"RankFriendListSkin"
width=
"582"
height=
"203"
xmlns:e=
"http://ns.egret.com/eui"
>
<e:Image
source=
"startpanel_bg2_png"
y=
"0"
x=
"0"
/>
<e:List
id=
"friendlist"
itemRendererSkinName=
"FriendItem2Skin"
y=
"48"
x=
"9
"
>
<e:List
id=
"friendlist"
itemRendererSkinName=
"FriendItem2Skin"
y=
"48"
horizontalCenter=
"0
"
>
<e:ArrayCollection>
<e:Array>
<e:Object
a=
"null"
/>
...
...
egret/src/mapScene/RankFriendList.ts
View file @
23655e06
...
...
@@ -2,6 +2,7 @@ import ComponentBase from "../../libs/new_wx/components/ComponentBase";
import
{
DataManager
}
from
"../../libs/tw/manager/DataManager"
;
import
{
NetManager
}
from
"../../libs/tw/manager/NetManager"
;
import
FriendItem2Renderer
from
"../panels/FriendItem2Renderer"
;
import
StartPanel
from
"../panels/StartPanel"
;
export
default
class
RankFriendList
extends
ComponentBase
{
public
friendlist
:
eui
.
List
;
...
...
@@ -36,10 +37,12 @@ export default class RankFriendList extends ComponentBase {
get
skinKey
():
string
{
return
'RankFriendList'
}
}
export
const
addRankFriendList
=
(
x
,
y
,
parent
:
egret
.
DisplayObjectContainer
)
=>
{
export
const
addRankFriendList
=
(
x
,
y
,
parent
:
egret
.
DisplayObjectContainer
,
level
?)
=>
{
if
(
!
level
)
level
=
StartPanel
.
currlevel
;
const
comp
=
new
RankFriendList
();
comp
.
loadSkin
();
comp
.
start
();
comp
.
start
(
level
);
parent
.
addChildAt
(
comp
,
0
);
comp
.
x
=
x
;
comp
.
y
=
y
;
...
...
egret/src/panels/BoxPanel.ts
View file @
23655e06
import
Panel
from
"../../libs/new_wx/components/Panel"
;
import
{
DataManager
}
from
"../../libs/tw/manager/DataManager"
;
import
{
NetManager
}
from
"../../libs/tw/manager/NetManager"
;
import
{
getlogItem
}
from
"../Main"
;
import
{
DataManager
}
from
"../../libs/tw/manager/DataManager"
;
import
AdSmallComp
from
"../mapScene/AdSmallComp"
;
export
default
class
BoxPanel
extends
Panel
{
...
...
egret/src/panels/FailedPanel.ts
View file @
23655e06
import
Panel
from
"../../libs/new_wx/components/Panel"
;
import
SceneCtrl
from
"../../libs/new_wx/ctrls/sceneCtrl"
;
import
{
ModuleTypes
}
from
"../../libs/new_wx/types/sceneTypes"
;
import
{
NetManager
}
from
"../../libs/tw/manager/NetManager"
;
import
{
addRankFriendList
}
from
"../mapScene/RankFriendList"
;
import
{
changeMapScene
}
from
"../startScene/StartScene"
;
import
{
addAdComp
}
from
"./BoxPanel"
;
export
default
class
FailedPanel
extends
Panel
{
_level
;
...
...
@@ -22,7 +20,7 @@ export default class FailedPanel extends Panel {
},
this
);
add
AdComp
(
84
,
674.52
,
this
);
add
RankFriendList
(
84
,
674.52
,
this
);
}
onTouchTap_closeBtn
()
{
...
...
egret/src/panels/Prize2Panel.ts
View file @
23655e06
import
wait
from
"../../libs/new_tc/wait"
;
import
Panel
from
"../../libs/new_wx/components/Panel"
;
import
{
DataManager
}
from
"../../libs/tw/manager/DataManager"
;
import
{
NetManager
}
from
"../../libs/tw/manager/NetManager"
;
import
getShowOffPic
from
"../getShowOffPic"
;
import
{
iswx
}
from
"../iswx"
;
import
{
getlogItem
}
from
"../Main"
;
import
SceneCtrl
from
"../../libs/new_wx/ctrls/sceneCtrl"
;
import
{
ModuleTypes
}
from
"../../libs/new_wx/types/sceneTypes"
;
import
{
addRankFriendList
}
from
"../mapScene/RankFriendList"
;
import
setGray
from
"../setGray"
;
import
getShowOffPic
from
"../getShowOffPic"
;
import
{
showShare
}
from
"../shareCtrl"
;
import
{
iswx
}
from
"../iswx"
;
import
wait
from
"../../libs/new_tc/wait"
;
import
{
changeMapScene
}
from
"../startScene/StartScene"
;
import
{
addAdComp
}
from
"./BoxPanel"
;
export
default
class
Prize2Panel
extends
Panel
{
_level
;
...
...
@@ -47,7 +45,7 @@ export default class Prize2Panel extends Panel {
const
hc_submitData
=
DataManager
.
ins
.
getData
(
'hc_submit'
).
data
;
this
.
setStar
(
hc_submitData
.
stars
);
add
AdComp
(
84
,
849.52
,
this
);
add
RankFriendList
(
84
,
849.52
,
this
);
}
showlog
()
{
...
...
egret/src/panels/StartPanel.ts
View file @
23655e06
...
...
@@ -18,15 +18,22 @@ import { ElementType } from "../something/enum/ElementType";
import
{
PassType
}
from
"../something/enum/PassType"
;
import
TargetItemRenderer
from
"./TargetItemRenderer"
;
import
{
addRankFriendList
}
from
"../mapScene/RankFriendList"
;
import
{
addAdComp
}
from
"./BoxPanel"
;
export
default
class
StartPanel
extends
Panel
{
static
currlevel
;
private
_level
;
private
list
:
eui
.
List
;
start
(
data
)
{
super
.
start
();
addRankFriendList
(
84
,
925
,
this
);
const
homedata
=
getHomeData
();
if
(
data
>
homedata
.
levels
.
length
)
{
addAdComp
(
84
,
925
,
this
)
}
else
addRankFriendList
(
84
,
925
,
this
,
data
);
setGlow
(
this
[
'levelTxt'
],
0xfa4b09
,
1
);
this
[
'levelTxt'
].
text
=
`第
${
data
}
关`
;
...
...
@@ -124,6 +131,7 @@ export default class StartPanel extends Panel {
// Loading.instace.hide();
this
.
hidePanel
();
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
MAIN_SCENE
,
{
chapter
:
this
.
_level
});
StartPanel
.
currlevel
=
this
.
_level
}
},
this
.
_level
);
...
...
mock/happyclear/levelNumRank.json
View file @
23655e06
{
"success"
:
true
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"timestamp"
:
1571045294822
,
"data"
:
null
}
\ No newline at end of file
{
"success"
:
true
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"timestamp"
:
1571044339755
,
"data"
:
{
"levelNum"
:
1
,
"rank"
:
[
{
"nickName"
:
"https://wx.qlogo.cn/mmopen/vi_32/5icsJibet91SjpqD2GygMAA5twUoqVTiaOqS3NQNia0Jbuia2fZxlh03AIyiaaVTRRKOxo1Ym17icjBBkiaMhicv3zhXgRQ/132"
,
"avatar"
:
"https://wx.qlogo.cn/mmopen/vi_32/5icsJibet91SjpqD2GygMAA5twUoqVTiaOqS3NQNia0Jbuia2fZxlh03AIyiaaVTRRKOxo1Ym17icjBBkiaMhicv3zhXgRQ/132"
,
"stars"
:
3
,
"maxScore"
:
31940
,
"rank"
:
null
,
"levelNum"
:
null
,
"consumerId"
:
null
}
,
{
"nickName"
:
"https://wx.qlogo.cn/mmopen/vi_32/5icsJibet91SjpqD2GygMAA5twUoqVTiaOqS3NQNia0Jbuia2fZxlh03AIyiaaVTRRKOxo1Ym17icjBBkiaMhicv3zhXgRQ/132"
,
"avatar"
:
"https://wx.qlogo.cn/mmopen/vi_32/5icsJibet91SjpqD2GygMAA5twUoqVTiaOqS3NQNia0Jbuia2fZxlh03AIyiaaVTRRKOxo1Ym17icjBBkiaMhicv3zhXgRQ/132"
,
"stars"
:
3
,
"maxScore"
:
31940
,
"rank"
:
null
,
"levelNum"
:
null
,
"consumerId"
:
null
}
]
}
}
\ 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