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
f37a6473
Commit
f37a6473
authored
Aug 25, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat
parent
94699344
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
clickEvent.ts
assets/NJ_usercenter/script/clickEvent.ts
+7
-1
No files found.
assets/NJ_usercenter/script/clickEvent.ts
View file @
f37a6473
...
@@ -10,11 +10,17 @@ const levels = {
...
@@ -10,11 +10,17 @@ const levels = {
@
ccclass
@
ccclass
export
default
class
NewClass
extends
cc
.
Component
{
export
default
class
NewClass
extends
cc
.
Component
{
orgId
=
507
;
start
()
{
start
()
{
}
}
async
loadSyllabusTree
()
{
async
loadSyllabusTree
()
{
const
res
:
any
=
await
asyncCallNetworkApiGet
(
"
/api/syllabus/v1/list
"
,
{
orgid
:
507
});
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
if
(
middleLayer
)
{
this
.
orgId
=
middleLayer
.
getComponent
(
'
middleLayer
'
).
ORG_ID
||
507
;
}
const
res
:
any
=
await
asyncCallNetworkApiGet
(
"
/api/syllabus/v1/list
"
,
{
orgid
:
this
.
orgId
});
const
rows
=
JSON
.
parse
(
res
).
rows
;
const
rows
=
JSON
.
parse
(
res
).
rows
;
for
(
let
i
=
0
;
i
<
rows
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
rows
.
length
;
i
++
)
{
const
row
=
rows
[
i
];
const
row
=
rows
[
i
];
...
...
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