Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NJ_usercenter
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
NJ_usercenter
Commits
79787632
Commit
79787632
authored
Sep 22, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 点击事件
parent
9bc9f8b7
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1200 additions
and
1087 deletions
+1200
-1087
NJ_usercenter.fire
assets/NJ_usercenter/scene/NJ_usercenter.fire
+1185
-1087
clickEvent.ts
assets/NJ_usercenter/script/clickEvent.ts
+15
-0
No files found.
assets/NJ_usercenter/scene/NJ_usercenter.fire
View file @
79787632
This diff is collapsed.
Click to expand it.
assets/NJ_usercenter/script/clickEvent.ts
View file @
79787632
...
@@ -70,6 +70,9 @@ export default class NewClass extends cc.Component {
...
@@ -70,6 +70,9 @@ export default class NewClass extends cc.Component {
if
(
reportType
===
'
pdtd
'
)
{
if
(
reportType
===
'
pdtd
'
)
{
await
this
.
drawPagePdtd
();
await
this
.
drawPagePdtd
();
}
}
if
(
reportType
===
'
qwqd
'
)
{
await
this
.
drawPageQwqd
();
}
if
(
reportType
===
'
ydjyz
'
)
{
if
(
reportType
===
'
ydjyz
'
)
{
await
this
.
drawPageYdjyz
();
await
this
.
drawPageYdjyz
();
}
}
...
@@ -119,6 +122,18 @@ export default class NewClass extends cc.Component {
...
@@ -119,6 +122,18 @@ export default class NewClass extends cc.Component {
// 激活索引为0的Level
// 激活索引为0的Level
await
this
.
drawPageItems
(
0
);
await
this
.
drawPageItems
(
0
);
}
}
async
drawPageQwqd
()
{
const
node
=
cc
.
find
(
"
Canvas/learnreport
"
);
cc
.
find
(
"
typeLabel
"
,
node
).
getComponent
(
cc
.
Label
).
string
=
reportObj
[
reportType
];
// 设置每个级别激活状态(是否显示锁头)
for
(
let
i
=
1
;
i
<
5
;
i
++
)
{
cc
.
find
(
`level
${
i
+
1
}
/lock_1`
,
node
).
active
=
(
i
>=
3
);
}
// 激活索引为0的Level
await
this
.
drawPageItems
(
0
);
}
clearnContent
()
{
clearnContent
()
{
const
node
=
cc
.
find
(
"
Canvas/learnreport
"
);
const
node
=
cc
.
find
(
"
Canvas/learnreport
"
);
...
...
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