Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
debug_shell
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
debug_shell
Commits
bd52622e
Commit
bd52622e
authored
May 28, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
临时制作
parent
deeca637
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
oxford_front.ts
play/assets/oxford_front/scene/oxford_front.ts
+5
-8
No files found.
play/assets/oxford_front/scene/oxford_front.ts
View file @
bd52622e
...
...
@@ -221,7 +221,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
cc
.
audioEngine
.
playMusic
(
this
.
bgMusic1
,
true
);
// event.type !== 'BACK'
this
.
callNetworkApiGet
(
this
.
BASE_URL
+
'
/api/syllabus/v1/list?orgid=
50
7
'
,
(
resp
:
any
)
=>
{
this
.
callNetworkApiGet
(
this
.
BASE_URL
+
'
/api/syllabus/v1/list?orgid=7
'
,
(
resp
:
any
)
=>
{
resp
=
JSON
.
parse
(
resp
);
if
(
resp
.
msg
==
'
success
'
)
{
let
{
rows
}
=
resp
...
...
@@ -268,7 +268,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
// this.submarineView.scrollToPage(0, 0)
this
.
callNetworkApiGet
(
this
.
BASE_URL
+
'
/api/syllabus/v1/list?orgid=
50
7&pid=
'
+
globalThis
.
CURRENT_ID
,
(
resp
:
any
)
=>
{
this
.
callNetworkApiGet
(
this
.
BASE_URL
+
'
/api/syllabus/v1/list?orgid=7&pid=
'
+
globalThis
.
CURRENT_ID
,
(
resp
:
any
)
=>
{
resp
=
JSON
.
parse
(
resp
);
if
(
resp
.
msg
==
'
success
'
)
{
let
{
rows
}
=
resp
;
...
...
@@ -323,13 +323,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
// globalThis.CURRENT_ID = event.id;
// }
this
.
callNetworkApiGet
(
this
.
BASE_URL
+
'
/api/syllabus/v1/list?orgid=
50
7&pid=
'
+
globalThis
.
CURRENT_ID
,
(
resp
:
any
)
=>
{
this
.
callNetworkApiGet
(
this
.
BASE_URL
+
'
/api/syllabus/v1/list?orgid=7&pid=
'
+
globalThis
.
CURRENT_ID
,
(
resp
:
any
)
=>
{
resp
=
JSON
.
parse
(
resp
);
if
(
resp
.
msg
==
'
success
'
)
{
let
{
rows
}
=
resp
;
console
.
log
(
'
-----------------
'
);
console
.
log
(
rows
);
console
.
log
(
'
-----------------
'
);
rows
=
rows
.
filter
(
r
=>
r
.
has_courseware
);
console
.
log
(
'
LetterView
'
,
rows
);
ctx
.
LetterViewData
=
rows
;
...
...
@@ -371,7 +368,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
invoke
:
{
src
:
(
ctx
,
event
)
=>
{
return
new
Promise
<
void
>
((
resolve
,
reject
)
=>
{
this
.
callNetworkApiGet
(
this
.
BASE_URL
+
'
/api/syllabus/v1/list?orgid=
50
7&pid=
'
+
globalThis
.
CURRENT_ID
,
(
resp
:
any
)
=>
{
this
.
callNetworkApiGet
(
this
.
BASE_URL
+
'
/api/syllabus/v1/list?orgid=7&pid=
'
+
globalThis
.
CURRENT_ID
,
(
resp
:
any
)
=>
{
resp
=
JSON
.
parse
(
resp
);
if
(
resp
.
msg
==
'
success
'
)
{
let
{
rows
}
=
resp
;
...
...
@@ -426,7 +423,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
invoke
:
{
src
:
(
ctx
,
event
)
=>
{
this
.
callNetworkApiGet
(
this
.
BASE_URL
+
'
/api/syllabus/v1/list?orgid=
50
7&pid=
'
+
globalThis
.
CURRENT_ID
,
(
resp
:
any
)
=>
{
this
.
callNetworkApiGet
(
this
.
BASE_URL
+
'
/api/syllabus/v1/list?orgid=7&pid=
'
+
globalThis
.
CURRENT_ID
,
(
resp
:
any
)
=>
{
resp
=
JSON
.
parse
(
resp
);
if
(
resp
.
msg
==
'
success
'
)
{
let
{
rows
}
=
resp
;
...
...
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