Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NJ_usercenter
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
NJ_usercenter
Commits
82a36f98
Commit
82a36f98
authored
Jun 21, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat
parent
c7c87ca1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
clickEvent.ts
assets/NJ_usercenter/script/clickEvent.ts
+17
-2
No files found.
assets/NJ_usercenter/script/clickEvent.ts
View file @
82a36f98
...
...
@@ -205,6 +205,12 @@ export default class NewClass extends cc.Component {
tips
.
removeAllChildren
();
row
.
parent
=
tips
;
// 趣配音
const
qpyNode
=
cc
.
find
(
`Canvas/reportdetail/view/content/userdetail_scollpage/learnresult/itembg/pyx`
);
for
(
let
i
=
0
;
i
<
3
;
i
++
)
{
cc
.
find
(
`result_bg/star_
${
i
+
1
}
_light`
,
qpyNode
).
active
=
false
;
}
}
async
onShowLearnDetail
(
evt
:
cc
.
Event
)
{
...
...
@@ -332,13 +338,22 @@ export default class NewClass extends cc.Component {
cc
.
find
(
`Canvas/reportdetail/view/content/userdetail_scollpage/learnresult/itembg/tips_bg/row`
).
active
=
false
;
}
const
qpyNode
=
cc
.
find
(
`Canvas/reportdetail/view/content/userdetail_scollpage/learnresult/itembg/pyx`
);
if
(
OP_06_3
)
{
const
rowData
=
JSON
.
parse
(
OP_06_3
);
cc
.
find
(
`Canvas/videoContainer`
).
attr
({
rowData
});
// TODO 星星算法和评语
cc
.
find
(
`Canvas/reportdetail/view/content/userdetail_scollpage/learnresult/itembg/pyx`
).
active
=
true
;
let
lightStarCount
=
0
;
rowData
.
item_arr
.
forEach
(
row
=>
{
lightStarCount
+=
row
.
star_count
;
});
lightStarCount
=
Math
.
floor
(
lightStarCount
/
rowData
.
item_arr
.
length
);
for
(
let
i
=
0
;
i
<
lightStarCount
;
i
++
)
{
cc
.
find
(
`result_bg/star_
${
i
+
1
}
_light`
,
qpyNode
).
active
=
true
;
}
qpyNode
.
active
=
true
;
}
else
{
cc
.
find
(
`Canvas/reportdetail/view/content/userdetail_scollpage/learnresult/itembg/pyx`
)
.
active
=
false
;
qpyNode
.
active
=
false
;
}
// 设置页面高度
...
...
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