|
@@ -140,16 +140,9 @@ export default {
|
|
|
this.load = ElLoading.default.service();
|
|
|
leverAudience().then(res => {
|
|
|
this.list = res || [];
|
|
|
- this.select = this.list[0].channelId || "";
|
|
|
- let d = new Date(new Date() - 86400000 * 2),
|
|
|
- y = d.getFullYear(),
|
|
|
- m = d.getMonth() + 1,
|
|
|
- h = d.getHours() + 1,
|
|
|
- day = d.getDate();
|
|
|
- m > 9 ? "" : (m = "0" + m);
|
|
|
- day > 9 ? "" : (day = "0" + day);
|
|
|
- h > 9 ? "" : (h = "0" + h);
|
|
|
- this.date = [y, m, day].join("-");
|
|
|
+ let item = this.list[0] || {};
|
|
|
+ this.select = item.channelId || "";
|
|
|
+ this.date = item.dt || "";
|
|
|
this.getData();
|
|
|
});
|
|
|
},
|
|
@@ -173,7 +166,7 @@ export default {
|
|
|
videoUrl = videoUrl
|
|
|
.replace("/{yyyyMMdd}/", "/" + d + "/")
|
|
|
.replace(/^https?:/, location.protocol);
|
|
|
- this.videoUrl = videoUrl.replace("{yyyyMMddHH}", d + "16");
|
|
|
+ this.videoUrl = videoUrl.replace("{$channel_id}", this.select);
|
|
|
defaultAjax({
|
|
|
url,
|
|
|
})
|