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
caeebf03
Commit
caeebf03
authored
Nov 23, 2019
by
任建锋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--
parent
cd3f33b2
Changes
19
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
352 additions
and
3673 deletions
+352
-3673
StartScene_20191022115928.ts
.history/egret/src/startScene/StartScene_20191022115928.ts
+0
-894
StartScene_20191022115938.ts
.history/egret/src/startScene/StartScene_20191022115938.ts
+0
-894
StartScene_20191022120008.ts
.history/egret/src/startScene/StartScene_20191022120008.ts
+0
-846
StartScene_20191022120134.ts
.history/egret/src/startScene/StartScene_20191022120134.ts
+0
-73
StartScene_20191022120145.ts
.history/egret/src/startScene/StartScene_20191022120145.ts
+0
-71
StartScene_20191022120150.ts
.history/egret/src/startScene/StartScene_20191022120150.ts
+0
-70
StartScene_20191022120705.ts
.history/egret/src/startScene/StartScene_20191022120705.ts
+0
-76
StartScene_20191022140350.ts
.history/egret/src/startScene/StartScene_20191022140350.ts
+0
-81
StartScene_20191022140448.ts
.history/egret/src/startScene/StartScene_20191022140448.ts
+0
-83
StartScene_20191022140639.ts
.history/egret/src/startScene/StartScene_20191022140639.ts
+0
-85
StartScene_20191022151306.ts
.history/egret/src/startScene/StartScene_20191022151306.ts
+0
-87
StartScene_20191022151431.ts
.history/egret/src/startScene/StartScene_20191022151431.ts
+0
-93
StartScene_20191022202721.ts
.history/egret/src/startScene/StartScene_20191022202721.ts
+0
-99
StartScene_20191023164245.ts
.history/egret/src/startScene/StartScene_20191023164245.ts
+0
-101
StartScene_20191023164417.ts
.history/egret/src/startScene/StartScene_20191023164417.ts
+0
-114
StartScene_20191122175332.ts
.history/egret/src/startScene/StartScene_20191122175332.ts
+174
-0
StartScene_20191123102818.ts
.history/egret/src/startScene/StartScene_20191123102818.ts
+172
-0
PubPanelSkin.exml
egret/resource/skins/PubPanelSkin.exml
+3
-3
StartScene.ts
egret/src/startScene/StartScene.ts
+3
-3
No files found.
.history/egret/src/startScene/StartScene_20191022115928.ts
deleted
100644 → 0
View file @
cd3f33b2
This diff is collapsed.
Click to expand it.
.history/egret/src/startScene/StartScene_20191022115938.ts
deleted
100644 → 0
View file @
cd3f33b2
This diff is collapsed.
Click to expand it.
.history/egret/src/startScene/StartScene_20191022120008.ts
deleted
100644 → 0
View file @
cd3f33b2
This diff is collapsed.
Click to expand it.
.history/egret/src/startScene/StartScene_20191022120134.ts
deleted
100644 → 0
View file @
cd3f33b2
import
{
IDynamicData
}
from
'./../../libs/tw/data/game/datapash/IDynamicData'
;
import
{
GamePlayModel
}
from
'./../../libs/tw/model/game/GamePlayModel'
;
import
{
ModuleTypes
}
from
'./../types/sceneTypes'
;
import
{
NetManager
}
from
'./../../libs/tw/manager/NetManager'
;
import
Scene
from
"../views/Scene"
;
import
Loading
from
"../loading/Loading"
;
import
PanelCtrl
from
'../ctrls/panelCtrl'
;
import
{
DataManager
}
from
'../../libs/tw/manager/DataManager'
;
import
{
GTime
}
from
'../../libs/tc/util/GTime'
;
import
{
Buried
}
from
'../../libs/tw/util/Buried'
;
import
SceneCtrl
from
'../ctrls/sceneCtrl'
;
export
default
class
StartScene
extends
Scene
{
public
get
skinKey
()
{
return
'StartScene'
}
public
get
groupName
()
{
return
'start_scene'
}
constructor
(
data
?)
{
super
(
data
);
}
initEvents
()
{
super
.
initEvents
();
}
removeEvents
()
{
super
.
removeEvents
();
}
protected
onSkinComplete
():
void
{
super
.
onSkinComplete
();
// this.mainbg.texture = this.bgtexture;
this
.
once
(
egret
.
Event
.
ADDED_TO_STAGE
,
this
.
onLoad
,
this
);
if
(
this
.
stage
)
{
this
.
onLoad
();
}
}
private
bgtexture
:
egret
.
Texture
;
protected
async
preLoadRes
()
{
//加载背景并设置背景图片
// this.bgtexture = await RES.getResAsync('gameBg_jpg');
// console.log('载背景并设置背景图片mainscene');
return
new
Promise
(
function
(
resolve
,
reject
)
{
resolve
();
});
}
timer
start
(
data
?)
{
super
.
start
(
data
);
this
.
timer
=
new
egret
.
Timer
(
1000
);
this
.
percentHeight
=
100
;
}
private
onLoad
():
void
{
this
.
initUI
();
}
private
initUI
():
void
{
}
private
canStart
:
boolean
;
}
\ No newline at end of file
.history/egret/src/startScene/StartScene_20191022120145.ts
deleted
100644 → 0
View file @
cd3f33b2
import
{
IDynamicData
}
from
'./../../libs/tw/data/game/datapash/IDynamicData'
;
import
{
GamePlayModel
}
from
'./../../libs/tw/model/game/GamePlayModel'
;
import
{
ModuleTypes
}
from
'./../types/sceneTypes'
;
import
{
NetManager
}
from
'./../../libs/tw/manager/NetManager'
;
import
Scene
from
"../views/Scene"
;
import
Loading
from
"../loading/Loading"
;
import
PanelCtrl
from
'../ctrls/panelCtrl'
;
import
{
DataManager
}
from
'../../libs/tw/manager/DataManager'
;
import
{
GTime
}
from
'../../libs/tc/util/GTime'
;
import
{
Buried
}
from
'../../libs/tw/util/Buried'
;
import
SceneCtrl
from
'../ctrls/sceneCtrl'
;
export
default
class
StartScene
extends
Scene
{
public
get
skinKey
()
{
return
'StartScene'
}
public
get
groupName
()
{
return
'start_scene'
}
constructor
(
data
?)
{
super
(
data
);
}
initEvents
()
{
super
.
initEvents
();
}
removeEvents
()
{
super
.
removeEvents
();
}
protected
onSkinComplete
():
void
{
super
.
onSkinComplete
();
// this.mainbg.texture = this.bgtexture;
this
.
once
(
egret
.
Event
.
ADDED_TO_STAGE
,
this
.
onLoad
,
this
);
if
(
this
.
stage
)
{
this
.
onLoad
();
}
}
private
bgtexture
:
egret
.
Texture
;
protected
async
preLoadRes
()
{
//加载背景并设置背景图片
// this.bgtexture = await RES.getResAsync('gameBg_jpg');
// console.log('载背景并设置背景图片mainscene');
return
new
Promise
(
function
(
resolve
,
reject
)
{
resolve
();
});
}
timer
start
(
data
?)
{
super
.
start
(
data
);
this
.
timer
=
new
egret
.
Timer
(
1000
);
this
.
percentHeight
=
100
;
}
private
onLoad
():
void
{
this
.
initUI
();
}
private
initUI
():
void
{
}
private
canStart
:
boolean
;
}
\ No newline at end of file
.history/egret/src/startScene/StartScene_20191022120150.ts
deleted
100644 → 0
View file @
cd3f33b2
import
{
IDynamicData
}
from
'./../../libs/tw/data/game/datapash/IDynamicData'
;
import
{
GamePlayModel
}
from
'./../../libs/tw/model/game/GamePlayModel'
;
import
{
ModuleTypes
}
from
'./../types/sceneTypes'
;
import
{
NetManager
}
from
'./../../libs/tw/manager/NetManager'
;
import
Scene
from
"../views/Scene"
;
import
Loading
from
"../loading/Loading"
;
import
PanelCtrl
from
'../ctrls/panelCtrl'
;
import
{
DataManager
}
from
'../../libs/tw/manager/DataManager'
;
import
{
GTime
}
from
'../../libs/tc/util/GTime'
;
import
{
Buried
}
from
'../../libs/tw/util/Buried'
;
import
SceneCtrl
from
'../ctrls/sceneCtrl'
;
export
default
class
StartScene
extends
Scene
{
public
get
skinKey
()
{
return
'StartScene'
}
public
get
groupName
()
{
return
'start_scene'
}
constructor
(
data
?)
{
super
(
data
);
}
initEvents
()
{
super
.
initEvents
();
}
removeEvents
()
{
super
.
removeEvents
();
}
protected
onSkinComplete
():
void
{
super
.
onSkinComplete
();
// this.mainbg.texture = this.bgtexture;
this
.
once
(
egret
.
Event
.
ADDED_TO_STAGE
,
this
.
onLoad
,
this
);
if
(
this
.
stage
)
{
this
.
onLoad
();
}
}
private
bgtexture
:
egret
.
Texture
;
protected
async
preLoadRes
()
{
//加载背景并设置背景图片
// this.bgtexture = await RES.getResAsync('gameBg_jpg');
// console.log('载背景并设置背景图片mainscene');
return
new
Promise
(
function
(
resolve
,
reject
)
{
resolve
();
});
}
timer
start
(
data
?)
{
super
.
start
(
data
);
this
.
timer
=
new
egret
.
Timer
(
1000
);
this
.
percentHeight
=
100
;
}
private
onLoad
():
void
{
this
.
initUI
();
}
private
initUI
():
void
{
}
private
canStart
:
boolean
;
}
\ No newline at end of file
.history/egret/src/startScene/StartScene_20191022120705.ts
deleted
100644 → 0
View file @
cd3f33b2
import
{
IDynamicData
}
from
'./../../libs/tw/data/game/datapash/IDynamicData'
;
import
{
GamePlayModel
}
from
'./../../libs/tw/model/game/GamePlayModel'
;
import
{
ModuleTypes
}
from
'./../types/sceneTypes'
;
import
{
NetManager
}
from
'./../../libs/tw/manager/NetManager'
;
import
Scene
from
"../views/Scene"
;
import
Loading
from
"../loading/Loading"
;
import
PanelCtrl
from
'../ctrls/panelCtrl'
;
import
{
DataManager
}
from
'../../libs/tw/manager/DataManager'
;
import
{
GTime
}
from
'../../libs/tc/util/GTime'
;
import
{
Buried
}
from
'../../libs/tw/util/Buried'
;
import
SceneCtrl
from
'../ctrls/sceneCtrl'
;
export
default
class
StartScene
extends
Scene
{
public
scroller_body
:
eui
.
Scroller
;
public
bg
:
eui
.
Image
;
public
topBtn
:
eui
.
Group
;
public
startBtn
:
eui
.
Button
;
public
get
skinKey
()
{
return
'StartScene'
}
public
get
groupName
()
{
return
'start_scene'
}
constructor
(
data
?)
{
super
(
data
);
}
initEvents
()
{
super
.
initEvents
();
}
removeEvents
()
{
super
.
removeEvents
();
}
protected
onSkinComplete
():
void
{
super
.
onSkinComplete
();
// this.mainbg.texture = this.bgtexture;
let
stageHeight
=
750
/
window
.
innerWidth
*
window
.
innerHeight
;
this
.
scroller_body
.
height
=
stageHeight
;
this
.
once
(
egret
.
Event
.
ADDED_TO_STAGE
,
this
.
onLoad
,
this
);
if
(
this
.
stage
)
{
this
.
onLoad
();
}
}
private
bgtexture
:
egret
.
Texture
;
protected
async
preLoadRes
()
{
//加载背景并设置背景图片
// this.bgtexture = await RES.getResAsync('gameBg_jpg');
// console.log('载背景并设置背景图片mainscene');
return
new
Promise
(
function
(
resolve
,
reject
)
{
resolve
();
});
}
timer
start
(
data
?)
{
super
.
start
(
data
);
this
.
timer
=
new
egret
.
Timer
(
1000
);
this
.
percentHeight
=
100
;
}
private
onLoad
():
void
{
this
.
initUI
();
}
private
initUI
():
void
{
}
private
canStart
:
boolean
;
}
\ No newline at end of file
.history/egret/src/startScene/StartScene_20191022140350.ts
deleted
100644 → 0
View file @
cd3f33b2
import
{
IDynamicData
}
from
'./../../libs/tw/data/game/datapash/IDynamicData'
;
import
{
GamePlayModel
}
from
'./../../libs/tw/model/game/GamePlayModel'
;
import
{
ModuleTypes
}
from
'./../types/sceneTypes'
;
import
{
NetManager
}
from
'./../../libs/tw/manager/NetManager'
;
import
Scene
from
"../views/Scene"
;
import
Loading
from
"../loading/Loading"
;
import
PanelCtrl
from
'../ctrls/panelCtrl'
;
import
{
DataManager
}
from
'../../libs/tw/manager/DataManager'
;
import
{
GTime
}
from
'../../libs/tc/util/GTime'
;
import
{
Buried
}
from
'../../libs/tw/util/Buried'
;
import
SceneCtrl
from
'../ctrls/sceneCtrl'
;
export
default
class
StartScene
extends
Scene
{
public
scroller_body
:
eui
.
Scroller
;
public
bg
:
eui
.
Image
;
public
topBtn
:
eui
.
Group
;
public
startBtn
:
eui
.
Button
;
public
get
skinKey
()
{
return
'StartScene'
}
public
get
groupName
()
{
return
'start_scene'
}
constructor
(
data
?)
{
super
(
data
);
}
initEvents
()
{
super
.
initEvents
();
}
removeEvents
()
{
super
.
removeEvents
();
}
protected
onSkinComplete
():
void
{
super
.
onSkinComplete
();
// this.mainbg.texture = this.bgtexture;
let
stageHeight
=
750
/
window
.
innerWidth
*
window
.
innerHeight
;
this
.
scroller_body
.
height
=
stageHeight
;
this
.
once
(
egret
.
Event
.
ADDED_TO_STAGE
,
this
.
onLoad
,
this
);
if
(
this
.
stage
)
{
this
.
onLoad
();
}
}
animation
(){
this
[
"disc_loop"
].
play
(
0
)
}
private
bgtexture
:
egret
.
Texture
;
protected
async
preLoadRes
()
{
//加载背景并设置背景图片
// this.bgtexture = await RES.getResAsync('gameBg_jpg');
// console.log('载背景并设置背景图片mainscene');
return
new
Promise
(
function
(
resolve
,
reject
)
{
resolve
();
});
}
timer
start
(
data
?)
{
super
.
start
(
data
);
this
.
timer
=
new
egret
.
Timer
(
1000
);
this
.
percentHeight
=
100
;
}
private
onLoad
():
void
{
this
.
initUI
();
}
private
initUI
():
void
{
}
private
canStart
:
boolean
;
}
\ No newline at end of file
.history/egret/src/startScene/StartScene_20191022140448.ts
deleted
100644 → 0
View file @
cd3f33b2
import
{
IDynamicData
}
from
'./../../libs/tw/data/game/datapash/IDynamicData'
;
import
{
GamePlayModel
}
from
'./../../libs/tw/model/game/GamePlayModel'
;
import
{
ModuleTypes
}
from
'./../types/sceneTypes'
;
import
{
NetManager
}
from
'./../../libs/tw/manager/NetManager'
;
import
Scene
from
"../views/Scene"
;
import
Loading
from
"../loading/Loading"
;
import
PanelCtrl
from
'../ctrls/panelCtrl'
;
import
{
DataManager
}
from
'../../libs/tw/manager/DataManager'
;
import
{
GTime
}
from
'../../libs/tc/util/GTime'
;
import
{
Buried
}
from
'../../libs/tw/util/Buried'
;
import
SceneCtrl
from
'../ctrls/sceneCtrl'
;
export
default
class
StartScene
extends
Scene
{
public
scroller_body
:
eui
.
Scroller
;
public
bg
:
eui
.
Image
;
public
topBtn
:
eui
.
Group
;
public
startBtn
:
eui
.
Button
;
public
get
skinKey
()
{
return
'StartScene'
}
public
get
groupName
()
{
return
'start_scene'
}
constructor
(
data
?)
{
super
(
data
);
}
initEvents
()
{
super
.
initEvents
();
}
removeEvents
()
{
super
.
removeEvents
();
}
protected
onSkinComplete
():
void
{
super
.
onSkinComplete
();
// this.mainbg.texture = this.bgtexture;
let
stageHeight
=
750
/
window
.
innerWidth
*
window
.
innerHeight
;
this
.
scroller_body
.
height
=
stageHeight
;
this
.
once
(
egret
.
Event
.
ADDED_TO_STAGE
,
this
.
onLoad
,
this
);
if
(
this
.
stage
)
{
this
.
onLoad
();
}
}
animation
(){
this
[
"disc_loop"
].
play
(
0
)
this
[
"disc_loop"
].
items
.
forEach
((
item
)
=>
{
item
.
tween
.
loop
=
true
;
})
}
private
bgtexture
:
egret
.
Texture
;
protected
async
preLoadRes
()
{
//加载背景并设置背景图片
// this.bgtexture = await RES.getResAsync('gameBg_jpg');
// console.log('载背景并设置背景图片mainscene');
return
new
Promise
(
function
(
resolve
,
reject
)
{
resolve
();
});
}
timer
start
(
data
?)
{
super
.
start
(
data
);
this
.
timer
=
new
egret
.
Timer
(
1000
);
this
.
percentHeight
=
100
;
}
private
onLoad
():
void
{
this
.
initUI
();
}
private
initUI
():
void
{
}
private
canStart
:
boolean
;
}
\ No newline at end of file
.history/egret/src/startScene/StartScene_20191022140639.ts
deleted
100644 → 0
View file @
cd3f33b2
import
{
IDynamicData
}
from
'./../../libs/tw/data/game/datapash/IDynamicData'
;
import
{
GamePlayModel
}
from
'./../../libs/tw/model/game/GamePlayModel'
;
import
{
ModuleTypes
}
from
'./../types/sceneTypes'
;
import
{
NetManager
}
from
'./../../libs/tw/manager/NetManager'
;
import
Scene
from
"../views/Scene"
;
import
Loading
from
"../loading/Loading"
;
import
PanelCtrl
from
'../ctrls/panelCtrl'
;
import
{
DataManager
}
from
'../../libs/tw/manager/DataManager'
;
import
{
GTime
}
from
'../../libs/tc/util/GTime'
;
import
{
Buried
}
from
'../../libs/tw/util/Buried'
;
import
SceneCtrl
from
'../ctrls/sceneCtrl'
;
export
default
class
StartScene
extends
Scene
{
public
scroller_body
:
eui
.
Scroller
;
public
bg
:
eui
.
Image
;
public
topBtn
:
eui
.
Group
;
public
startBtn
:
eui
.
Button
;
public
get
skinKey
()
{
return
'StartScene'
}
public
get
groupName
()
{
return
'start_scene'
}
constructor
(
data
?)
{
super
(
data
);
}
initEvents
()
{
super
.
initEvents
();
}
removeEvents
()
{
super
.
removeEvents
();
}
protected
onSkinComplete
():
void
{
super
.
onSkinComplete
();
// this.mainbg.texture = this.bgtexture;
let
stageHeight
=
750
/
window
.
innerWidth
*
window
.
innerHeight
;
this
.
scroller_body
.
height
=
stageHeight
;
this
.
once
(
egret
.
Event
.
ADDED_TO_STAGE
,
this
.
onLoad
,
this
);
if
(
this
.
stage
)
{
this
.
onLoad
();
}
this
.
animation
()
}
animation
(){
this
[
"disc_loop"
].
play
(
0
)
this
[
"disc_loop"
].
items
.
forEach
((
item
)
=>
{
item
.
tween
.
loop
=
true
;
})
}
private
bgtexture
:
egret
.
Texture
;
protected
async
preLoadRes
()
{
//加载背景并设置背景图片
// this.bgtexture = await RES.getResAsync('gameBg_jpg');
// console.log('载背景并设置背景图片mainscene');
return
new
Promise
(
function
(
resolve
,
reject
)
{
resolve
();
});
}
timer
start
(
data
?)
{
super
.
start
(
data
);
this
.
timer
=
new
egret
.
Timer
(
1000
);
this
.
percentHeight
=
100
;
}
private
onLoad
():
void
{
this
.
initUI
();
}
private
initUI
():
void
{
}
private
canStart
:
boolean
;
}
\ No newline at end of file
.history/egret/src/startScene/StartScene_20191022151306.ts
deleted
100644 → 0
View file @
cd3f33b2
import
{
IDynamicData
}
from
'./../../libs/tw/data/game/datapash/IDynamicData'
;
import
{
GamePlayModel
}
from
'./../../libs/tw/model/game/GamePlayModel'
;
import
{
ModuleTypes
}
from
'./../types/sceneTypes'
;
import
{
NetManager
}
from
'./../../libs/tw/manager/NetManager'
;
import
Scene
from
"../views/Scene"
;
import
Loading
from
"../loading/Loading"
;
import
PanelCtrl
from
'../ctrls/panelCtrl'
;
import
{
DataManager
}
from
'../../libs/tw/manager/DataManager'
;
import
{
GTime
}
from
'../../libs/tc/util/GTime'
;
import
{
Buried
}
from
'../../libs/tw/util/Buried'
;
import
SceneCtrl
from
'../ctrls/sceneCtrl'
;
export
default
class
StartScene
extends
Scene
{
public
scroller_body
:
eui
.
Scroller
;
public
bg
:
eui
.
Image
;
public
topBtn
:
eui
.
Group
;
public
disc_ico
:
eui
.
Image
;
public
startBtn
:
eui
.
Button
;
public
get
skinKey
()
{
return
'StartScene'
}
public
get
groupName
()
{
return
'start_scene'
}
constructor
(
data
?)
{
super
(
data
);
}
initEvents
()
{
super
.
initEvents
();
}
removeEvents
()
{
super
.
removeEvents
();
}
protected
onSkinComplete
():
void
{
super
.
onSkinComplete
();
// this.mainbg.texture = this.bgtexture;
let
stageHeight
=
750
/
window
.
innerWidth
*
window
.
innerHeight
;
this
.
scroller_body
.
height
=
stageHeight
;
this
.
once
(
egret
.
Event
.
ADDED_TO_STAGE
,
this
.
onLoad
,
this
);
if
(
this
.
stage
)
{
this
.
onLoad
();
}
this
.
animation
()
}
animation
(){
this
[
"disc_loop"
].
play
(
0
)
this
[
"disc_loop"
].
items
.
forEach
((
item
)
=>
{
item
.
tween
.
loop
=
true
;
})
}
private
bgtexture
:
egret
.
Texture
;
protected
async
preLoadRes
()
{
//加载背景并设置背景图片
// this.bgtexture = await RES.getResAsync('gameBg_jpg');
// console.log('载背景并设置背景图片mainscene');
return
new
Promise
(
function
(
resolve
,
reject
)
{
resolve
();
});
}
timer
start
(
data
?)
{
super
.
start
(
data
);
this
.
timer
=
new
egret
.
Timer
(
1000
);
this
.
percentHeight
=
100
;
}
private
onLoad
():
void
{
this
.
initUI
();
}
private
initUI
():
void
{
}
private
canStart
:
boolean
;
}
\ No newline at end of file
.history/egret/src/startScene/StartScene_20191022151431.ts
deleted
100644 → 0
View file @
cd3f33b2
import
{
IDynamicData
}
from
'./../../libs/tw/data/game/datapash/IDynamicData'
;
import
{
GamePlayModel
}
from
'./../../libs/tw/model/game/GamePlayModel'
;
import
{
ModuleTypes
}
from
'./../types/sceneTypes'
;
import
{
NetManager
}
from
'./../../libs/tw/manager/NetManager'
;
import
Scene
from
"../views/Scene"
;
import
Loading
from
"../loading/Loading"
;
import
PanelCtrl
from
'../ctrls/panelCtrl'
;
import
{
DataManager
}
from
'../../libs/tw/manager/DataManager'
;
import
{
GTime
}
from
'../../libs/tc/util/GTime'
;
import
{
Buried
}
from
'../../libs/tw/util/Buried'
;
import
SceneCtrl
from
'../ctrls/sceneCtrl'
;
export
default
class
StartScene
extends
Scene
{
public
scroller_body
:
eui
.
Scroller
;
public
bg
:
eui
.
Image
;
public
topBtn
:
eui
.
Group
;
public
disc_ico
:
eui
.
Image
;
public
startBtn
:
eui
.
Button
;
public
get
skinKey
()
{
return
'StartScene'
}
public
get
groupName
()
{
return
'start_scene'
}
constructor
(
data
?)
{
super
(
data
);
}
initEvents
()
{
super
.
initEvents
();
this
.
startBtn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_startBtn
,
this
)
}
removeEvents
()
{
super
.
removeEvents
();
this
.
startBtn
.
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_startBtn
,
this
)
}
onTap_startBtn
(){
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
GAME_SCENE
)
}
protected
onSkinComplete
():
void
{
super
.
onSkinComplete
();
// this.mainbg.texture = this.bgtexture;
let
stageHeight
=
750
/
window
.
innerWidth
*
window
.
innerHeight
;
this
.
scroller_body
.
height
=
stageHeight
;
this
.
once
(
egret
.
Event
.
ADDED_TO_STAGE
,
this
.
onLoad
,
this
);
if
(
this
.
stage
)
{
this
.
onLoad
();
}
this
.
animation
()
}
animation
(){
this
[
"disc_loop"
].
play
(
0
)
this
[
"disc_loop"
].
items
.
forEach
((
item
)
=>
{
item
.
tween
.
loop
=
true
;
})
}
private
bgtexture
:
egret
.
Texture
;
protected
async
preLoadRes
()
{
//加载背景并设置背景图片
// this.bgtexture = await RES.getResAsync('gameBg_jpg');
// console.log('载背景并设置背景图片mainscene');
return
new
Promise
(
function
(
resolve
,
reject
)
{
resolve
();
});
}
timer
start
(
data
?)
{
super
.
start
(
data
);
this
.
timer
=
new
egret
.
Timer
(
1000
);
this
.
percentHeight
=
100
;
}
private
onLoad
():
void
{
this
.
initUI
();
}
private
initUI
():
void
{
}
private
canStart
:
boolean
;
}
\ No newline at end of file
.history/egret/src/startScene/StartScene_20191022202721.ts
deleted
100644 → 0
View file @
cd3f33b2
import
{
IDynamicData
}
from
'./../../libs/tw/data/game/datapash/IDynamicData'
;
import
{
GamePlayModel
}
from
'./../../libs/tw/model/game/GamePlayModel'
;
import
{
ModuleTypes
}
from
'./../types/sceneTypes'
;
import
{
NetManager
}
from
'./../../libs/tw/manager/NetManager'
;
import
Scene
from
"../views/Scene"
;
import
Loading
from
"../loading/Loading"
;
import
PanelCtrl
from
'../ctrls/panelCtrl'
;
import
{
DataManager
}
from
'../../libs/tw/manager/DataManager'
;
import
{
GTime
}
from
'../../libs/tc/util/GTime'
;
import
{
Buried
}
from
'../../libs/tw/util/Buried'
;
import
SceneCtrl
from
'../ctrls/sceneCtrl'
;
export
default
class
StartScene
extends
Scene
{
public
scroller_body
:
eui
.
Scroller
;
public
bg
:
eui
.
Image
;
public
topBtn
:
eui
.
Group
;
public
disc_ico
:
eui
.
Image
;
public
startBtn
:
eui
.
Button
;
public
get
skinKey
()
{
return
'StartScene'
}
public
get
groupName
()
{
return
'start_scene'
}
constructor
(
data
?)
{
super
(
data
);
}
initEvents
()
{
super
.
initEvents
();
this
.
startBtn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_startBtn
,
this
)
}
removeEvents
()
{
super
.
removeEvents
();
this
.
startBtn
.
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_startBtn
,
this
)
}
onTap_startBtn
(){
const
isfirst
=
egret
.
localStorage
.
getItem
(
'showGuide'
);
if
(
!
isfirst
)
{
egret
.
localStorage
.
setItem
(
'showGuide'
,
'true'
);
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
GUIDE_PANEL
);
}
else
{
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
GAME_SCENE
)
}
}
protected
onSkinComplete
():
void
{
super
.
onSkinComplete
();
// this.mainbg.texture = this.bgtexture;
let
stageHeight
=
750
/
window
.
innerWidth
*
window
.
innerHeight
;
this
.
scroller_body
.
height
=
stageHeight
;
this
.
once
(
egret
.
Event
.
ADDED_TO_STAGE
,
this
.
onLoad
,
this
);
if
(
this
.
stage
)
{
this
.
onLoad
();
}
this
.
animation
()
}
animation
(){
this
[
"disc_loop"
].
play
(
0
)
this
[
"disc_loop"
].
items
.
forEach
((
item
)
=>
{
item
.
tween
.
loop
=
true
;
})
}
private
bgtexture
:
egret
.
Texture
;
protected
async
preLoadRes
()
{
//加载背景并设置背景图片
// this.bgtexture = await RES.getResAsync('gameBg_jpg');
// console.log('载背景并设置背景图片mainscene');
return
new
Promise
(
function
(
resolve
,
reject
)
{
resolve
();
});
}
timer
start
(
data
?)
{
super
.
start
(
data
);
this
.
timer
=
new
egret
.
Timer
(
1000
);
this
.
percentHeight
=
100
;
}
private
onLoad
():
void
{
this
.
initUI
();
}
private
initUI
():
void
{
}
private
canStart
:
boolean
;
}
\ No newline at end of file
.history/egret/src/startScene/StartScene_20191023164245.ts
deleted
100644 → 0
View file @
cd3f33b2
import
{
IDynamicData
}
from
'./../../libs/tw/data/game/datapash/IDynamicData'
;
import
{
GamePlayModel
}
from
'./../../libs/tw/model/game/GamePlayModel'
;
import
{
ModuleTypes
}
from
'./../types/sceneTypes'
;
import
{
NetManager
}
from
'./../../libs/tw/manager/NetManager'
;
import
Scene
from
"../views/Scene"
;
import
Loading
from
"../loading/Loading"
;
import
PanelCtrl
from
'../ctrls/panelCtrl'
;
import
{
DataManager
}
from
'../../libs/tw/manager/DataManager'
;
import
{
GTime
}
from
'../../libs/tc/util/GTime'
;
import
{
Buried
}
from
'../../libs/tw/util/Buried'
;
import
SceneCtrl
from
'../ctrls/sceneCtrl'
;
export
default
class
StartScene
extends
Scene
{
public
scroller_body
:
eui
.
Scroller
;
public
bg
:
eui
.
Image
;
public
topBtn
:
eui
.
Group
;
public
disc_ico
:
eui
.
Image
;
public
startBtn
:
eui
.
Button
;
public
list
:
eui
.
List
;
public
get
skinKey
()
{
return
'StartScene'
}
public
get
groupName
()
{
return
'start_scene'
}
constructor
(
data
?)
{
super
(
data
);
}
initEvents
()
{
super
.
initEvents
();
this
.
startBtn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_startBtn
,
this
)
}
removeEvents
()
{
super
.
removeEvents
();
this
.
startBtn
.
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_startBtn
,
this
)
}
onTap_startBtn
(){
const
isfirst
=
egret
.
localStorage
.
getItem
(
'showGuide'
);
if
(
!
isfirst
)
{
egret
.
localStorage
.
setItem
(
'showGuide'
,
'true'
);
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
GUIDE_PANEL
);
}
else
{
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
GAME_SCENE
)
}
}
protected
onSkinComplete
():
void
{
super
.
onSkinComplete
();
// this.mainbg.texture = this.bgtexture;
let
stageHeight
=
750
/
window
.
innerWidth
*
window
.
innerHeight
;
this
.
scroller_body
.
height
=
stageHeight
;
this
.
once
(
egret
.
Event
.
ADDED_TO_STAGE
,
this
.
onLoad
,
this
);
if
(
this
.
stage
)
{
this
.
onLoad
();
}
this
.
animation
()
}
animation
(){
this
[
"disc_loop"
].
play
(
0
)
this
[
"disc_loop"
].
items
.
forEach
((
item
)
=>
{
item
.
tween
.
loop
=
true
;
})
}
private
bgtexture
:
egret
.
Texture
;
protected
async
preLoadRes
()
{
//加载背景并设置背景图片
// this.bgtexture = await RES.getResAsync('gameBg_jpg');
// console.log('载背景并设置背景图片mainscene');
return
new
Promise
(
function
(
resolve
,
reject
)
{
resolve
();
});
}
timer
start
(
data
?)
{
super
.
start
(
data
);
this
.
timer
=
new
egret
.
Timer
(
1000
);
this
.
percentHeight
=
100
;
}
private
onLoad
():
void
{
this
.
initUI
();
}
private
initUI
():
void
{
}
private
canStart
:
boolean
;
}
\ No newline at end of file
.history/egret/src/startScene/StartScene_20191023164417.ts
deleted
100644 → 0
View file @
cd3f33b2
import
{
IDynamicData
}
from
'./../../libs/tw/data/game/datapash/IDynamicData'
;
import
{
GamePlayModel
}
from
'./../../libs/tw/model/game/GamePlayModel'
;
import
{
ModuleTypes
}
from
'./../types/sceneTypes'
;
import
{
NetManager
}
from
'./../../libs/tw/manager/NetManager'
;
import
Scene
from
"../views/Scene"
;
import
Loading
from
"../loading/Loading"
;
import
PanelCtrl
from
'../ctrls/panelCtrl'
;
import
{
DataManager
}
from
'../../libs/tw/manager/DataManager'
;
import
{
GTime
}
from
'../../libs/tc/util/GTime'
;
import
{
Buried
}
from
'../../libs/tw/util/Buried'
;
import
SceneCtrl
from
'../ctrls/sceneCtrl'
;
import
TaskItem
from
'./TaskItem'
;
import
{
NetPromise
}
from
'../NetPromise'
;
import
{
NetName
}
from
'../../libs/tw/enum/NetName'
;
export
default
class
StartScene
extends
Scene
{
public
scroller_body
:
eui
.
Scroller
;
public
bg
:
eui
.
Image
;
public
topBtn
:
eui
.
Group
;
public
disc_ico
:
eui
.
Image
;
public
startBtn
:
eui
.
Button
;
public
list
:
eui
.
List
;
public
get
skinKey
()
{
return
'StartScene'
}
public
get
groupName
()
{
return
'start_scene'
}
constructor
(
data
?)
{
super
(
data
);
}
initEvents
()
{
super
.
initEvents
();
this
.
startBtn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_startBtn
,
this
)
}
removeEvents
()
{
super
.
removeEvents
();
this
.
startBtn
.
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_startBtn
,
this
)
}
onTap_startBtn
(){
const
isfirst
=
egret
.
localStorage
.
getItem
(
'showGuide'
);
if
(
!
isfirst
)
{
egret
.
localStorage
.
setItem
(
'showGuide'
,
'true'
);
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
GUIDE_PANEL
);
}
else
{
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
GAME_SCENE
)
}
}
protected
onSkinComplete
():
void
{
super
.
onSkinComplete
();
// this.mainbg.texture = this.bgtexture;
let
stageHeight
=
750
/
window
.
innerWidth
*
window
.
innerHeight
;
this
.
scroller_body
.
height
=
stageHeight
;
this
.
once
(
egret
.
Event
.
ADDED_TO_STAGE
,
this
.
onLoad
,
this
);
if
(
this
.
stage
)
{
this
.
onLoad
();
}
this
.
animation
()
this
.
list
.
itemRenderer
=
TaskItem
;
NetPromise
.
ins
.
listDo
()
.
then
(()
=>
{
this
.
list
.
dataProvider
=
new
eui
.
ArrayCollection
(
DataManager
.
ins
.
getData
(
NetName
.
listDo
).
data
)
})
.
catch
(()
=>
{
})
}
animation
(){
this
[
"disc_loop"
].
play
(
0
)
this
[
"disc_loop"
].
items
.
forEach
((
item
)
=>
{
item
.
tween
.
loop
=
true
;
})
}
private
bgtexture
:
egret
.
Texture
;
protected
async
preLoadRes
()
{
//加载背景并设置背景图片
// this.bgtexture = await RES.getResAsync('gameBg_jpg');
// console.log('载背景并设置背景图片mainscene');
return
new
Promise
(
function
(
resolve
,
reject
)
{
resolve
();
});
}
timer
start
(
data
?)
{
super
.
start
(
data
);
this
.
timer
=
new
egret
.
Timer
(
1000
);
this
.
percentHeight
=
100
;
}
private
onLoad
():
void
{
this
.
initUI
();
}
private
initUI
():
void
{
}
private
canStart
:
boolean
;
}
\ No newline at end of file
.history/egret/src/startScene/StartScene_20191
02316474
2.ts
→
.history/egret/src/startScene/StartScene_20191
12217533
2.ts
View file @
caeebf03
...
@@ -12,18 +12,21 @@ import SceneCtrl from '../ctrls/sceneCtrl';
...
@@ -12,18 +12,21 @@ import SceneCtrl from '../ctrls/sceneCtrl';
import
TaskItem
from
'./TaskItem'
;
import
TaskItem
from
'./TaskItem'
;
import
{
NetPromise
}
from
'../NetPromise'
;
import
{
NetPromise
}
from
'../NetPromise'
;
import
{
NetName
}
from
'../../libs/tw/enum/NetName'
;
import
{
NetName
}
from
'../../libs/tw/enum/NetName'
;
import
{
NetBuried
}
from
'../NetBuried'
;
export
default
class
StartScene
extends
Scene
{
export
default
class
StartScene
extends
Scene
{
public
scroller_body
:
eui
.
Scroller
;
public
scroller_body
:
eui
.
Scroller
;
public
bg
:
eui
.
Image
;
public
bg
:
eui
.
Image
;
public
topBtn
:
eui
.
Group
;
public
topBtn
:
eui
.
Group
;
public
ruleBtn
:
eui
.
Button
;
public
disc_ico
:
eui
.
Image
;
public
disc_ico
:
eui
.
Image
;
public
startBtn
:
eui
.
Button
;
public
startBtn
:
eui
.
Button
;
public
list
:
eui
.
List
;
public
limitTodyText
:
eui
.
Label
;
public
adList
:
eui
.
Label
;
public
get
skinKey
()
{
return
'StartScene'
}
public
get
skinKey
()
{
return
'StartScene'
}
public
get
groupName
()
{
return
'start_scene'
}
public
get
groupName
()
{
return
'start_scene'
}
...
@@ -33,15 +36,57 @@ export default class StartScene extends Scene {
...
@@ -33,15 +36,57 @@ export default class StartScene extends Scene {
initEvents
()
{
initEvents
()
{
super
.
initEvents
();
super
.
initEvents
();
this
.
startBtn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_startBtn
,
this
)
this
.
startBtn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_startBtn
,
this
)
this
.
ruleBtn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_ruleBtn
,
this
)
}
}
removeEvents
()
{
removeEvents
()
{
super
.
removeEvents
();
super
.
removeEvents
();
this
.
startBtn
.
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_startBtn
,
this
)
this
.
startBtn
.
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_startBtn
,
this
)
this
.
ruleBtn
.
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_ruleBtn
,
this
)
clearInterval
(
this
.
adTime
)
}
onTap_recordBtn
(){
window
.
location
.
href
=
window
[
"recordUrl"
];
}
onTap_ruleBtn
()
{
let
ruleData
=
`1、微信端挑战机会用完后,可前往民生银行App获得更多挑战次数,具体次数以App显示为准。挑战次数当日有效,隔日作废。
2、至民生银行App游戏闯关后,将有机会获得口红大奖、红包等好礼,100%中奖!具体规则以民生银行App的活动规则为准。
3、未下载民生银行App的用户,可在微信端游戏结束后下载App,并返回手机浏览器跳转页面,刷新后将进入民生银行App直接参与活动。
4、非民生银行客户直接下载民生银行App,通过手机号注册并参与活动。
5、本活动仅限2019年11月23日前开户的上海分行客户参加。
6、最终解释权归中国民生银行上海分行所有。`
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
PUB_PANEL
,
{
winType
:
"ruleGroup"
,
ruleData
:
ruleData
})
}
}
onTap_startBtn
(){
onTap_detailBtn
()
{
this
.
enabled
=
false
;
NetPromise
.
ins
.
detailDo
()
.
then
(()
=>
{
this
.
enabled
=
true
;
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
RED_SCENE
)
})
.
catch
(()
=>
{
this
.
enabled
=
true
;
})
}
onTap_startBtn
()
{
PanelCtrl
.
instance
.
btnDelay
(
this
.
startBtn
)
NetBuried
.
ins
.
clickLog
(
2
)
if
(
localStorage
.
times
==
new
Date
().
getDate
()){
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
PUB_PANEL
,{
winType
:
"noTimesGroup"
})
console
.
log
(
"次数已用完弹窗"
)
return
;
}
localStorage
.
times
=
new
Date
().
getDate
()
const
isfirst
=
egret
.
localStorage
.
getItem
(
'showGuide'
);
const
isfirst
=
egret
.
localStorage
.
getItem
(
'showGuide'
);
if
(
!
isfirst
)
{
if
(
!
isfirst
)
{
egret
.
localStorage
.
setItem
(
'showGuide'
,
'true'
);
egret
.
localStorage
.
setItem
(
'showGuide'
,
'true'
);
...
@@ -51,35 +96,50 @@ export default class StartScene extends Scene {
...
@@ -51,35 +96,50 @@ export default class StartScene extends Scene {
}
}
}
}
adTime
protected
onSkinComplete
():
void
{
protected
onSkinComplete
():
void
{
super
.
onSkinComplete
();
super
.
onSkinComplete
();
// this.mainbg.texture = this.bgtexture;
// this.mainbg.texture = this.bgtexture;
let
stageHeight
=
750
/
window
.
innerWidth
*
window
.
innerHeight
;
let
stageHeight
=
750
/
window
.
innerWidth
*
window
.
innerHeight
;
this
.
scroller_body
.
height
=
stageHeight
;
this
.
scroller_body
.
height
=
stageHeight
;
this
.
once
(
egret
.
Event
.
ADDED_TO_STAGE
,
this
.
onLoad
,
this
);
this
.
once
(
egret
.
Event
.
ADDED_TO_STAGE
,
this
.
onLoad
,
this
);
if
(
this
.
stage
)
{
if
(
this
.
stage
)
{
this
.
onLoad
();
this
.
onLoad
();
}
}
this
.
animation
()
let
i_a
=
0
this
.
list
.
itemRenderer
=
TaskItem
;
NetBuried
.
ins
.
showLog
(
1
)
NetPromise
.
ins
.
listDo
()
NetBuried
.
ins
.
showLog
(
2
)
.
then
(()
=>
{
this
.
adList
.
text
=
window
[
"adList"
][
i_a
]
this
.
list
.
dataProvider
=
new
eui
.
ArrayCollection
(
DataManager
.
ins
.
getData
(
NetName
.
listDo
).
data
)
this
[
"adlistShow"
].
play
(
0
)
})
i_a
++
.
catch
(()
=>
{
this
.
adTime
=
setInterval
(()
=>
{
this
.
adList
.
text
=
window
[
"adList"
][
i_a
]
})
this
[
"adlistShow"
].
play
(
0
)
if
(
i_a
>=
window
[
"adList"
].
length
-
1
){
i_a
=
0
}
else
{
i_a
++
}
},
2250
)
this
.
animation
()
if
(
localStorage
.
times
==
new
Date
().
getDate
()){
this
.
limitTodyText
.
text
=
`今天剩余次数:0次`
}
else
{
this
.
limitTodyText
.
text
=
`今天剩余次数:1次`
}
}
}
animation
(){
animation
()
{
this
[
"disc_loop"
].
play
(
0
)
this
[
"disc_loop"
].
play
(
0
)
this
[
"disc_loop"
].
items
.
forEach
((
item
)
=>
{
this
[
"disc_loop"
].
items
.
forEach
((
item
)
=>
{
item
.
tween
.
loop
=
true
;
item
.
tween
.
loop
=
true
;
})
})
}
}
...
@@ -107,7 +167,7 @@ export default class StartScene extends Scene {
...
@@ -107,7 +167,7 @@ export default class StartScene extends Scene {
}
}
private
initUI
():
void
{
private
initUI
():
void
{
}
}
private
canStart
:
boolean
;
private
canStart
:
boolean
;
...
...
.history/egret/src/startScene/StartScene_20191
023164736
.ts
→
.history/egret/src/startScene/StartScene_20191
123102818
.ts
View file @
caeebf03
...
@@ -12,18 +12,21 @@ import SceneCtrl from '../ctrls/sceneCtrl';
...
@@ -12,18 +12,21 @@ import SceneCtrl from '../ctrls/sceneCtrl';
import
TaskItem
from
'./TaskItem'
;
import
TaskItem
from
'./TaskItem'
;
import
{
NetPromise
}
from
'../NetPromise'
;
import
{
NetPromise
}
from
'../NetPromise'
;
import
{
NetName
}
from
'../../libs/tw/enum/NetName'
;
import
{
NetName
}
from
'../../libs/tw/enum/NetName'
;
import
{
NetBuried
}
from
'../NetBuried'
;
export
default
class
StartScene
extends
Scene
{
export
default
class
StartScene
extends
Scene
{
public
scroller_body
:
eui
.
Scroller
;
public
scroller_body
:
eui
.
Scroller
;
public
bg
:
eui
.
Image
;
public
bg
:
eui
.
Image
;
public
topBtn
:
eui
.
Group
;
public
topBtn
:
eui
.
Group
;
public
ruleBtn
:
eui
.
Button
;
public
disc_ico
:
eui
.
Image
;
public
disc_ico
:
eui
.
Image
;
public
startBtn
:
eui
.
Button
;
public
startBtn
:
eui
.
Button
;
public
list
:
eui
.
List
;
public
limitTodyText
:
eui
.
Label
;
public
adList
:
eui
.
Label
;
public
get
skinKey
()
{
return
'StartScene'
}
public
get
skinKey
()
{
return
'StartScene'
}
public
get
groupName
()
{
return
'start_scene'
}
public
get
groupName
()
{
return
'start_scene'
}
...
@@ -33,15 +36,55 @@ export default class StartScene extends Scene {
...
@@ -33,15 +36,55 @@ export default class StartScene extends Scene {
initEvents
()
{
initEvents
()
{
super
.
initEvents
();
super
.
initEvents
();
this
.
startBtn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_startBtn
,
this
)
this
.
startBtn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_startBtn
,
this
)
this
.
ruleBtn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_ruleBtn
,
this
)
}
}
removeEvents
()
{
removeEvents
()
{
super
.
removeEvents
();
super
.
removeEvents
();
this
.
startBtn
.
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_startBtn
,
this
)
this
.
startBtn
.
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_startBtn
,
this
)
this
.
ruleBtn
.
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTap_ruleBtn
,
this
)
clearInterval
(
this
.
adTime
)
}
onTap_recordBtn
(){
window
.
location
.
href
=
window
[
"recordUrl"
];
}
onTap_ruleBtn
()
{
let
ruleData
=
`1、微信端挑战机会用完后,可前往民生银行App获得更多挑战次数,具体次数以App显示为准。挑战次数当日有效,隔日作废。
2、至民生银行App游戏闯关后,将有机会获得口红大奖、红包等好礼,100%中奖!具体规则以民生银行App的活动规则为准。
3、未下载民生银行App的用户,可至各大应用商城搜索下载“民生银行手机银行”App。
5、活动仅限截止2019年11月23日前开户的上海分行客户参加。
6、本次活动最终解释权归中国民生银行上海分行所有。`
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
PUB_PANEL
,
{
winType
:
"ruleGroup"
,
ruleData
:
ruleData
})
}
}
onTap_startBtn
(){
onTap_detailBtn
()
{
this
.
enabled
=
false
;
NetPromise
.
ins
.
detailDo
()
.
then
(()
=>
{
this
.
enabled
=
true
;
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
RED_SCENE
)
})
.
catch
(()
=>
{
this
.
enabled
=
true
;
})
}
onTap_startBtn
()
{
PanelCtrl
.
instance
.
btnDelay
(
this
.
startBtn
)
NetBuried
.
ins
.
clickLog
(
2
)
if
(
localStorage
.
times
==
new
Date
().
getDate
()){
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
PUB_PANEL
,{
winType
:
"noTimesGroup"
})
console
.
log
(
"次数已用完弹窗"
)
return
;
}
localStorage
.
times
=
new
Date
().
getDate
()
const
isfirst
=
egret
.
localStorage
.
getItem
(
'showGuide'
);
const
isfirst
=
egret
.
localStorage
.
getItem
(
'showGuide'
);
if
(
!
isfirst
)
{
if
(
!
isfirst
)
{
egret
.
localStorage
.
setItem
(
'showGuide'
,
'true'
);
egret
.
localStorage
.
setItem
(
'showGuide'
,
'true'
);
...
@@ -51,36 +94,50 @@ export default class StartScene extends Scene {
...
@@ -51,36 +94,50 @@ export default class StartScene extends Scene {
}
}
}
}
adTime
protected
onSkinComplete
():
void
{
protected
onSkinComplete
():
void
{
super
.
onSkinComplete
();
super
.
onSkinComplete
();
// this.mainbg.texture = this.bgtexture;
// this.mainbg.texture = this.bgtexture;
let
stageHeight
=
750
/
window
.
innerWidth
*
window
.
innerHeight
;
let
stageHeight
=
750
/
window
.
innerWidth
*
window
.
innerHeight
;
this
.
scroller_body
.
height
=
stageHeight
;
this
.
scroller_body
.
height
=
stageHeight
;
this
.
once
(
egret
.
Event
.
ADDED_TO_STAGE
,
this
.
onLoad
,
this
);
this
.
once
(
egret
.
Event
.
ADDED_TO_STAGE
,
this
.
onLoad
,
this
);
if
(
this
.
stage
)
{
if
(
this
.
stage
)
{
this
.
onLoad
();
this
.
onLoad
();
}
}
this
.
animation
()
let
i_a
=
0
this
.
list
.
itemRenderer
=
TaskItem
;
NetBuried
.
ins
.
showLog
(
1
)
this
.
list
.
dataProvider
=
[]
NetBuried
.
ins
.
showLog
(
2
)
NetPromise
.
ins
.
listDo
()
this
.
adList
.
text
=
window
[
"adList"
][
i_a
]
.
then
(()
=>
{
this
[
"adlistShow"
].
play
(
0
)
this
.
list
.
dataProvider
=
new
eui
.
ArrayCollection
(
DataManager
.
ins
.
getData
(
NetName
.
listDo
).
data
)
i_a
++
})
this
.
adTime
=
setInterval
(()
=>
{
.
catch
(()
=>
{
this
.
adList
.
text
=
window
[
"adList"
][
i_a
]
this
[
"adlistShow"
].
play
(
0
)
})
if
(
i_a
>=
window
[
"adList"
].
length
-
1
){
i_a
=
0
}
else
{
i_a
++
}
},
2250
)
this
.
animation
()
if
(
localStorage
.
times
==
new
Date
().
getDate
()){
this
.
limitTodyText
.
text
=
`今天剩余次数:0次`
}
else
{
this
.
limitTodyText
.
text
=
`今天剩余次数:1次`
}
}
}
animation
(){
animation
()
{
this
[
"disc_loop"
].
play
(
0
)
this
[
"disc_loop"
].
play
(
0
)
this
[
"disc_loop"
].
items
.
forEach
((
item
)
=>
{
this
[
"disc_loop"
].
items
.
forEach
((
item
)
=>
{
item
.
tween
.
loop
=
true
;
item
.
tween
.
loop
=
true
;
})
})
}
}
...
@@ -108,7 +165,7 @@ export default class StartScene extends Scene {
...
@@ -108,7 +165,7 @@ export default class StartScene extends Scene {
}
}
private
initUI
():
void
{
private
initUI
():
void
{
}
}
private
canStart
:
boolean
;
private
canStart
:
boolean
;
...
...
egret/resource/skins/PubPanelSkin.exml
View file @
caeebf03
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<e:Image
id=
"gift_ico"
anchorOffsetX=
"0"
y=
"59.5"
horizontalCenter=
"0.5"
x=
"10"
scaleX=
"1"
scaleY=
"1"
source=
"pub_gift_ico_png"
/>
<e:Image
id=
"gift_ico"
anchorOffsetX=
"0"
y=
"59.5"
horizontalCenter=
"0.5"
x=
"10"
scaleX=
"1"
scaleY=
"1"
source=
"pub_gift_ico_png"
/>
<e:Image
anchorOffsetX=
"0"
y=
"146.5"
horizontalCenter=
"0"
x=
"0"
scaleX=
"1"
scaleY=
"1"
source=
"pub_1_bg_png"
/>
<e:Image
anchorOffsetX=
"0"
y=
"146.5"
horizontalCenter=
"0"
x=
"0"
scaleX=
"1"
scaleY=
"1"
source=
"pub_1_bg_png"
/>
</e:Group>
</e:Group>
<e:Group
id=
"winGroupNoneTitle"
width=
"750"
height=
"887"
x=
"0"
y=
"0"
locked=
"true"
>
<e:Group
id=
"winGroupNoneTitle"
width=
"750"
height=
"887"
x=
"0"
y=
"0"
>
<e:Image
anchorOffsetX=
"0"
y=
"186.5"
horizontalCenter=
"0"
x=
"0"
scaleX=
"1"
scaleY=
"1"
source=
"pub_2_bg_png"
/>
<e:Image
anchorOffsetX=
"0"
y=
"186.5"
horizontalCenter=
"0"
x=
"0"
scaleX=
"1"
scaleY=
"1"
source=
"pub_2_bg_png"
/>
</e:Group>
</e:Group>
<e:Group
id=
"comGroup"
width=
"750"
height=
"887"
x=
"0"
y=
"0"
>
<e:Group
id=
"comGroup"
width=
"750"
height=
"887"
x=
"0"
y=
"0"
>
...
@@ -82,8 +82,8 @@
...
@@ -82,8 +82,8 @@
</e:Group>
</e:Group>
<e:Group
id=
"noTimesGroup"
width=
"750"
height=
"887"
x=
"0"
y=
"0"
scaleX=
"1"
scaleY=
"1"
>
<e:Group
id=
"noTimesGroup"
width=
"750"
height=
"887"
x=
"0"
y=
"0"
scaleX=
"1"
scaleY=
"1"
>
<e:Label
text=
"啊哦~当前免费游戏次数不足"
x=
"96.33"
y=
"249.5"
size=
"32"
textColor=
"0xF5587D"
anchorOffsetX=
"0"
width=
"558.67"
anchorOffsetY=
"0"
height=
"67.33"
textAlign=
"center"
verticalAlign=
"middle"
lineSpacing=
"16"
/>
<e:Label
text=
"啊哦~当前免费游戏次数不足"
x=
"96.33"
y=
"249.5"
size=
"32"
textColor=
"0xF5587D"
anchorOffsetX=
"0"
width=
"558.67"
anchorOffsetY=
"0"
height=
"67.33"
textAlign=
"center"
verticalAlign=
"middle"
lineSpacing=
"16"
/>
<e:Label
text=
"快前往“民生银行”App中\n获得更多免费次数吧!"
x=
"96.33"
y=
"336.5"
size=
"38"
textColor=
"0xF5587D"
anchorOffsetX=
"0"
width=
"558.67"
anchorOffsetY=
"0"
height=
"149.33"
lineSpacing=
"16"
textAlign=
"center"
bold=
"true"
/>
<e:Label
text=
"快前往“民生银行”App中\n获得更多免费次数吧!"
x=
"96.33"
y=
"336.5"
size=
"38"
textColor=
"0xF5587D"
anchorOffsetX=
"0"
width=
"558.67"
anchorOffsetY=
"0"
height=
"149.33"
lineSpacing=
"16"
textAlign=
"center"
bold=
"true"
verticalAlign=
"middle"
/>
<e:Button
id=
"noTimesSureBtn"
label=
"去APP获取次数"
horizontalCenter=
"0.5"
verticalCenter=
"97.5"
>
<e:Button
id=
"noTimesSureBtn"
label=
"去APP获取次数"
horizontalCenter=
"0.5"
verticalCenter=
"97.5"
visible=
"false"
>
<e:skinName>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
scaleX.down=
"0.95"
scaleY.down=
"0.95"
source=
"pub_btn_png"
source.down=
"pub_btn_png"
source.disabled=
"pub_btn_png"
/>
<e:Image
width=
"100%"
height=
"100%"
scaleX.down=
"0.95"
scaleY.down=
"0.95"
source=
"pub_btn_png"
source.down=
"pub_btn_png"
source.disabled=
"pub_btn_png"
/>
...
...
egret/src/startScene/StartScene.ts
View file @
caeebf03
...
@@ -56,11 +56,11 @@ export default class StartScene extends Scene {
...
@@ -56,11 +56,11 @@ export default class StartScene extends Scene {
2、至民生银行App游戏闯关后,将有机会获得口红大奖、红包等好礼,100%中奖!具体规则以民生银行App的活动规则为准。
2、至民生银行App游戏闯关后,将有机会获得口红大奖、红包等好礼,100%中奖!具体规则以民生银行App的活动规则为准。
3、未下载民生银行App的用户,可
在微信端游戏结束后下载App,并返回手机浏览器跳转页面,刷新后将进入民生银行App直接参与活动
。
3、未下载民生银行App的用户,可
至各大应用商城搜索下载“民生银行手机银行”App
。
4、非民生银行客户直接下载民生银行App,通过手机号注册并参与活动
。
5、活动仅限截止2019年11月23日前开户的上海分行客户参加
。
5、本活动仅限上海地区客户参加,
最终解释权归中国民生银行上海分行所有。`
6、本次活动
最终解释权归中国民生银行上海分行所有。`
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
PUB_PANEL
,
{
winType
:
"ruleGroup"
,
ruleData
:
ruleData
})
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
PUB_PANEL
,
{
winType
:
"ruleGroup"
,
ruleData
:
ruleData
})
}
}
...
...
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