Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
db-game-template
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
崔立强
db-game-template
Commits
a355853d
Commit
a355853d
authored
Dec 05, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
51e3dd34
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
31 additions
and
4 deletions
+31
-4
DreamAdminSkin.exml
egret/resource/skins/DreamAdminSkin.exml
+1
-0
DreamSkin.exml
egret/resource/skins/DreamSkin.exml
+1
-0
HisDreamSkin.exml
egret/resource/skins/HisDreamSkin.exml
+1
-0
IntroSkin.exml
egret/resource/skins/IntroSkin.exml
+1
-0
ListSkin.exml
egret/resource/skins/ListSkin.exml
+1
-0
AdminScene.ts
egret/src/AdminScene.ts
+3
-0
DreamAdminScene.ts
egret/src/DreamAdminScene.ts
+2
-2
DreamScene.ts
egret/src/DreamScene.ts
+2
-1
HisDreamScene.ts
egret/src/HisDreamScene.ts
+2
-0
IntroScene.ts
egret/src/IntroScene.ts
+2
-0
ListScene.ts
egret/src/ListScene.ts
+2
-0
setBackBtn.ts
egret/src/setBackBtn.ts
+12
-0
join1dreamDetail.json
mock/esports/join1dreamDetail.json
+1
-1
No files found.
egret/resource/skins/DreamAdminSkin.exml
View file @
a355853d
...
@@ -32,4 +32,5 @@
...
@@ -32,4 +32,5 @@
</e:Group>
</e:Group>
</e:Group>
</e:Group>
</e:Scroller>
</e:Scroller>
<e:Image
id=
"backbtnxx"
source=
"common_backbtn_png"
x=
"33.2"
y=
"22.96"
/>
</e:Skin>
</e:Skin>
\ No newline at end of file
egret/resource/skins/DreamSkin.exml
View file @
a355853d
...
@@ -41,4 +41,5 @@
...
@@ -41,4 +41,5 @@
</e:Group>
</e:Group>
</e:Group>
</e:Group>
</e:Scroller>
</e:Scroller>
<e:Image
id=
"backbtnxx"
source=
"common_backbtn_png"
x=
"33.2"
y=
"22.96"
/>
</e:Skin>
</e:Skin>
\ No newline at end of file
egret/resource/skins/HisDreamSkin.exml
View file @
a355853d
...
@@ -93,4 +93,5 @@
...
@@ -93,4 +93,5 @@
</e:Group>
</e:Group>
</e:Group>
</e:Group>
</e:Scroller>
</e:Scroller>
<e:Image
id=
"backbtnxx"
source=
"common_backbtn_png"
x=
"33.2"
y=
"22.96"
/>
</e:Skin>
</e:Skin>
\ No newline at end of file
egret/resource/skins/IntroSkin.exml
View file @
a355853d
...
@@ -18,4 +18,5 @@
...
@@ -18,4 +18,5 @@
<e:Label
id=
"content"
text=
"梦想的具体内容梦想的具体内容梦想的具体内容梦想的具体内容梦想的具体内容梦想的具体内容梦想的具体内容"
y=
"6.2900000000000205"
textColor=
"0x515276"
scaleX=
"1"
scaleY=
"1"
size=
"26"
lineSpacing=
"10"
horizontalCenter=
"0"
width=
"614"
x=
"-45"
/>
<e:Label
id=
"content"
text=
"梦想的具体内容梦想的具体内容梦想的具体内容梦想的具体内容梦想的具体内容梦想的具体内容梦想的具体内容"
y=
"6.2900000000000205"
textColor=
"0x515276"
scaleX=
"1"
scaleY=
"1"
size=
"26"
lineSpacing=
"10"
horizontalCenter=
"0"
width=
"614"
x=
"-45"
/>
</e:Group>
</e:Group>
</e:Scroller>
</e:Scroller>
<e:Image
id=
"backbtnxx"
source=
"common_backbtn_png"
x=
"33.2"
y=
"22.96"
/>
</e:Skin>
</e:Skin>
\ No newline at end of file
egret/resource/skins/ListSkin.exml
View file @
a355853d
...
@@ -53,4 +53,5 @@
...
@@ -53,4 +53,5 @@
</e:List>
</e:List>
</e:Scroller>
</e:Scroller>
<e:Label
id=
"tips"
text=
"还未给梦想助力哦~ \n前往“所有梦想”可为他人梦想充能"
y=
"603"
textColor=
"0x000000"
verticalAlign=
"middle"
textAlign=
"center"
horizontalCenter=
"0"
lineSpacing=
"10"
visible=
"false"
/>
<e:Label
id=
"tips"
text=
"还未给梦想助力哦~ \n前往“所有梦想”可为他人梦想充能"
y=
"603"
textColor=
"0x000000"
verticalAlign=
"middle"
textAlign=
"center"
horizontalCenter=
"0"
lineSpacing=
"10"
visible=
"false"
/>
<e:Image
id=
"backbtnxx"
source=
"common_backbtn_png"
x=
"33.2"
y=
"22.96"
/>
</e:Skin>
</e:Skin>
\ No newline at end of file
egret/src/AdminScene.ts
View file @
a355853d
...
@@ -4,6 +4,7 @@ import PanelCtrl from "../libs/new_wx/ctrls/panelCtrl";
...
@@ -4,6 +4,7 @@ import PanelCtrl from "../libs/new_wx/ctrls/panelCtrl";
import
SceneCtrl
from
"../libs/new_wx/ctrls/sceneCtrl"
;
import
SceneCtrl
from
"../libs/new_wx/ctrls/sceneCtrl"
;
import
{
NetManager
}
from
"../libs/tw/manager/NetManager"
;
import
{
NetManager
}
from
"../libs/tw/manager/NetManager"
;
import
{
DataManager
}
from
"../libs/tw/manager/DataManager"
;
import
{
DataManager
}
from
"../libs/tw/manager/DataManager"
;
import
setBackBtn
from
"./setBackBtn"
;
export
default
class
AdminScene
extends
Scene
{
export
default
class
AdminScene
extends
Scene
{
list
:
eui
.
List
;
list
:
eui
.
List
;
...
@@ -11,6 +12,8 @@ export default class AdminScene extends Scene {
...
@@ -11,6 +12,8 @@ export default class AdminScene extends Scene {
super
.
start
();
super
.
start
();
this
.
showlog
();
this
.
showlog
();
setBackBtn
(
this
);
this
[
'scroll'
].
height
=
this
.
stage
.
stageHeight
-
this
[
'scroll'
].
y
;
this
[
'scroll'
].
height
=
this
.
stage
.
stageHeight
-
this
[
'scroll'
].
y
;
this
.
list
.
useVirtualLayout
=
true
;
this
.
list
.
useVirtualLayout
=
true
;
...
...
egret/src/DreamAdminScene.ts
View file @
a355853d
import
Scene
from
"../libs/new_wx/components/Scene"
;
import
Scene
from
"../libs/new_wx/components/Scene"
;
import
PanelCtrl
from
"../libs/new_wx/ctrls/panelCtrl"
;
import
PanelCtrl
from
"../libs/new_wx/ctrls/panelCtrl"
;
import
SceneCtrl
from
"../libs/new_wx/ctrls/sceneCtrl"
;
import
{
DataManager
}
from
"../libs/tw/manager/DataManager"
;
import
{
DataManager
}
from
"../libs/tw/manager/DataManager"
;
import
{
NetManager
}
from
"../libs/tw/manager/NetManager
"
;
import
setBackBtn
from
"./setBackBtn
"
;
export
default
class
DreamAdminScene
extends
Scene
{
export
default
class
DreamAdminScene
extends
Scene
{
list
:
eui
.
List
;
list
:
eui
.
List
;
...
@@ -11,6 +10,7 @@ export default class DreamAdminScene extends Scene {
...
@@ -11,6 +10,7 @@ export default class DreamAdminScene extends Scene {
super
.
start
();
super
.
start
();
this
.
showlog
();
this
.
showlog
();
this
.
id
=
data
.
id
;
this
.
id
=
data
.
id
;
setBackBtn
(
this
,
'AdminScene'
);
this
[
'img'
].
mask
=
this
[
'imgMask'
];
this
[
'img'
].
mask
=
this
[
'imgMask'
];
this
[
'scroll'
].
height
=
this
.
stage
.
stageHeight
-
this
[
'scroll'
].
y
;
this
[
'scroll'
].
height
=
this
.
stage
.
stageHeight
-
this
[
'scroll'
].
y
;
...
...
egret/src/DreamScene.ts
View file @
a355853d
...
@@ -5,6 +5,7 @@ import { DataManager } from "../libs/tw/manager/DataManager";
...
@@ -5,6 +5,7 @@ import { DataManager } from "../libs/tw/manager/DataManager";
import
getsubmitUrl
from
"./getsubmitUrl"
;
import
getsubmitUrl
from
"./getsubmitUrl"
;
import
join_1_index
from
"./interfaces/join_1_index"
;
import
join_1_index
from
"./interfaces/join_1_index"
;
import
{
NetManager
}
from
"../libs/tw/manager/NetManager"
;
import
{
NetManager
}
from
"../libs/tw/manager/NetManager"
;
import
setBackBtn
from
"./setBackBtn"
;
export
enum
DreamSceneType
{
export
enum
DreamSceneType
{
IN_PROGRESS
=
0
,
IN_PROGRESS
=
0
,
RESUBMIT
=
1
,
RESUBMIT
=
1
,
...
@@ -19,7 +20,7 @@ export default class DreamScene extends Scene {
...
@@ -19,7 +20,7 @@ export default class DreamScene extends Scene {
this
[
'group'
].
removeChild
(
this
[
'status0'
]);
this
[
'group'
].
removeChild
(
this
[
'status0'
]);
this
[
'group'
].
removeChild
(
this
[
'status1'
]);
this
[
'group'
].
removeChild
(
this
[
'status1'
]);
this
[
'group'
].
removeChild
(
this
[
'status2'
]);
this
[
'group'
].
removeChild
(
this
[
'status2'
]);
setBackBtn
(
this
);
this
.
status
=
data
;
this
.
status
=
data
;
this
[
'img'
].
mask
=
this
[
'imgMask'
];
this
[
'img'
].
mask
=
this
[
'imgMask'
];
...
...
egret/src/HisDreamScene.ts
View file @
a355853d
...
@@ -6,11 +6,13 @@ import { DataManager } from "../libs/tw/manager/DataManager";
...
@@ -6,11 +6,13 @@ import { DataManager } from "../libs/tw/manager/DataManager";
import
join_1_index
from
"./interfaces/join_1_index"
;
import
join_1_index
from
"./interfaces/join_1_index"
;
import
{
getProvince
}
from
"./MyDreamScene"
;
import
{
getProvince
}
from
"./MyDreamScene"
;
import
{
NetManager
}
from
"../libs/tw/manager/NetManager"
;
import
{
NetManager
}
from
"../libs/tw/manager/NetManager"
;
import
setBackBtn
from
"./setBackBtn"
;
export
default
class
HisDreamScene
extends
Scene
{
export
default
class
HisDreamScene
extends
Scene
{
type
;
type
;
async
start
(
type
?)
{
async
start
(
type
?)
{
this
.
showlog
();
this
.
showlog
();
setBackBtn
(
this
,
'ListScene'
);
const
yyh_join1_dreamDetail
=
DataManager
.
ins
.
getData
(
'yyh_join1_dreamDetail'
).
data
;
const
yyh_join1_dreamDetail
=
DataManager
.
ins
.
getData
(
'yyh_join1_dreamDetail'
).
data
;
this
.
type
=
type
;
this
.
type
=
type
;
...
...
egret/src/IntroScene.ts
View file @
a355853d
...
@@ -5,12 +5,14 @@ import { DataManager } from "../libs/tw/manager/DataManager";
...
@@ -5,12 +5,14 @@ import { DataManager } from "../libs/tw/manager/DataManager";
import
{
NetManager
}
from
"../libs/tw/manager/NetManager"
;
import
{
NetManager
}
from
"../libs/tw/manager/NetManager"
;
import
getsubmitUrl
from
"./getsubmitUrl"
;
import
getsubmitUrl
from
"./getsubmitUrl"
;
import
join_1_index
from
"./interfaces/join_1_index"
;
import
join_1_index
from
"./interfaces/join_1_index"
;
import
setBackBtn
from
"./setBackBtn"
;
export
default
class
IntroScene
extends
Scene
{
export
default
class
IntroScene
extends
Scene
{
async
start
(
data
?)
{
async
start
(
data
?)
{
super
.
start
();
super
.
start
();
this
.
showlog
();
this
.
showlog
();
setBackBtn
(
this
);
this
[
`status
${
data
}
`
].
visible
=
true
;
this
[
`status
${
data
}
`
].
visible
=
true
;
this
[
'btn0'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
ontap_btn0
,
this
);
this
[
'btn0'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
ontap_btn0
,
this
);
this
[
'btn1'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
ontap_btn1
,
this
);
this
[
'btn1'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
ontap_btn1
,
this
);
...
...
egret/src/ListScene.ts
View file @
a355853d
...
@@ -8,12 +8,14 @@ import join_1_index from "./interfaces/join_1_index";
...
@@ -8,12 +8,14 @@ import join_1_index from "./interfaces/join_1_index";
import
{
getMyInfo
}
from
"./MainScene"
;
import
{
getMyInfo
}
from
"./MainScene"
;
import
getcredits
from
"./getcredits"
;
import
getcredits
from
"./getcredits"
;
import
{
showToast
}
from
"../libs/new_wx/ctrls/toastCtrl"
;
import
{
showToast
}
from
"../libs/new_wx/ctrls/toastCtrl"
;
import
setBackBtn
from
"./setBackBtn"
;
export
default
class
ListScene
extends
Scene
{
export
default
class
ListScene
extends
Scene
{
list
:
eui
.
List
;
list
:
eui
.
List
;
list2
:
eui
.
List
;
list2
:
eui
.
List
;
async
start
(
data
?)
{
async
start
(
data
?)
{
super
.
start
();
super
.
start
();
setBackBtn
(
this
);
this
.
showlog
();
this
.
showlog
();
this
[
'scroll'
].
height
=
this
.
stage
.
stageHeight
-
this
[
'scroll'
].
y
-
this
[
'group'
].
y
-
10
;
this
[
'scroll'
].
height
=
this
.
stage
.
stageHeight
-
this
[
'scroll'
].
y
-
this
[
'group'
].
y
-
10
;
...
...
egret/src/setBackBtn.ts
0 → 100644
View file @
a355853d
import
{
NetManager
}
from
"../libs/tw/manager/NetManager"
;
import
SceneCtrl
from
"../libs/new_wx/ctrls/sceneCtrl"
;
export
default
(
t
,
key
=
'MainScene'
)
=>
{
if
(
t
[
'backbtnxx'
])
t
[
'backbtnxx'
].
once
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
NetManager
.
ins
.
yyh_join1_index
(
async
(
success
)
=>
{
SceneCtrl
.
instance
.
change
(
key
);
});
},
this
);
}
\ No newline at end of file
mock/esports/join1dreamDetail.json
View file @
a355853d
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
"consumerId"
:
"500208012"
,
"consumerId"
:
"500208012"
,
"dreamContent"
:
"test content2"
,
"dreamContent"
:
"test content2"
,
"dreamPic"
:
"http://yun.duiba.com.cn/duibaimage/1574660334863500208012.png"
,
"dreamPic"
:
"http://yun.duiba.com.cn/duibaimage/1574660334863500208012.png"
,
"dreamStatus"
:
"
2
"
,
"dreamStatus"
:
"
-1
"
,
"dreamTitle"
:
"testtitle2"
,
"dreamTitle"
:
"testtitle2"
,
"energy"
:
2
,
"energy"
:
2
,
"energyLimit"
:
100
,
"energyLimit"
:
100
,
...
...
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