...
|
...
|
@@ -30,7 +30,7 @@ let _getBannerData = () => { |
|
|
code: 200,
|
|
|
cache: true
|
|
|
}).then((result) => {
|
|
|
return result.data ? resourcesProcess(result.data) : [];
|
|
|
return result && result.data ? resourcesProcess(result.data) : [];
|
|
|
});
|
|
|
};
|
|
|
|
...
|
...
|
@@ -117,9 +117,13 @@ const fetchReplayInfo = (videoID) => { |
|
|
d.logo = helpers.image(d.logo, 70, 70);
|
|
|
d.pic = helpers.image(d.pic, 640, 968);
|
|
|
d.master_pic = helpers.image(d.master_pic, 180, 180);
|
|
|
d.living = 3; // 自定义的重播 状态
|
|
|
d.humanTime = _formatTime(data.living_start_time * 1000);
|
|
|
d.video_src = d.url;
|
|
|
|
|
|
// 自定义数据
|
|
|
d.living = 3; // 重播 状态
|
|
|
d.canPlay = true;
|
|
|
d.atEnd = false;
|
|
|
}
|
|
|
|
|
|
return result;
|
...
|
...
|
@@ -141,6 +145,11 @@ const fetchLiveInfo = (roomID) => { |
|
|
d.master_pic = helpers.image(d.master_pic, 180, 180);
|
|
|
d.humanTime = _formatTime(d.living_start_time * 1000);
|
|
|
d.video_src = d.hls_downstream_address;
|
|
|
|
|
|
// 自定义的数据
|
|
|
d.canPlay = d.living === 1;
|
|
|
d.notBegin = d.living === 0;
|
|
|
d.atEnd = d.living === 2;
|
|
|
}
|
|
|
|
|
|
return result;
|
...
|
...
|
|