Authored by 陈轩

fix

... ... @@ -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;
... ...
... ... @@ -77,12 +77,14 @@
<li class="duration">
<div class="inner pull-right">
<span class="val">{{duration}}</span>
<br>
<span class="label">直播时长</span>
</div>
</li>
<li class="favorite">
<div class="inner pull-left">
<span class="val">{{like_num}}</span>
<br>
<span class="label">点赞数</span>
</div>
</li>
... ...