Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OP_18
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
OP_18
Commits
cca8e0c6
Commit
cca8e0c6
authored
Dec 31, 2021
by
limingzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 第一个不显示 bug
parent
f360f6f8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
18 deletions
+16
-18
.DS_Store
.DS_Store
+0
-0
OP_18.meta
assets/OP_18.meta
+1
-15
OP_18.js
assets/OP_18/scene/OP_18.js
+15
-3
No files found.
.DS_Store
View file @
cca8e0c6
No preview for this file type
assets/OP_18.meta
View file @
cca8e0c6
{
"ver": "1.1.2",
"uuid": "e9f579c0-59b7-4567-93ad-5b17f799e827",
"isBundle": false,
"bundleName": "",
"priority": 1,
"compressionType": {},
"optimizeHotUpdate": {},
"inlineSpriteFrames": {},
"isRemoteBundle": {
"ios": false,
"android": false
},
"subMetas": {}
}
\ No newline at end of file
{"ver":"1.1.2","uuid":"e9f579c0-59b7-4567-93ad-5b17f799e827","isBundle":false,"bundleName":"","priority":1,"compressionType":{},"optimizeHotUpdate":{},"inlineSpriteFrames":{},"isRemoteBundle":{"ios":false,"android":false},"subMetas":{}}
\ No newline at end of file
assets/OP_18/scene/OP_18.js
View file @
cca8e0c6
...
...
@@ -856,6 +856,8 @@ cc.Class({
if
(
isSmall
)
{
writeRect
=
this
.
writeNodeArr2
[
Number
(
index
)];
console
.
log
(
'
show Letter small 1 :
'
,
index
)
}
else
{
writeRect
=
this
.
writeNodeArr1
[
Number
(
index
)];
}
...
...
@@ -870,9 +872,12 @@ cc.Class({
}
writeRect
.
isShowEnd
=
true
;
console
.
log
(
'
show Letter small 2 :
'
,
index
)
const
letterAnim
=
this
.
getLetterAnim
(
isSmall
);
letterAnim
.
parent
=
writeRect
;
letterAnim
.
y
=
4
;
// letterAnim.x = writeRect.width / 2;
// letterAnim.y = writeRect.height / 2;
...
...
@@ -1412,6 +1417,10 @@ cc.Class({
console
.
log
(
'
this.photo end
'
);
if
(
!
this
.
canTouch
)
{
console
.
log
(
'
! cantouch
'
)
return
;
}
// const result = data.result;
// for (let i=0; i<result.length; i++) {
// result[i].top *= 400;
...
...
@@ -1459,7 +1468,10 @@ cc.Class({
const
oldStep
=
this
.
step
;
this
.
checkShowStepAudio
();
if
(
oldStep
!=
this
.
step
)
{
this
.
canTouch
=
false
;
this
.
showStepAudio
();
}
else
{
this
.
canTouch
=
true
;
}
// const isFillAll = this.checkIsFillAll(answerData);
...
...
@@ -1528,7 +1540,6 @@ cc.Class({
checkShowStepAudio
()
{
this
.
canTouch
=
false
;
switch
(
this
.
step
)
{
case
1
:
...
...
@@ -1630,6 +1641,7 @@ cc.Class({
const
playEnd
=
()
=>
{
this
.
playAni
(
'
normal
'
,
0
);
this
.
showSmallLetterAnim
();
this
.
canTouch
=
true
;
}
if
(
!
this
.
data
.
write_small_0_audio_url
)
{
...
...
@@ -1687,9 +1699,9 @@ cc.Class({
showUserRight
(
answerData
,
isSmall
)
{
console
.
log
(
'
answerData:
'
,
answerData
);
console
.
log
(
'
answerData:
'
,
answerData
.
toString
()
);
if
(
!
answerData
||
Object
.
keys
(
answerData
)
==
0
)
{
if
(
!
answerData
||
Object
.
keys
(
answerData
)
.
length
==
0
)
{
return
;
}
...
...
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