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
38689793
Commit
38689793
authored
Dec 23, 2020
by
zhangjinzhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增banner
parent
b5a0cfca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
StartItem.ts
egret/src/start1/StartItem.ts
+6
-3
index.json
mock/esports/index.json
+12
-0
No files found.
egret/src/start1/StartItem.ts
View file @
38689793
...
...
@@ -8,9 +8,12 @@ export default class StartItem extends eui.ItemRenderer {
}
dataChanged
()
{
this
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,()
=>
{
location
.
href
=
this
.
data
.
activityUrl
;
},
this
);
if
(
this
.
data
.
activityStatus
!=
0
){
this
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,()
=>
{
location
.
href
=
this
.
data
.
activityUrl
;
},
this
);
}
this
[
'img0'
].
visible
=
false
;
this
[
'img2'
].
visible
=
false
;
this
[
'img1'
].
visible
=
false
;
...
...
mock/esports/index.json
View file @
38689793
...
...
@@ -14,6 +14,18 @@
"completeTime"
:
null
,
"startTime"
:
1572624000
,
"endTime"
:
1574524799
},
{
"activityId"
:
"addnew"
,
"activityUrl"
:
"http://aghzapi.zjkczn.com/h5/pages/luckyActivity/#/"
,
"userStatus"
:
1
,
"sourceType"
:
1
,
"activityName"
:
"中国移动我为亚运赋能"
,
"activityStatus"
:
0
,
"banner"
:
"https://yun.duiba.com.cn/aurora/assets/7049b9d893348f5b64d9d8454863052107139a5b.png"
,
"completeTime"
:
null
,
"startTime"
:
1572624000
,
"endTime"
:
1574524799
}
],
"completeCount"
:
1
,
...
...
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