Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_kyxq
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
middleLayer_for_kyxq
Commits
4d759dd3
Commit
4d759dd3
authored
Nov 08, 2023
by
曲世俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上报界面优化
parent
ac16d70f
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
422 additions
and
384 deletions
+422
-384
middleLayer_for_kyxq.fire
assets/middleLayer_for_kyxq/scene/middleLayer_for_kyxq.fire
+388
-379
LessonReport.ts
assets/middleLayer_for_kyxq/script/LessonReport.ts
+34
-5
No files found.
assets/middleLayer_for_kyxq/scene/middleLayer_for_kyxq.fire
View file @
4d759dd3
This diff is collapsed.
Click to expand it.
assets/middleLayer_for_kyxq/script/LessonReport.ts
View file @
4d759dd3
...
...
@@ -52,6 +52,12 @@ export default class NewClass extends cc.Component {
@
property
(
cc
.
ScrollView
)
reportSV
:
cc
.
ScrollView
=
null
;
@
property
(
cc
.
Node
)
nd_storyWord
:
cc
.
Node
=
null
;
@
property
(
cc
.
Node
)
nd_storySentence
:
cc
.
Node
=
null
;
@
property
(
cc
.
Node
)
nd_storyStory
:
cc
.
Node
=
null
;
// LIFE-CYCLE CALLBACKS:
m_sentenceNodeList
=
[]
...
...
@@ -86,7 +92,7 @@ export default class NewClass extends cc.Component {
this
.
title
.
string
=
_data
.
name
this
.
unit
.
string
=
_data
.
unitName
this
.
study_duration
.
string
=
_data
.
study_duration
this
.
last_play
.
string
=
_data
.
last_play
&&
new
Date
(
_data
.
last_play
).
toString
()
||
""
this
.
last_play
.
string
=
_data
.
last_play
&&
new
Date
(
_data
.
last_play
).
to
Locale
String
()
||
""
this
.
question_right_percent1
.
string
=
_data
.
question_right_percent
this
.
question_right_percent2
.
string
=
_data
.
question_right_percent
this
.
record_times
.
string
=
_data
.
record_times
...
...
@@ -108,10 +114,33 @@ export default class NewClass extends cc.Component {
// 句子
if
(
_data
.
knowledge
){
this
.
storyItem
.
active
=
true
this
.
storyWord
.
string
=
_data
.
knowledge
.
word
this
.
storyScentence
.
string
=
_data
.
knowledge
.
sentence
this
.
storyStory
.
string
=
_data
.
knowledge
.
story
if
(
_data
.
knowledge
.
word
){
this
.
storyWord
.
string
=
_data
.
knowledge
.
word
this
.
nd_storyWord
.
active
=
true
}
else
{
this
.
nd_storyWord
.
active
=
false
}
if
(
_data
.
knowledge
.
sentence
){
this
.
storyScentence
.
string
=
_data
.
knowledge
.
sentence
this
.
nd_storySentence
.
active
=
true
}
else
{
this
.
nd_storySentence
.
active
=
false
}
if
(
_data
.
knowledge
.
story
){
this
.
storyStory
.
string
=
_data
.
knowledge
.
story
this
.
nd_storyStory
.
active
=
true
}
else
{
this
.
nd_storyStory
.
active
=
false
}
if
(
!
_data
.
knowledge
.
word
&&
!
_data
.
knowledge
.
sentence
&&
!
_data
.
knowledge
.
story
)
{
this
.
storyItem
.
active
=
false
}
else
{
this
.
storyItem
.
active
=
true
}
}
else
{
this
.
storyItem
.
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