...
|
...
|
@@ -18,7 +18,7 @@ const _formatTime = (timestamp, b) => { |
|
|
date = b ? '[]' : '[今天]';
|
|
|
break;
|
|
|
case 1:
|
|
|
date = '[明天]';
|
|
|
date = '[明日]';
|
|
|
break;
|
|
|
default:
|
|
|
null;
|
...
|
...
|
@@ -177,11 +177,11 @@ const fetchLiveInfo = (roomID) => { |
|
|
let durationM = duration.minutes();
|
|
|
let durationS = duration.seconds();
|
|
|
|
|
|
[durationH, durationM, durationS].forEach((item, index, arr) => {
|
|
|
duration = [durationH, durationM, durationS].map((item) => {
|
|
|
if (item < 10) {
|
|
|
arr[index] = `0${item}`;
|
|
|
return `0${item}`;
|
|
|
} else {
|
|
|
arr[index] = String(item);
|
|
|
return String(item);
|
|
|
}
|
|
|
});
|
|
|
|
...
|
...
|
@@ -201,7 +201,7 @@ const fetchLiveInfo = (roomID) => { |
|
|
|
|
|
|
|
|
// 自定义数据
|
|
|
d.duration = `${durationH}:${durationM}:${durationS}`;
|
|
|
d.duration = `${duration[0]}:${duration[1]}:${duration[2]}`;
|
|
|
d.canPlay = d.living === 1;
|
|
|
d.notBegin = d.living === 0;
|
|
|
d.atEnd = d.living === 2;
|
...
|
...
|
|