Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cc_mz_write_02
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
cc_mz_write_02
Commits
224ee684
Commit
224ee684
authored
Nov 10, 2022
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: debug
parent
e1d07d39
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
cc_mz_write_02.js
assets/cc_mz_write_02/scene/cc_mz_write_02.js
+18
-6
No files found.
assets/cc_mz_write_02/scene/cc_mz_write_02.js
View file @
224ee684
...
@@ -1688,7 +1688,7 @@ cc.Class({
...
@@ -1688,7 +1688,7 @@ cc.Class({
}
}
console
.
log
(
'
answerData:
'
,
answerData
);
this
.
showUserRightNew
(
answerData
);
this
.
showUserRightNew
(
answerData
);
},
},
...
@@ -1703,7 +1703,7 @@ cc.Class({
...
@@ -1703,7 +1703,7 @@ cc.Class({
const
animaNode
=
this
.
animaNodeArr
[
i
];
const
animaNode
=
this
.
animaNodeArr
[
i
];
const
key
=
animaNode
.
data
.
rect
Item
// i.toString();
const
key
=
animaNode
.
data
.
rect
New
// i.toString();
console
.
log
(
'
~animaNode.data:
'
,
animaNode
.
data
)
console
.
log
(
'
~animaNode.data:
'
,
animaNode
.
data
)
console
.
log
(
'
~key:
'
,
key
)
console
.
log
(
'
~key:
'
,
key
)
...
@@ -3335,12 +3335,24 @@ cc.Class({
...
@@ -3335,12 +3335,24 @@ cc.Class({
console
.
log
(
"
key:
"
,
key
);
console
.
log
(
"
key:
"
,
key
);
// if (labelText.toLowerCase().indexOf(targetLabelText.toLowerCase()) != -1 && rect.intersects(dotRect)) {
// if (labelText.toLowerCase().indexOf(targetLabelText.toLowerCase()) != -1 && rect.intersects(dotRect)) {
if
(
labelText
==
targetLabelText
&&
checkRect
.
contains
(
dotV2
))
{
// if (labelText == targetLabelText && checkRect.contains(dotV2)) {
const
len
=
targetLabelText
.
trim
().
length
;
if
(
checkRect
.
contains
(
dotV2
))
{
// const len = targetLabelText.trim().length;
console
.
log
(
'
len:
'
,
len
);
// console.log('len: ', len);
// if (labelText.length == 1) {
// if (labelText.toLowerCase().indexOf(targetLabelText.toLowerCase()) != -1 ) {
// answerData[key] = {isFinish: true};
// }
// } else {
if
(
labelText
==
targetLabelText
)
{
answerData
[
key
]
=
{
isFinish
:
true
};
answerData
[
key
]
=
{
isFinish
:
true
};
}
// }
}
}
...
...
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