Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_JJ_F
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
middleLayer_for_JJ_F
Commits
9e74697b
Commit
9e74697b
authored
Mar 29, 2024
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
070dcf63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
middleLayer.ts
assets/middleLayer_for_JJ_F/script/middleLayer.ts
+28
-0
No files found.
assets/middleLayer_for_JJ_F/script/middleLayer.ts
View file @
9e74697b
...
...
@@ -10,6 +10,11 @@ export default class NewClass extends middleLayerBase {
token
;
course_id
;
courseware_id
;
JRZY_ID
=
-
1
;
//今日作业
JRSX_ID
=
-
2
;
//今日所学
// 统一释放异步资源的方法
async
onLoad
()
{
initAir
(
this
);
...
...
@@ -44,6 +49,14 @@ export default class NewClass extends middleLayerBase {
this
.
token
=
bundleInfo
.
token
;
this
.
course_id
=
bundleInfo
.
course_id
;
this
.
courseware_id
=
bundleInfo
.
courseware_id
;
// 打开特殊课件
if
(
this
.
course_id
<
1
)
{
this
.
openCustomTemplate
();
return
;
}
if
(
!
bundleInfo
.
course_id
||
!
bundleInfo
.
courseware_id
)
{
console
.
error
(
"
缺少必要的参数!请检查是否传入了以下参数:course_id,courseware_id,toke
"
);
return
;
...
...
@@ -54,6 +67,21 @@ export default class NewClass extends middleLayerBase {
}
openCustomTemplate
()
{
//打开今日作业
if
(
this
.
course_id
==
this
.
JRZY_ID
)
{
this
.
loadOnlineBundle
(
"
JJ_page_homework
"
);
return
;
}
// 打开今日所学
if
(
this
.
course_id
==
this
.
JRSX_ID
)
{
this
.
loadOnlineBundle
(
"
JJ_page_learn
"
);
return
;
}
}
initUI
()
{
this
.
showBackBtn
();
}
...
...
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