Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_DG
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_DG
Commits
ae834fdc
Commit
ae834fdc
authored
Jun 24, 2025
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 加载过程中隐藏返回按钮
parent
5d82f3a5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
middleLayer.ts
assets/middleLayer_for_DG/script/middleLayer.ts
+9
-2
middleLayerBase.ts
assets/middleLayer_for_DG/script/middleLayerBase.ts
+4
-1
No files found.
assets/middleLayer_for_DG/script/middleLayer.ts
View file @
ae834fdc
...
...
@@ -47,14 +47,21 @@ export default class NewClass extends middleLayerBase {
console
.
error
(
"
缺少必要的参数!请检查是否传入了以下参数:course_id,courseware_id,toke
"
);
return
;
}
this
.
loadOnlineCourseWare
(
this
.
course_id
,
false
,
this
.
courseware_id
);
this
.
loadOnlineCourseWare
(
this
.
course_id
,
false
,
this
.
courseware_id
,
()
=>
{
this
.
showBackBtn
();
});
this
.
initListener
();
}
initUI
()
{
this
.
showBackBtn
();
this
.
hideBackBtn
();
}
hideBackBtn
()
{
const
backBtn
=
cc
.
find
(
"
middleLayer/UI/back_btn
"
);
backBtn
.
active
=
false
;
}
showBackBtn
()
{
...
...
assets/middleLayer_for_DG/script/middleLayerBase.ts
View file @
ae834fdc
...
...
@@ -298,7 +298,7 @@ export abstract class middleLayerBase extends cc.Component {
courseIndex
=
0
;
courseItem
=
null
;
courseOpenTimeStamp
=
null
;
loadOnlineCourseWare
(
courseId
,
linkFlag
=
false
,
coursewareId
=
null
)
{
loadOnlineCourseWare
(
courseId
,
linkFlag
=
false
,
coursewareId
=
null
,
onLoaded
=
null
)
{
if
(
this
.
IS_BUNDLE_LOADING
)
{
return
;
}
...
...
@@ -332,6 +332,9 @@ export abstract class middleLayerBase extends cc.Component {
return
;
}
this
.
loadPageBundle
(()
=>
{
if
(
onLoaded
)
{
onLoaded
();
}
});
});
}
...
...
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