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
3ad3981a
Commit
3ad3981a
authored
Dec 30, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
4d475c61
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
12 deletions
+62
-12
StartScene1.ts
egret/src/start1/StartScene1.ts
+3
-2
index.json
mock/esports/index.json
+59
-10
No files found.
egret/src/start1/StartScene1.ts
View file @
3ad3981a
...
...
@@ -22,8 +22,9 @@ export default class Start1Scene extends Scene {
this
.
list
.
dataProvider
=
new
eui
.
ArrayCollection
(
data
.
activityList
);
let
showSuccess
=
false
;
if
(
localStorage
.
getItem
(
'yyh2_success'
)
==
null
&&
data
.
lighten
==
1
)
{
localStorage
.
setItem
(
'yyh2_success'
,
"1"
);
if
(
data
.
lighten
==
1
&&
data
.
firstLighten
)
{
// if (localStorage.getItem('yyh2_success') == null && data.lighten == 1 && data.firstLighten) {
// localStorage.setItem('yyh2_success', "1");
PanelCtrl
.
instance
.
show
(
'SuccessPanel'
);
showSuccess
=
true
;
}
...
...
mock/esports/index.json
View file @
3ad3981a
{
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"success"
:
true
,
"timestamp"
:
1564121038421
,
"data"
:{
"lighten"
:
0
,
"completeCount"
:
3
,
"activityList"
:[
]
}
"code"
:
null
,
"data"
:
{
"lighten"
:
1
,
"activityList"
:
[
{
"activityId"
:
"124"
,
"activityUrl"
:
"http://www.taobao.com"
,
"userStatus"
:
0
,
"sourceType"
:
1
,
"activityName"
:
"活动2"
,
"activityStatus"
:
1
,
"banner"
:
"http://thirdwx.qlogo.cn/mmopen/13HuiaUpBYia5bLzmbjjdKn4WHbf63SJm2pzwDY73f2r33WbCXtBhwHLnF6iaGqdAk0eC8CbA8jQxZTYPp05iaDMTj5tDb7ibV3Rs/132"
,
"completeTime"
:
135435354334
,
"startTime"
:
1242343242342
,
"endTime"
:
13424242423
},
{
"activityId"
:
"125"
,
"activityUrl"
:
"http://www.taobao.com"
,
"userStatus"
:
0
,
"sourceType"
:
1
,
"activityName"
:
"活动3"
,
"activityStatus"
:
1
,
"banner"
:
"http://thirdwx.qlogo.cn/mmopen/13HuiaUpBYia5bLzmbjjdKn4WHbf63SJm2pzwDY73f2r33WbCXtBhwHLnF6iaGqdAk0eC8CbA8jQxZTYPp05iaDMTj5tDb7ibV3Rs/132"
,
"completeTime"
:
135435354334
,
"startTime"
:
1242343242342
,
"endTime"
:
13424242423
},
{
"activityId"
:
"123"
,
"activityUrl"
:
"http://www.baidu.com"
,
"userStatus"
:
3
,
"sourceType"
:
1
,
"activityName"
:
"活动1"
,
"activityStatus"
:
1
,
"banner"
:
"http://thirdwx.qlogo.cn/mmopen/13HuiaUpBYia5bLzmbjjdKn4WHbf63SJm2pzwDY73f2r33WbCXtBhwHLnF6iaGqdAk0eC8CbA8jQxZTYPp05iaDMTj5tDb7ibV3Rs/132"
,
"completeTime"
:
134234323
,
"startTime"
:
13423423423
,
"endTime"
:
1343242342
},
{
"activityId"
:
"1234"
,
"activityUrl"
:
"http://www.baidu.com"
,
"userStatus"
:
3
,
"sourceType"
:
1
,
"activityName"
:
"活动1"
,
"activityStatus"
:
1
,
"banner"
:
"http://thirdwx.qlogo.cn/mmopen/13HuiaUpBYia5bLzmbjjdKn4WHbf63SJm2pzwDY73f2r33WbCXtBhwHLnF6iaGqdAk0eC8CbA8jQxZTYPp05iaDMTj5tDb7ibV3Rs/132"
,
"completeTime"
:
134234323
,
"startTime"
:
13423423423
,
"endTime"
:
1343242342
}
],
"completeCount"
:
3
,
"firstLighten"
:
false
},
"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