Commit ce1a1fd0 authored by 李维's avatar 李维

优化学习报告数字显示

parent 77236077
...@@ -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,
205, 200,
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": 129.13, "width": 136.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": 74, "_fontSize": 78,
"_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": [
-301, -300,
-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,
-18.8, -12,
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.925, 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
}, },
......
...@@ -502,3 +502,22 @@ export function formatTime(time) { ...@@ -502,3 +502,22 @@ export function formatTime(time) {
return `${hh}${mm}:${ss}`; return `${hh}${mm}:${ss}`;
} }
// "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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment