mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-12-28 04:09:47 +08:00
Compare commits
7 Commits
v1.4
...
6e920d8ea1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6e920d8ea1 | ||
|
|
8154ee3130 | ||
|
|
e056775fc0 | ||
|
|
f5b4a70741 | ||
|
|
e1bca31883 | ||
|
|
f1985d0b8f | ||
|
|
3eafab1d41 |
@@ -13,10 +13,5 @@
|
|||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
<script type="module" src="/src/main.tsx"></script>
|
<script type="module" src="/src/main.tsx"></script>
|
||||||
<script
|
|
||||||
crossorigin="anonymous"
|
|
||||||
integrity="sha512-oHrfR/z2wkuRuaHrdZ9NhoT/o/1kteub+QvmQgVzOKK7NTvIKQMvnY9+/RR0+eW311o4lAE/YzzLXXmP2XUvig=="
|
|
||||||
src="https://lib.baomitu.com/hls.js/1.1.4/hls.min.js"
|
|
||||||
></script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 64 KiB |
@@ -101,7 +101,7 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
.tab-item {
|
.tab-item {
|
||||||
width: 64px;
|
min-width: 64px;
|
||||||
height: 48px;
|
height: 48px;
|
||||||
margin-right: 50px;
|
margin-right: 50px;
|
||||||
transition: all 0.2s;
|
transition: all 0.2s;
|
||||||
@@ -114,7 +114,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.tit {
|
.tit {
|
||||||
width: 64px;
|
width: 100%;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
@@ -123,7 +123,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.tab-active-item {
|
.tab-active-item {
|
||||||
width: 64px;
|
min-width: 64px;
|
||||||
height: 48px;
|
height: 48px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin-right: 50px;
|
margin-right: 50px;
|
||||||
@@ -133,7 +133,7 @@
|
|||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
}
|
}
|
||||||
.tit {
|
.tit {
|
||||||
width: 64px;
|
width: 100%;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
|||||||
@@ -298,27 +298,17 @@ const IndexPage = () => {
|
|||||||
{studyTimeFormat(stats.today_learn_duration)[0] ||
|
{studyTimeFormat(stats.today_learn_duration)[0] ||
|
||||||
0}{" "}
|
0}{" "}
|
||||||
</strong>
|
</strong>
|
||||||
天
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
{studyTimeFormat(stats.today_learn_duration)[1] !== 0 && (
|
|
||||||
<>
|
|
||||||
<strong>
|
|
||||||
{" "}
|
|
||||||
{studyTimeFormat(stats.today_learn_duration)[1] ||
|
|
||||||
0}{" "}
|
|
||||||
</strong>
|
|
||||||
小时
|
小时
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<strong>
|
<strong>
|
||||||
{" "}
|
{" "}
|
||||||
{studyTimeFormat(stats.today_learn_duration)[2] || 0}{" "}
|
{studyTimeFormat(stats.today_learn_duration)[1] || 0}{" "}
|
||||||
</strong>
|
</strong>
|
||||||
分钟
|
分钟
|
||||||
<strong>
|
<strong>
|
||||||
{" "}
|
{" "}
|
||||||
{studyTimeFormat(stats.today_learn_duration)[3] || 0}{" "}
|
{studyTimeFormat(stats.today_learn_duration)[2] || 0}{" "}
|
||||||
</strong>
|
</strong>
|
||||||
秒
|
秒
|
||||||
</div>
|
</div>
|
||||||
@@ -331,27 +321,17 @@ const IndexPage = () => {
|
|||||||
{studyTimeFormat(stats.learn_duration || 0)[0] ||
|
{studyTimeFormat(stats.learn_duration || 0)[0] ||
|
||||||
0}{" "}
|
0}{" "}
|
||||||
</strong>
|
</strong>
|
||||||
天
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
{studyTimeFormat(stats.learn_duration || 0)[1] !== 0 && (
|
|
||||||
<>
|
|
||||||
<strong>
|
|
||||||
{" "}
|
|
||||||
{studyTimeFormat(stats.learn_duration || 0)[1] ||
|
|
||||||
0}{" "}
|
|
||||||
</strong>
|
|
||||||
小时
|
小时
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<strong>
|
<strong>
|
||||||
{" "}
|
{" "}
|
||||||
{studyTimeFormat(stats.learn_duration || 0)[2] || 0}{" "}
|
{studyTimeFormat(stats.learn_duration || 0)[1] || 0}{" "}
|
||||||
</strong>
|
</strong>
|
||||||
分钟
|
分钟
|
||||||
<strong>
|
<strong>
|
||||||
{" "}
|
{" "}
|
||||||
{studyTimeFormat(stats.learn_duration || 0)[3] || 0}{" "}
|
{studyTimeFormat(stats.learn_duration || 0)[2] || 0}{" "}
|
||||||
</strong>
|
</strong>
|
||||||
秒
|
秒
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ export function durationFormat(dateStr: number) {
|
|||||||
export function studyTimeFormat(dateStr: number) {
|
export function studyTimeFormat(dateStr: number) {
|
||||||
var d = moment.duration(dateStr / 1000, "seconds");
|
var d = moment.duration(dateStr / 1000, "seconds");
|
||||||
let value = [];
|
let value = [];
|
||||||
value.push(Math.floor(d.asDays()));
|
|
||||||
value.push(d.hours());
|
value.push(d.hours());
|
||||||
value.push(d.minutes());
|
value.push(d.minutes());
|
||||||
value.push(d.seconds());
|
value.push(d.seconds());
|
||||||
|
|||||||
Reference in New Issue
Block a user