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
c8941e69
Commit
c8941e69
authored
Nov 18, 2019
by
王炽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
6666666
parent
4930976f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
27 deletions
+35
-27
project.json
egret/project.json
+1
-1
publish.js
egret/publish.js
+2
-2
startBg.jpg
egret/resource/assets/start_scene/startBg.jpg
+0
-0
StartScene.ts
egret/src/startScene/StartScene.ts
+15
-2
informationData.json
mock/json/informationData.json
+17
-22
No files found.
egret/project.json
View file @
c8941e69
{
{
"type"
:
"activity"
,
"type"
:
"activity"
,
"name"
:
"
surf_dfws
"
"name"
:
"
hongbaoyu_szyh191113
"
}
}
\ No newline at end of file
egret/publish.js
View file @
c8941e69
...
@@ -24,8 +24,8 @@ class TuiaAutoUpload {
...
@@ -24,8 +24,8 @@ class TuiaAutoUpload {
var
_this
=
this
;
var
_this
=
this
;
this
.
client
=
new
OSS
({
this
.
client
=
new
OSS
({
region
:
'oss-cn-hangzhou'
,
region
:
'oss-cn-hangzhou'
,
accessKeyId
:
'LTAI
dGi1IOap7fkF
'
,
accessKeyId
:
'LTAI
qO2wblIxQvwc
'
,
accessKeySecret
:
'
SKrOOp6EVtDGEV47yn0t2h97gyNioQ
'
,
accessKeySecret
:
'
4brsaSRbRpjxw3oDIxJi6bNMcndIR6
'
,
bucket
:
_this
.
type
===
'prod'
?
'duiba'
:
'daily-duiba'
bucket
:
_this
.
type
===
'prod'
?
'duiba'
:
'daily-duiba'
});
});
this
.
bar
=
new
ProgressBar
(
chalk
.
yellow
(
` 文件上传中 [:bar] :current/
${
this
.
files
().
length
}
:percent :elapseds`
),
{
this
.
bar
=
new
ProgressBar
(
chalk
.
yellow
(
` 文件上传中 [:bar] :current/
${
this
.
files
().
length
}
:percent :elapseds`
),
{
...
...
egret/resource/assets/start_scene/startBg.jpg
View replaced file @
4930976f
View file @
c8941e69
This diff is collapsed.
Click to expand it.
egret/src/startScene/StartScene.ts
View file @
c8941e69
...
@@ -157,9 +157,11 @@ export default class StartScene extends Scene {
...
@@ -157,9 +157,11 @@ export default class StartScene extends Scene {
//活动结束的特殊处理
//活动结束的特殊处理
if
(
this
.
isEnd
){
if
(
this
.
isEnd
){
console
.
log
(
'1111111'
)
idata
=
{
isNewActivityGuide
:
true
,
todayTimesIsEnd
:
true
};
idata
=
{
isNewActivityGuide
:
true
,
todayTimesIsEnd
:
true
};
}
else
{
}
else
{
console
.
log
(
'22222222'
)
startTime
=
idata
.
scenes
[
0
].
startTime
-
idata
.
serverTime
+
this
.
desTime
;
startTime
=
idata
.
scenes
[
0
].
startTime
-
idata
.
serverTime
+
this
.
desTime
;
endTime
=
idata
.
scenes
[
0
].
endTime
-
idata
.
serverTime
-
this
.
desTime
;;
endTime
=
idata
.
scenes
[
0
].
endTime
-
idata
.
serverTime
-
this
.
desTime
;;
console
.
log
(
'startTime='
+
startTime
);
console
.
log
(
'startTime='
+
startTime
);
...
@@ -453,13 +455,24 @@ export default class StartScene extends Scene {
...
@@ -453,13 +455,24 @@ export default class StartScene extends Scene {
// this.doJion();
// this.doJion();
// });
// });
// }else{
// }else{
this
.
doJion
();
// }
// }
NetManager
.
ins
.
informationZhaohang
((
success
)
=>
{
if
(
success
){
this
.
doJion
();
}
else
{
if
(
DataManager
.
ins
.
getInformationZhaohangData
.
code
==
'E1002060003'
){
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
TOAST_PANEL
,
{
msg
:
'活动结束了!'
});
}
else
{
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
TOAST_PANEL
,
{
msg
:
'获取场次信息失败,请刷新重试'
});
}
}
},
DataManager
.
ins
.
customCfgData
.
actId
);
}
}
private
doJion
():
void
{
private
doJion
():
void
{
let
type
=
''
;
let
type
=
''
;
if
(
DataManager
.
ins
.
getInformationZhaohangData
.
data
.
joinTimesDetail
&&
DataManager
.
ins
.
getInformationZhaohangData
.
data
.
joinTimesDetail
.
length
){
if
(
DataManager
.
ins
.
getInformationZhaohangData
.
data
.
joinTimesDetail
&&
DataManager
.
ins
.
getInformationZhaohangData
.
data
.
joinTimesDetail
.
length
){
type
=
DataManager
.
ins
.
getInformationZhaohangData
.
data
.
joinTimesDetail
[
0
].
type
;
type
=
DataManager
.
ins
.
getInformationZhaohangData
.
data
.
joinTimesDetail
[
0
].
type
;
}
else
{
}
else
{
type
=
''
;
type
=
''
;
...
...
mock/json/informationData.json
View file @
c8941e69
...
@@ -2,40 +2,35 @@
...
@@ -2,40 +2,35 @@
"success"
:
true
,
"success"
:
true
,
"code"
:
"0000000000"
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"desc"
:
"OK"
,
"timestamp"
:
15
53774900820
,
"timestamp"
:
15
73799313549
,
"data"
:
{
"data"
:
{
"scenes"
:
[
"scenes"
:
[
{
{
"scene"
:
1
,
"scene"
:
1
,
"startTime"
:
15
53738
400000
,
"startTime"
:
15
73796
400000
,
"endTime"
:
15
537420
00000
"endTime"
:
15
737982
00000
},
},
{
{
"scene"
:
2
,
"scene"
:
2
,
"startTime"
:
15
53765
400000
,
"startTime"
:
15
73802
400000
,
"endTime"
:
15
537690
00000
"endTime"
:
15
738042
00000
},
},
{
{
"scene"
:
3
,
"scene"
:
3
,
"startTime"
:
15
537762
00000
,
"startTime"
:
15
738048
00000
,
"endTime"
:
15
537798
00000
"endTime"
:
15
738066
00000
}
}
],
],
"serverTime"
:
15
53738500000
,
"serverTime"
:
15
73799313545
,
"availableTime"
:
36
00000
,
"availableTime"
:
18
00000
,
"joinTimes"
:
0
,
"joinTimes"
:
0
,
"ifCanAddJoinTimesByShare"
:
true
,
"ifCanAddJoinTimesByShare"
:
false
,
"joinTimesByShare"
:
1
,
"joinTimesByShare"
:
0
,
"currentTimes"
:
1553738300000
,
"joinTimesDetail"
:
[],
"joinTimesDetail"
:
[
"currentTimes"
:
null
,
{
"isNewActivityGuide"
:
false
,
"times"
:
1
,
"recentJoinResult"
:
null
,
"type"
:
"0"
"todayTimesIsEnd"
:
false
,
},
"newActivityGuide"
:
false
{
"times"
:
1
,
"type"
:
"1"
}
]
}
}
}
}
\ 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