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
ce1a1fd0
Commit
ce1a1fd0
authored
Nov 09, 2023
by
李维
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化学习报告数字显示
parent
77236077
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
159 additions
and
130 deletions
+159
-130
middleLayer_for_kyxq.fire
assets/middleLayer_for_kyxq/scene/middleLayer_for_kyxq.fire
+51
-48
LessonReport.ts
assets/middleLayer_for_kyxq/script/LessonReport.ts
+88
-81
util.ts
assets/middleLayer_for_kyxq/script/util.ts
+20
-1
No files found.
assets/middleLayer_for_kyxq/scene/middleLayer_for_kyxq.fire
View file @
ce1a1fd0
...
@@ -14801,7 +14801,7 @@
...
@@ -14801,7 +14801,7 @@
"horizontal": true,
"horizontal": true,
"vertical": false,
"vertical": false,
"inertia": true,
"inertia": true,
"brake": 0.
75
,
"brake": 0.
3
,
"elastic": true,
"elastic": true,
"bounceDuration": 0.23,
"bounceDuration": 0.23,
"scrollEvents": [],
"scrollEvents": [],
...
@@ -19608,7 +19608,7 @@
...
@@ -19608,7 +19608,7 @@
"horizontal": true,
"horizontal": true,
"vertical": false,
"vertical": false,
"inertia": true,
"inertia": true,
"brake": 0.
75
,
"brake": 0.
3
,
"elastic": true,
"elastic": true,
"bounceDuration": 0.23,
"bounceDuration": 0.23,
"scrollEvents": [],
"scrollEvents": [],
...
@@ -25396,7 +25396,7 @@
...
@@ -25396,7 +25396,7 @@
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
-570,
-570,
20
5
,
20
0
,
0,
0,
0,
0,
0,
0,
...
@@ -25759,19 +25759,19 @@
...
@@ -25759,19 +25759,19 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width":
84.2
,
"width":
263.16
,
"height": 50.4
"height": 50.4
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
"x":
0.5
,
"x":
1
,
"y": 0.5
"y": 0.5
},
},
"_trs": {
"_trs": {
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
-
400
,
-
285.003
,
-302,
-302,
0,
0,
0,
0,
...
@@ -25811,8 +25811,8 @@
...
@@ -25811,8 +25811,8 @@
],
],
"_srcBlendFactor": 770,
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_string": "
Lable
",
"_string": "
2023.11.11 未学过
",
"_N$string": "
Lable
",
"_N$string": "
2023.11.11 未学过
",
"_fontSize": 36,
"_fontSize": 36,
"_lineHeight": 40,
"_lineHeight": 40,
"_enableWrapText": true,
"_enableWrapText": true,
...
@@ -27883,8 +27883,8 @@
...
@@ -27883,8 +27883,8 @@
},
},
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 1
29.13
,
"width": 1
36.11
,
"height":
75.6
"height":
98.28
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -27937,8 +27937,8 @@
...
@@ -27937,8 +27937,8 @@
"_dstBlendFactor": 771,
"_dstBlendFactor": 771,
"_string": "93%",
"_string": "93%",
"_N$string": "93%",
"_N$string": "93%",
"_fontSize": 7
4
,
"_fontSize": 7
8
,
"_lineHeight":
60
,
"_lineHeight":
78
,
"_enableWrapText": true,
"_enableWrapText": true,
"_N$file": {
"_N$file": {
"__uuid__": "86a73b35-ea84-4acf-83dc-d18b68083b2e"
"__uuid__": "86a73b35-ea84-4acf-83dc-d18b68083b2e"
...
@@ -27948,8 +27948,8 @@
...
@@ -27948,8 +27948,8 @@
"_batchAsBitmap": false,
"_batchAsBitmap": false,
"_styleFlags": 1,
"_styleFlags": 1,
"_underlineHeight": 0,
"_underlineHeight": 0,
"_N$horizontalAlign":
0
,
"_N$horizontalAlign":
1
,
"_N$verticalAlign":
0
,
"_N$verticalAlign":
1
,
"_N$fontFamily": "Arial",
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$overflow": 0,
"_N$cacheMode": 0,
"_N$cacheMode": 0,
...
@@ -27981,7 +27981,7 @@
...
@@ -27981,7 +27981,7 @@
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 129.13,
"width": 129.13,
"height":
75.6
"height":
93.24
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -28035,7 +28035,7 @@
...
@@ -28035,7 +28035,7 @@
"_string": "93%",
"_string": "93%",
"_N$string": "93%",
"_N$string": "93%",
"_fontSize": 74,
"_fontSize": 74,
"_lineHeight":
60
,
"_lineHeight":
74
,
"_enableWrapText": true,
"_enableWrapText": true,
"_N$file": {
"_N$file": {
"__uuid__": "86a73b35-ea84-4acf-83dc-d18b68083b2e"
"__uuid__": "86a73b35-ea84-4acf-83dc-d18b68083b2e"
...
@@ -28045,8 +28045,8 @@
...
@@ -28045,8 +28045,8 @@
"_batchAsBitmap": false,
"_batchAsBitmap": false,
"_styleFlags": 0,
"_styleFlags": 0,
"_underlineHeight": 0,
"_underlineHeight": 0,
"_N$horizontalAlign":
0
,
"_N$horizontalAlign":
1
,
"_N$verticalAlign":
0
,
"_N$verticalAlign":
1
,
"_N$fontFamily": "Arial",
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$overflow": 0,
"_N$cacheMode": 0,
"_N$cacheMode": 0,
...
@@ -28225,8 +28225,8 @@
...
@@ -28225,8 +28225,8 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
-30
1
,
-30
0
,
-
79.662
,
-
80
,
0,
0,
0,
0,
0,
0,
...
@@ -28276,7 +28276,7 @@
...
@@ -28276,7 +28276,7 @@
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 120,
"width": 120,
"height":
75.6
"height":
93.24
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -28287,8 +28287,8 @@
...
@@ -28287,8 +28287,8 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
4.882
,
5
,
-8.622
,
0
,
0,
0,
0,
0,
0,
0,
...
@@ -28330,7 +28330,7 @@
...
@@ -28330,7 +28330,7 @@
"_string": "42",
"_string": "42",
"_N$string": "42",
"_N$string": "42",
"_fontSize": 74,
"_fontSize": 74,
"_lineHeight":
80
,
"_lineHeight":
74
,
"_enableWrapText": false,
"_enableWrapText": false,
"_N$file": {
"_N$file": {
"__uuid__": "86a73b35-ea84-4acf-83dc-d18b68083b2e"
"__uuid__": "86a73b35-ea84-4acf-83dc-d18b68083b2e"
...
@@ -28341,7 +28341,7 @@
...
@@ -28341,7 +28341,7 @@
"_styleFlags": 0,
"_styleFlags": 0,
"_underlineHeight": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 2,
"_N$horizontalAlign": 2,
"_N$verticalAlign":
2
,
"_N$verticalAlign":
1
,
"_N$fontFamily": "Arial",
"_N$fontFamily": "Arial",
"_N$overflow": 2,
"_N$overflow": 2,
"_N$cacheMode": 0,
"_N$cacheMode": 0,
...
@@ -28377,15 +28377,15 @@
...
@@ -28377,15 +28377,15 @@
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
"x": 0
.5
,
"x": 0,
"y": 0.5
"y": 0.5
},
},
"_trs": {
"_trs": {
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
40.8
,
15
,
-1
8.8
,
-1
2
,
0,
0,
0,
0,
0,
0,
...
@@ -28438,7 +28438,7 @@
...
@@ -28438,7 +28438,7 @@
"_styleFlags": 0,
"_styleFlags": 0,
"_underlineHeight": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign":
0
,
"_N$verticalAlign":
1
,
"_N$fontFamily": "Arial",
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$overflow": 0,
"_N$cacheMode": 0,
"_N$cacheMode": 0,
...
@@ -28617,8 +28617,8 @@
...
@@ -28617,8 +28617,8 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
-2
,
0
,
-
79.662
,
-
80
,
0,
0,
0,
0,
0,
0,
...
@@ -28679,7 +28679,7 @@
...
@@ -28679,7 +28679,7 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
18.92
5,
5,
0,
0,
0,
0,
0,
0,
...
@@ -28722,7 +28722,7 @@
...
@@ -28722,7 +28722,7 @@
"_string": "52",
"_string": "52",
"_N$string": "52",
"_N$string": "52",
"_fontSize": 74,
"_fontSize": 74,
"_lineHeight":
60
,
"_lineHeight":
74
,
"_enableWrapText": true,
"_enableWrapText": true,
"_N$file": {
"_N$file": {
"__uuid__": "86a73b35-ea84-4acf-83dc-d18b68083b2e"
"__uuid__": "86a73b35-ea84-4acf-83dc-d18b68083b2e"
...
@@ -28769,15 +28769,15 @@
...
@@ -28769,15 +28769,15 @@
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
"x": 0
.5
,
"x": 0,
"y": 0.5
"y": 0.5
},
},
"_trs": {
"_trs": {
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
43
,
15
,
-
20
,
-
12
,
0,
0,
0,
0,
0,
0,
...
@@ -28830,7 +28830,7 @@
...
@@ -28830,7 +28830,7 @@
"_styleFlags": 0,
"_styleFlags": 0,
"_underlineHeight": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign":
0
,
"_N$verticalAlign":
1
,
"_N$fontFamily": "Arial",
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$overflow": 0,
"_N$cacheMode": 0,
"_N$cacheMode": 0,
...
@@ -29010,7 +29010,7 @@
...
@@ -29010,7 +29010,7 @@
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
300,
300,
-
79.662
,
-
80
,
0,
0,
0,
0,
0,
0,
...
@@ -29071,7 +29071,7 @@
...
@@ -29071,7 +29071,7 @@
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
16.27
,
5
,
0,
0,
0,
0,
0,
0,
...
@@ -29114,7 +29114,7 @@
...
@@ -29114,7 +29114,7 @@
"_string": "20",
"_string": "20",
"_N$string": "20",
"_N$string": "20",
"_fontSize": 74,
"_fontSize": 74,
"_lineHeight":
60
,
"_lineHeight":
74
,
"_enableWrapText": true,
"_enableWrapText": true,
"_N$file": {
"_N$file": {
"__uuid__": "86a73b35-ea84-4acf-83dc-d18b68083b2e"
"__uuid__": "86a73b35-ea84-4acf-83dc-d18b68083b2e"
...
@@ -29125,7 +29125,7 @@
...
@@ -29125,7 +29125,7 @@
"_styleFlags": 0,
"_styleFlags": 0,
"_underlineHeight": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 2,
"_N$horizontalAlign": 2,
"_N$verticalAlign":
0
,
"_N$verticalAlign":
1
,
"_N$fontFamily": "Arial",
"_N$fontFamily": "Arial",
"_N$overflow": 2,
"_N$overflow": 2,
"_N$cacheMode": 0,
"_N$cacheMode": 0,
...
@@ -29161,15 +29161,15 @@
...
@@ -29161,15 +29161,15 @@
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
"x": 0
.5
,
"x": 0,
"y": 0.5
"y": 0.5
},
},
"_trs": {
"_trs": {
"__type__": "TypedArray",
"__type__": "TypedArray",
"ctor": "Float64Array",
"ctor": "Float64Array",
"array": [
"array": [
42
,
15
,
-
20
,
-
12
,
0,
0,
0,
0,
0,
0,
...
@@ -29222,7 +29222,7 @@
...
@@ -29222,7 +29222,7 @@
"_styleFlags": 0,
"_styleFlags": 0,
"_underlineHeight": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign":
0
,
"_N$verticalAlign":
1
,
"_N$fontFamily": "Arial",
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$overflow": 0,
"_N$cacheMode": 0,
"_N$cacheMode": 0,
...
@@ -32259,9 +32259,6 @@
...
@@ -32259,9 +32259,6 @@
"mask": {
"mask": {
"__id__": 580
"__id__": 580
},
},
"study_duration": {
"__id__": 633
},
"last_play": {
"last_play": {
"__id__": 584
"__id__": 584
},
},
...
@@ -32271,6 +32268,12 @@
...
@@ -32271,6 +32268,12 @@
"question_right_percent2": {
"question_right_percent2": {
"__id__": 627
"__id__": 627
},
},
"study_duration": {
"__id__": 633
},
"study_duration_unit": {
"__id__": 635
},
"record_times": {
"record_times": {
"__id__": 649
"__id__": 649
},
},
...
...
assets/middleLayer_for_kyxq/script/LessonReport.ts
View file @
ce1a1fd0
This diff is collapsed.
Click to expand it.
assets/middleLayer_for_kyxq/script/util.ts
View file @
ce1a1fd0
...
@@ -501,4 +501,23 @@ export function formatTime(time) {
...
@@ -501,4 +501,23 @@ export function formatTime(time) {
const
ss
=
Math
.
round
(
time
%
60
).
toString
().
padStart
(
2
,
'
0
'
);
const
ss
=
Math
.
round
(
time
%
60
).
toString
().
padStart
(
2
,
'
0
'
);
return
`
${
hh
}${
mm
}
:
${
ss
}
`
;
return
`
${
hh
}${
mm
}
:
${
ss
}
`
;
}
}
\ No newline at end of file
// "yyyy-MM-dd hh:mm:ss
export
function
dateFormate
(
fmt
,
date
)
{
var
o
=
{
"
M+
"
:
date
.
getMonth
()
+
1
,
//月份
"
d+
"
:
date
.
getDate
(),
//日
"
h+
"
:
date
.
getHours
(),
//小时
"
m+
"
:
date
.
getMinutes
(),
//分
"
s+
"
:
date
.
getSeconds
(),
//秒
"
q+
"
:
Math
.
floor
((
date
.
getMonth
()
+
3
)
/
3
),
//季度
"
S
"
:
date
.
getMilliseconds
()
//毫秒
};
if
(
/
(
y+
)
/
.
test
(
fmt
))
fmt
=
fmt
.
replace
(
RegExp
.
$1
,
(
date
.
getFullYear
()
+
""
).
substr
(
4
-
RegExp
.
$1
.
length
));
for
(
var
k
in
o
)
if
(
new
RegExp
(
"
(
"
+
k
+
"
)
"
).
test
(
fmt
))
fmt
=
fmt
.
replace
(
RegExp
.
$1
,
(
RegExp
.
$1
.
length
==
1
)
?
(
o
[
k
])
:
((
"
00
"
+
o
[
k
]).
substr
((
""
+
o
[
k
]).
length
)));
return
fmt
;
}
\ No newline at end of file
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