Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Y
yyh
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
yyh
Commits
6571c199
Commit
6571c199
authored
Dec 09, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
ef394a8b
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
125 additions
and
13 deletions
+125
-13
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+14
-0
default.res.json
egret/resource/default.res.json
+11
-1
default.thm.json
egret/resource/default.thm.json
+0
-5
TransSkin.exml
egret/resource/skins/TransSkin.exml
+8
-0
Main.ts
egret/src/Main.ts
+6
-4
sceneTypes.ts
egret/src/types/sceneTypes.ts
+1
-0
TransRecordItemRenderer.ts
egret/src/yazuwei/TransRecordItemRenderer.ts
+10
-2
TransRecordPanel.ts
egret/src/yazuwei/TransRecordPanel.ts
+8
-1
TransScene.ts
egret/src/yazuwei/TransScene.ts
+21
-0
config.js
mock/config.js
+3
-0
passRecord.json
mock/yzw/passRecord.json
+43
-0
No files found.
egret/libs/tw/manager/NetManager.ts
View file @
6571c199
...
...
@@ -185,6 +185,20 @@ export class NetManager extends ABNetManager {
this
.
send
(
net
);
}
public
yyh_passRecord
(
callback
?:
Function
):
void
{
const
net
:
INetData
=
{
name
:
'yyh_passRecord'
,
uri
:
'/projectx/1/invite_2/passRecord.do'
,
type
:
'get'
,
dataType
:
'json'
,
param
:
{
},
callback
:
callback
};
this
.
send
(
net
);
}
/**
* 夏日活动游戏基础信息
*/
...
...
egret/resource/default.res.json
View file @
6571c199
...
...
@@ -10,7 +10,7 @@
},
{
"name"
:
"preload"
,
"keys"
:
"hand_png,hand2_png,ydlight_png,ydlight2_png,ydline_png,mapBtn_png,maphz_png,mappass_png,mram_png,mrbg_png,mrcx_png,mrhg_png,mrhz_png,mrmg_png,mrrb_png,mrtb_png,mrtitle_png,mrxg_png,pkadd_png,pkagainBtn_png,pkaskBtn_png,pkBG_png,pkBtn_png,pkcirle_png,pkloselight_png,pkloselogo_png,pkmyline_png,pkotherline_png,pkprizebg_png,pkprizeBtn_png,pkrulebg_png,pkrulebtn_png,pkscorebg_png,pkwinbg_png,pkwinBtn_png,pkwinlogo_png,finishbg_png,finishBtn_png,finishlight_png,finishlogo_png,lessscorebg_png,lessscoreBtn_png,rankbg_png,rankbg2_png,rankline_png,rankmybg_png,rulebg_png,sharebg_png,shareBtn_png,sharelab_png,sharerecordbg_png,sharerecordBtn_png,背景@2x_png,BG_png,chaoxian_png,CHNaomen_png,CHNhangzhou_png,CHNtaiwan_png,CHNxianggang_png,closeBtn_png,fireBtn_png,getBtn_png,hanguo_png,horn_png,littletitle_png,lockBtn_png,menggu_png,prizeBtn_png,rankBtn_png,recordBtn_png,riben_png,ruleBtn_png,startBtn_png,starttitle_png,teamBtn_png,unchaoxian_png,unCHNaomen_png,unCHNhangzhou_png,unCHNtaiwan_png,unCHNxianggang_png,unhanguo_png,unmenggu_png,unriben_png,waitBtn_png,yylogo_png,closeBtn2_png,xuanshiBG_png,xuanshiBtn_png,ranklight_png,pknoton_png,box_png,head1_png,pkpeacelight_png,pkwinlight_png,pkendbg_png,mapshareBtn_png,pkscorebg2_png,hand3_png,hand22_png,ydlight3_png,ydlight22_png,ydline2_png,mapBtn2_png,maphz2_png,mappass2_png,mapshareBtn2_png,mram2_png,mrbg2_png,mrcx2_png,mrhg2_png,mrhz2_png,mrmg2_png,mrrb2_png,mrtb2_png,mrtitle2_png,mrxg2_png,box2_png,head12_png,pkadd2_png,pkagainBtn2_png,pkaskBtn2_png,pkBG2_png,pkBtn2_png,pkcirle2_png,pkendbg2_png,pkloselight2_png,pkloselogo2_png,pkmyline2_png,pknoton2_png,pkotherline2_png,pkpeacelight2_png,pkprizebg2_png,pkprizeBtn2_png,pkrulebg2_png,pkrulebtn2_png,pkscorebg3_png,pkscorebg22_png,pkwinbg2_png,pkwinBtn2_png,pkwinlight2_png,pkwinlogo2_png,finishbg2_png,finishBtn2_png,finishlight2_png,finishlogo2_png,lessscorebg2_png,lessscoreBtn2_png,rankbg3_png,rankbg22_png,ranklight2_png,rankline2_png,rankmybg2_png,rulebg2_png,sharebg2_png,shareBtn2_png,sharelab2_png,sharerecordbg2_png,sharerecordBtn2_png,背景@2x2_png,BG2_png,chaoxian2_png,CHNaomen2_png,CHNhangzhou2_png,CHNtaiwan2_png,CHNxianggang2_png,closeBtn3_png,fireBtn2_png,getBtn2_png,hanguo2_png,horn2_png,littletitle2_png,lockBtn2_png,menggu2_png,prizeBtn2_png,rankBtn2_png,recordBtn2_png,riben2_png,ruleBtn2_png,startBtn2_png,starttitle2_png,teamBtn2_png,unchaoxian2_png,unCHNaomen2_png,unCHNhangzhou2_png,unCHNtaiwan2_png,unCHNxianggang2_png,unhanguo2_png,unmenggu2_png,unriben2_png,waitBtn2_png,yylogo2_png,bg2_png,progress2_png,closeBtn4_png,xuanshiBG2_png,xuanshiBtn2_png,transfer _toast1_png,transfer _toast2_png,transfer _toast3_png,teamshare_btn_png,teamshare_bg_jpg,slogan_btn_png,slogan_bg_png,sharestarter_sharebtn_png,sharestarter_btn_png,sharestarter_bg_jpg,joinshare_bg_jpg,joinshare_btn_png,confirm_bg_png,confirm_btn_png,关闭按钮 _png,certificate_jpg,certificate_cover_png,certificate_btn_png,pkpeacelogo_png"
"keys"
:
"hand_png,hand2_png,ydlight_png,ydlight2_png,ydline_png,mapBtn_png,maphz_png,mappass_png,mram_png,mrbg_png,mrcx_png,mrhg_png,mrhz_png,mrmg_png,mrrb_png,mrtb_png,mrtitle_png,mrxg_png,pkadd_png,pkagainBtn_png,pkaskBtn_png,pkBG_png,pkBtn_png,pkcirle_png,pkloselight_png,pkloselogo_png,pkmyline_png,pkotherline_png,pkprizebg_png,pkprizeBtn_png,pkrulebg_png,pkrulebtn_png,pkscorebg_png,pkwinbg_png,pkwinBtn_png,pkwinlogo_png,finishbg_png,finishBtn_png,finishlight_png,finishlogo_png,lessscorebg_png,lessscoreBtn_png,rankbg_png,rankbg2_png,rankline_png,rankmybg_png,rulebg_png,sharebg_png,shareBtn_png,sharelab_png,sharerecordbg_png,sharerecordBtn_png,背景@2x_png,BG_png,chaoxian_png,CHNaomen_png,CHNhangzhou_png,CHNtaiwan_png,CHNxianggang_png,closeBtn_png,fireBtn_png,getBtn_png,hanguo_png,horn_png,littletitle_png,lockBtn_png,menggu_png,prizeBtn_png,rankBtn_png,recordBtn_png,riben_png,ruleBtn_png,startBtn_png,starttitle_png,teamBtn_png,unchaoxian_png,unCHNaomen_png,unCHNhangzhou_png,unCHNtaiwan_png,unCHNxianggang_png,unhanguo_png,unmenggu_png,unriben_png,waitBtn_png,yylogo_png,closeBtn2_png,xuanshiBG_png,xuanshiBtn_png,ranklight_png,pknoton_png,box_png,head1_png,pkpeacelight_png,pkwinlight_png,pkendbg_png,mapshareBtn_png,pkscorebg2_png,hand3_png,hand22_png,ydlight3_png,ydlight22_png,ydline2_png,mapBtn2_png,maphz2_png,mappass2_png,mapshareBtn2_png,mram2_png,mrbg2_png,mrcx2_png,mrhg2_png,mrhz2_png,mrmg2_png,mrrb2_png,mrtb2_png,mrtitle2_png,mrxg2_png,box2_png,head12_png,pkadd2_png,pkagainBtn2_png,pkaskBtn2_png,pkBG2_png,pkBtn2_png,pkcirle2_png,pkendbg2_png,pkloselight2_png,pkloselogo2_png,pkmyline2_png,pknoton2_png,pkotherline2_png,pkpeacelight2_png,pkprizebg2_png,pkprizeBtn2_png,pkrulebg2_png,pkrulebtn2_png,pkscorebg3_png,pkscorebg22_png,pkwinbg2_png,pkwinBtn2_png,pkwinlight2_png,pkwinlogo2_png,finishbg2_png,finishBtn2_png,finishlight2_png,finishlogo2_png,lessscorebg2_png,lessscoreBtn2_png,rankbg3_png,rankbg22_png,ranklight2_png,rankline2_png,rankmybg2_png,rulebg2_png,sharebg2_png,shareBtn2_png,sharelab2_png,sharerecordbg2_png,sharerecordBtn2_png,背景@2x2_png,BG2_png,chaoxian2_png,CHNaomen2_png,CHNhangzhou2_png,CHNtaiwan2_png,CHNxianggang2_png,closeBtn3_png,fireBtn2_png,getBtn2_png,hanguo2_png,horn2_png,littletitle2_png,lockBtn2_png,menggu2_png,prizeBtn2_png,rankBtn2_png,recordBtn2_png,riben2_png,ruleBtn2_png,startBtn2_png,starttitle2_png,teamBtn2_png,unchaoxian2_png,unCHNaomen2_png,unCHNhangzhou2_png,unCHNtaiwan2_png,unCHNxianggang2_png,unhanguo2_png,unmenggu2_png,unriben2_png,waitBtn2_png,yylogo2_png,bg2_png,progress2_png,closeBtn4_png,xuanshiBG2_png,xuanshiBtn2_png,transfer _toast1_png,transfer _toast2_png,transfer _toast3_png,teamshare_btn_png,teamshare_bg_jpg,slogan_btn_png,slogan_bg_png,sharestarter_sharebtn_png,sharestarter_btn_png,sharestarter_bg_jpg,joinshare_bg_jpg,joinshare_btn_png,confirm_bg_png,confirm_btn_png,关闭按钮 _png,certificate_jpg,certificate_cover_png,certificate_btn_png,pkpeacelogo_png
,transferrecord_bg_png,transferrecord_item_bg_png
"
}
],
"resources"
:
[
...
...
@@ -1098,6 +1098,16 @@
"name"
:
"pkpeacelogo_png"
,
"type"
:
"image"
,
"url"
:
"assets/pk/pkpeacelogo.png"
},
{
"name"
:
"transferrecord_bg_png"
,
"type"
:
"image"
,
"url"
:
"assets/transferrecord/transferrecord_bg.png"
},
{
"name"
:
"transferrecord_item_bg_png"
,
"type"
:
"image"
,
"url"
:
"assets/transferrecord/transferrecord_item_bg.png"
}
]
}
\ No newline at end of file
egret/resource/default.thm.json
View file @
6571c199
...
...
@@ -9,7 +9,6 @@
"resource/skins/MsgSkin.exml"
,
"resource/skins/RuleSkin.exml"
,
"resource/skins/ui/StartButtonSkin.exml"
,
"resource/skins/ToastSkin.exml"
,
"resource/skins/VScrollBarSkin.exml"
,
"resource/skins/WaitingSkin.exml"
,
...
...
@@ -20,9 +19,6 @@
"resource/skins/NoPrizeSkin.exml"
,
"resource/skins/TransRecordSkin.exml"
,
"resource/skins/TransRecordItemSkin.exml"
,
"resource/skins/StartSkin.exml"
,
"resource/skins/GuideSkin.exml"
,
"resource/skins/PlaceSkin.exml"
,
...
...
@@ -37,7 +33,6 @@
"resource/skins/JoinShareSkin.exml"
,
"resource/skins/PKScoreSkin.exml"
,
"resource/skins/CertificateSkin.exml"
],
"path"
:
"resource/default.thm.json"
}
\ No newline at end of file
egret/resource/skins/TransSkin.exml
0 → 100644
View file @
6571c199
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"ShareSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Group
x=
"0"
verticalCenter=
"0"
>
</e:Group>
<e:Image
source=
"transfer _toast1_png"
y=
"324.64"
horizontalCenter=
"0"
/>
<e:Image
source=
"transfer _toast2_png"
y=
"469.66"
horizontalCenter=
"0"
/>
<e:Image
source=
"transfer _toast3_png"
y=
"139.55"
horizontalCenter=
"0"
/>
</e:Skin>
\ No newline at end of file
egret/src/Main.ts
View file @
6571c199
...
...
@@ -45,6 +45,7 @@ import ShareStarterScene from './yazuwei/ShareStarterScene';
import
TransRecordPanel
from
'./yazuwei/TransRecordPanel'
;
import
SloganPanel
from
'./yazuwei/SloganPanel'
;
import
TeamShareScene
from
'./yazuwei/TeamShareScene'
;
import
TransScene
from
'./yazuwei/TransScene'
;
class
Main
extends
MainBase
{
protected
registerModules
()
{
...
...
@@ -77,6 +78,7 @@ class Main extends MainBase {
SceneCtrl
.
instance
.
registerClass
(
ModuleTypes
.
Share2Scene
,
Share2Scene
);
SceneCtrl
.
instance
.
registerClass
(
ModuleTypes
.
TeamShareScene
,
TeamShareScene
);
SceneCtrl
.
instance
.
registerClass
(
ModuleTypes
.
ShareStarterScene
,
ShareStarterScene
);
SceneCtrl
.
instance
.
registerClass
(
ModuleTypes
.
TransScene
,
TransScene
);
PanelCtrl
.
instance
.
registerClass
(
ModuleTypes
.
TransRecordPanel
,
TransRecordPanel
);
...
...
@@ -157,11 +159,11 @@ class Main extends MainBase {
// 创建游戏场景
protected
createGameScene
()
{
super
.
createGameScene
();
// SceneCtrl.instance.change(ModuleTypes.Share2
Scene);
//
// PanelCtrl.instance.show(ModuleTypes.JoinShareScene
);
//
Waiting.instance.hide();
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
ShareStarter
Scene
);
//
PanelCtrl.instance.show(ModuleTypes.SloganPanel
);
Waiting
.
instance
.
hide
();
//
return;
return
;
//获取UA信息
let
userAgent
=
navigator
.
userAgent
.
toLowerCase
();
console
.
log
(
userAgent
);
...
...
egret/src/types/sceneTypes.ts
View file @
6571c199
...
...
@@ -46,6 +46,7 @@ export enum ModuleTypes {
Share2Scene
,
TeamShareScene
,
ShareStarterScene
,
TransScene
,
TransRecordPanel
,
TOAST
}
\ No newline at end of file
egret/src/yazuwei/TransRecordItemRenderer.ts
View file @
6571c199
import
{
getSkinPath
}
from
"../utils"
;
const
getNum
=
(
n
)
=>
{
return
n
>=
10
?
n
:
'0'
+
n
}
export
default
class
TransRecordItemRenderer
extends
eui
.
ItemRenderer
{
protected
get
skinKey
()
{
return
'TransRecordItem'
}
...
...
@@ -9,8 +10,15 @@ export default class TransRecordItemRenderer extends eui.ItemRenderer {
}
dataChanged
()
{
this
[
'nametxt'
].
text
=
'123'
;
this
[
'timetxt'
].
text
=
'2019.11.19 15:50:20'
;
this
[
'nametxt'
].
text
=
this
.
data
.
phone
;
const
date
=
new
Date
(
this
.
data
.
gmtCreate
);
const
yy
=
getNum
(
date
.
getFullYear
());
const
mm
=
getNum
(
date
.
getMonth
()
+
1
);
const
dd
=
getNum
(
date
.
getDate
());
const
h
=
getNum
(
date
.
getHours
());
const
m
=
getNum
(
date
.
getMinutes
());
const
s
=
getNum
(
date
.
getSeconds
());
this
[
'timetxt'
].
text
=
`
${
yy
}
.
${
mm
}
.
${
dd
}
${
h
}
:
${
m
}
:
${
s
}
`
;
this
[
'bg'
].
visible
=
this
.
itemIndex
%
2
!==
1
;
}
}
\ No newline at end of file
egret/src/yazuwei/TransRecordPanel.ts
View file @
6571c199
import
Panel
from
"../views/Panel"
;
import
TransRecordItemRenderer
from
"./TransRecordItemRenderer"
;
import
{
NetManager
}
from
"../../libs/tw/manager/NetManager"
;
import
{
DataManager
}
from
"../../libs/tw/manager/DataManager"
;
export
default
class
TransRecordPanel
extends
Panel
{
...
...
@@ -13,9 +15,14 @@ export default class TransRecordPanel extends Panel {
}
initUI
()
{
this
.
list
.
useVirtualLayout
=
true
;
this
.
list
.
itemRenderer
=
TransRecordItemRenderer
;
this
.
list
.
dataProvider
=
new
eui
.
ArrayCollection
([
1
,
2
,
3
,
1
,
2
,
3
,
1
,
2
,
3
,
4
]);
NetManager
.
ins
.
yyh_passRecord
((
success
)
=>
{
const
data
=
DataManager
.
ins
.
getData
(
'yyh_passRecord'
).
data
;
this
.
list
.
dataProvider
=
new
eui
.
ArrayCollection
(
data
);
});
}
initEvents
()
{
...
...
egret/src/yazuwei/TransScene.ts
0 → 100644
View file @
6571c199
import
Scene
from
"../views/Scene"
;
export
default
class
TransScene
extends
Scene
{
protected
get
skinKey
()
{
return
'Trans'
}
constructor
(
data
)
{
super
();
this
.
initUI
(
data
);
}
initUI
(
data
)
{
}
onTap_btn
()
{
console
.
log
(
'onTap_btn'
);
}
initEvents
()
{
// this.onTap(this['btn'], this.onTap_btn);
}
}
\ No newline at end of file
mock/config.js
View file @
6571c199
...
...
@@ -233,6 +233,9 @@ const config = {
//足迹分享列表
'/projectx/1/join_1/shareFootprintList.do'
:
{
data
:
'./yzw/shareFootprintList.json'
},
'/projectx/1/invite_2/passRecord.do'
:
{
data
:
'./yzw/passRecord.json'
}
...
...
mock/yzw/passRecord.json
0 → 100644
View file @
6571c199
{
"code"
:
null
,
"data"
:[
{
"gmtCreate"
:
1575862206561
,
"phone"
:
"手机号码111"
},
{
"gmtCreate"
:
1575624740926
,
"phone"
:
"手机号码"
},
{
"gmtCreate"
:
1575624740926
,
"phone"
:
"手机号码"
},
{
"gmtCreate"
:
1575624740926
,
"phone"
:
"手机号码"
},
{
"gmtCreate"
:
1575624740926
,
"phone"
:
"手机号码"
},
{
"gmtCreate"
:
1575624740926
,
"phone"
:
"手机号码"
},
{
"gmtCreate"
:
1575624740926
,
"phone"
:
"手机号码"
},
{
"gmtCreate"
:
1575624740926
,
"phone"
:
"手机号码"
},
{
"gmtCreate"
:
1575624740926
,
"phone"
:
"手机号码"
}
],
"message"
:
null
,
"success"
:
true
}
\ 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