Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hw_dictation_360
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
hw_dictation_360
Commits
cfa19abb
Commit
cfa19abb
authored
Oct 20, 2023
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
2d089019
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
21 deletions
+19
-21
hw_dictation_360.js
assets/hw_dictation_360/scene/hw_dictation_360.js
+19
-21
No files found.
assets/hw_dictation_360/scene/hw_dictation_360.js
View file @
cfa19abb
...
...
@@ -79,19 +79,19 @@ cc.Class({
console
.
log
(
'
in start 1
'
);
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
if
(
middleLayer
)
{
const
middleLayerComponent
=
middleLayer
.
getComponent
(
'
middleLayer
'
);
this
.
data
=
middleLayerComponent
.
getTempData
(
'
hw_dictation_data
'
);
//
const middleLayer = cc.find('middleLayer');
//
if (middleLayer) {
//
const middleLayerComponent = middleLayer.getComponent('middleLayer');
//
this.data = middleLayerComponent.getTempData('hw_dictation_data');
console
.
log
(
'
this.data:
'
,
this
.
data
);
//
console.log(' this.data: ', this.data);
}
else
{
//
} else {
this
.
data
=
this
.
getDefaultData
();
console
.
log
(
'
this.data:
'
,
this
.
data
);
}
//
}
this
.
preloadItem
()
return
;
...
...
@@ -1025,6 +1025,9 @@ cc.Class({
showFanGuangJing
()
{
this
.
showTipAnim
();
return
;
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
if
(
middleLayer
)
{
const
script
=
middleLayer
.
getComponent
(
'
middleLayer
'
);
...
...
@@ -2147,17 +2150,12 @@ cc.Class({
if
(
!
window
[
"
courseware
"
])
{
return
;
}
return
;
const
middleLayerComponent
=
cc
.
find
(
'
middleLayer
'
).
getComponent
(
'
middleLayer
'
);
middleLayerComponent
.
showLoadingTips
(
`正在收集日志信息,请稍等...`
);
// if (middleLayerComponent.isDGTX === true) {
// // TODO 等原生端加上必要的方法再放开此判断
// setTimeout(() => {
// middleLayerComponent.hideLoadingTips();
// showTips("感谢您的反馈。我们会持续不断地优化算法。");
// }, 1000);
// return;
// }
window
[
"
courseware
"
].
closeOsmoHandwritingMlkit
();
window
[
"
courseware
"
].
openRecognitionCamera
({
x
:
1
,
y
:
1
,
width
:
1
,
height
:
1
});
window
[
"
courseware
"
].
takePicture
((
res
)
=>
{
...
...
@@ -7333,10 +7331,10 @@ cc.Class({
return
;
}
this
.
saveLearnHistory
();
//
this.saveLearnHistory();
this
.
restartNode
.
active
=
true
;
// onHomeworkFinish({});
this
.
endTesting
();
})
return
;
...
...
@@ -7701,7 +7699,7 @@ cc.Class({
this
.
topH
=
topRectSize
.
height
*
tempS
;
const
backBtn
=
getSprNode
(
"
btn_back
"
);
this
.
bgLayer
.
addChild
(
backBtn
);
//
this.bgLayer.addChild(backBtn);
backBtn
.
scale
=
tempS
;
backBtn
.
x
=
-
this
.
canvas
.
width
/
2
+
this
.
topH
/
2
;
backBtn
.
y
=
this
.
canvas
.
height
/
2
-
this
.
topH
/
2
;
...
...
@@ -7718,7 +7716,7 @@ cc.Class({
const
changeDirBtn
=
getSprNode
(
"
btn_flip_v
"
);
this
.
bgLayer
.
addChild
(
changeDirBtn
);
//
this.bgLayer.addChild(changeDirBtn);
changeDirBtn
.
scale
=
tempS
;
changeDirBtn
.
x
=
this
.
canvas
.
width
/
2
-
this
.
topH
/
2
;
changeDirBtn
.
y
=
this
.
canvas
.
height
/
2
-
this
.
topH
/
2
;
...
...
@@ -7875,7 +7873,7 @@ cc.Class({
this
.
topH
=
topRectSize
.
height
*
tempS
;
const
backBtn
=
getSprNode
(
"
btn_back
"
);
this
.
bgLayer
.
addChild
(
backBtn
);
//
this.bgLayer.addChild(backBtn);
backBtn
.
scale
=
tempS
;
backBtn
.
x
=
-
this
.
canvas
.
width
/
2
+
this
.
topH
/
2
;
backBtn
.
y
=
this
.
canvas
.
height
/
2
-
this
.
topH
/
2
;
...
...
@@ -7891,7 +7889,7 @@ cc.Class({
const
changeDirBtn
=
getSprNode
(
"
btn_flip_v
"
);
this
.
bgLayer
.
addChild
(
changeDirBtn
);
//
this.bgLayer.addChild(changeDirBtn);
changeDirBtn
.
scale
=
tempS
;
changeDirBtn
.
x
=
this
.
canvas
.
width
/
2
-
this
.
topH
/
2
;
changeDirBtn
.
y
=
this
.
canvas
.
height
/
2
-
this
.
topH
/
2
;
...
...
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