Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dg_dictation_menu
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
dg_dictation_menu
Commits
ea4601d6
Commit
ea4601d6
authored
Mar 23, 2023
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
1fbc2b3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
dg_dictation_menu.js
assets/dg_dictation_menu/scene/dg_dictation_menu.js
+8
-0
No files found.
assets/dg_dictation_menu/scene/dg_dictation_menu.js
View file @
ea4601d6
...
@@ -74,6 +74,8 @@ cc.Class({
...
@@ -74,6 +74,8 @@ cc.Class({
start
()
{
start
()
{
this
.
data
=
this
.
getDefaultData
();
this
.
preloadItem
();
// let getData = this.getData.bind(this);
// let getData = this.getData.bind(this);
// if (window && window.courseware) {
// if (window && window.courseware) {
...
@@ -262,6 +264,9 @@ cc.Class({
...
@@ -262,6 +264,9 @@ cc.Class({
getTeachingMaterial
(
withHistory
)
{
getTeachingMaterial
(
withHistory
)
{
this
.
getDataByPid
(
null
,
(
resData
)
=>
{
this
.
getDataByPid
(
null
,
(
resData
)
=>
{
console
.
log
(
'
resData:
'
,
resData
);
this
.
showTeachingMaterial
(
resData
.
rows
);
this
.
showTeachingMaterial
(
resData
.
rows
);
this
.
initView
();
this
.
initView
();
...
@@ -308,6 +313,9 @@ cc.Class({
...
@@ -308,6 +313,9 @@ cc.Class({
return
new
Promise
((
resovle
,
reject
)
=>
{
return
new
Promise
((
resovle
,
reject
)
=>
{
callNetworkApi
(
this
.
baseUrl
,
data
,
(
res
)
=>
{
callNetworkApi
(
this
.
baseUrl
,
data
,
(
res
)
=>
{
console
.
log
(
'
callNetworkApi:
'
,
res
);
const
resData
=
JSON
.
parse
(
res
);
const
resData
=
JSON
.
parse
(
res
);
callback
&&
callback
(
resData
);
callback
&&
callback
(
resData
);
resovle
(
resData
)
resovle
(
resData
)
...
...
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