Commit ce1a1fd0 authored by 李维's avatar 李维

优化学习报告数字显示

parent 77236077
......@@ -14801,7 +14801,7 @@
"horizontal": true,
"vertical": false,
"inertia": true,
"brake": 0.75,
"brake": 0.3,
"elastic": true,
"bounceDuration": 0.23,
"scrollEvents": [],
......@@ -19608,7 +19608,7 @@
"horizontal": true,
"vertical": false,
"inertia": true,
"brake": 0.75,
"brake": 0.3,
"elastic": true,
"bounceDuration": 0.23,
"scrollEvents": [],
......@@ -25396,7 +25396,7 @@
"ctor": "Float64Array",
"array": [
-570,
205,
200,
0,
0,
0,
......@@ -25759,19 +25759,19 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 84.2,
"width": 263.16,
"height": 50.4
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"x": 1,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-400,
-285.003,
-302,
0,
0,
......@@ -25811,8 +25811,8 @@
],
"_srcBlendFactor": 770,
"_dstBlendFactor": 771,
"_string": "Lable",
"_N$string": "Lable",
"_string": "2023.11.11 未学过",
"_N$string": "2023.11.11 未学过",
"_fontSize": 36,
"_lineHeight": 40,
"_enableWrapText": true,
......@@ -27883,8 +27883,8 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 129.13,
"height": 75.6
"width": 136.11,
"height": 98.28
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -27937,8 +27937,8 @@
"_dstBlendFactor": 771,
"_string": "93%",
"_N$string": "93%",
"_fontSize": 74,
"_lineHeight": 60,
"_fontSize": 78,
"_lineHeight": 78,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "86a73b35-ea84-4acf-83dc-d18b68083b2e"
......@@ -27948,8 +27948,8 @@
"_batchAsBitmap": false,
"_styleFlags": 1,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
......@@ -27981,7 +27981,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 129.13,
"height": 75.6
"height": 93.24
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -28035,7 +28035,7 @@
"_string": "93%",
"_N$string": "93%",
"_fontSize": 74,
"_lineHeight": 60,
"_lineHeight": 74,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "86a73b35-ea84-4acf-83dc-d18b68083b2e"
......@@ -28045,8 +28045,8 @@
"_batchAsBitmap": false,
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 0,
"_N$horizontalAlign": 1,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
......@@ -28225,8 +28225,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-301,
-79.662,
-300,
-80,
0,
0,
0,
......@@ -28276,7 +28276,7 @@
"_contentSize": {
"__type__": "cc.Size",
"width": 120,
"height": 75.6
"height": 93.24
},
"_anchorPoint": {
"__type__": "cc.Vec2",
......@@ -28287,8 +28287,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
4.882,
-8.622,
5,
0,
0,
0,
0,
......@@ -28330,7 +28330,7 @@
"_string": "42",
"_N$string": "42",
"_fontSize": 74,
"_lineHeight": 80,
"_lineHeight": 74,
"_enableWrapText": false,
"_N$file": {
"__uuid__": "86a73b35-ea84-4acf-83dc-d18b68083b2e"
......@@ -28341,7 +28341,7 @@
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 2,
"_N$verticalAlign": 2,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 2,
"_N$cacheMode": 0,
......@@ -28377,15 +28377,15 @@
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"x": 0,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
40.8,
-18.8,
15,
-12,
0,
0,
0,
......@@ -28438,7 +28438,7 @@
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 0,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
......@@ -28617,8 +28617,8 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
-2,
-79.662,
0,
-80,
0,
0,
0,
......@@ -28679,7 +28679,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
18.925,
5,
0,
0,
0,
......@@ -28722,7 +28722,7 @@
"_string": "52",
"_N$string": "52",
"_fontSize": 74,
"_lineHeight": 60,
"_lineHeight": 74,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "86a73b35-ea84-4acf-83dc-d18b68083b2e"
......@@ -28769,15 +28769,15 @@
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"x": 0,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
43,
-20,
15,
-12,
0,
0,
0,
......@@ -28830,7 +28830,7 @@
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 0,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
......@@ -29010,7 +29010,7 @@
"ctor": "Float64Array",
"array": [
300,
-79.662,
-80,
0,
0,
0,
......@@ -29071,7 +29071,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
16.27,
5,
0,
0,
0,
......@@ -29114,7 +29114,7 @@
"_string": "20",
"_N$string": "20",
"_fontSize": 74,
"_lineHeight": 60,
"_lineHeight": 74,
"_enableWrapText": true,
"_N$file": {
"__uuid__": "86a73b35-ea84-4acf-83dc-d18b68083b2e"
......@@ -29125,7 +29125,7 @@
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 2,
"_N$verticalAlign": 0,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 2,
"_N$cacheMode": 0,
......@@ -29161,15 +29161,15 @@
},
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"x": 0,
"y": 0.5
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
42,
-20,
15,
-12,
0,
0,
0,
......@@ -29222,7 +29222,7 @@
"_styleFlags": 0,
"_underlineHeight": 0,
"_N$horizontalAlign": 0,
"_N$verticalAlign": 0,
"_N$verticalAlign": 1,
"_N$fontFamily": "Arial",
"_N$overflow": 0,
"_N$cacheMode": 0,
......@@ -32259,9 +32259,6 @@
"mask": {
"__id__": 580
},
"study_duration": {
"__id__": 633
},
"last_play": {
"__id__": 584
},
......@@ -32271,6 +32268,12 @@
"question_right_percent2": {
"__id__": 627
},
"study_duration": {
"__id__": 633
},
"study_duration_unit": {
"__id__": 635
},
"record_times": {
"__id__": 649
},
......
......@@ -501,4 +501,23 @@ export function formatTime(time) {
const ss = Math.round(time % 60).toString().padStart(2, '0');
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
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