|
@@ -44,7 +44,11 @@
|
|
@canplay="videoload"
|
|
@canplay="videoload"
|
|
:src="videoUrl"
|
|
:src="videoUrl"
|
|
/>
|
|
/>
|
|
- <img v-show="videoerrorStart" class="videoerror" src="../../assets/img/videoerror.png" />
|
|
|
|
|
|
+ <img
|
|
|
|
+ v-show="videoerrorStart"
|
|
|
|
+ class="videoerror"
|
|
|
|
+ src="../../assets/img/videoerror.png"
|
|
|
|
+ />
|
|
</div>
|
|
</div>
|
|
<div style="position: relative;">
|
|
<div style="position: relative;">
|
|
<div
|
|
<div
|
|
@@ -67,6 +71,9 @@
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<span class="iconLine"></span>
|
|
<span class="iconLine"></span>
|
|
收视率%
|
|
收视率%
|
|
|
|
+ <div style="float: right;padding: 0 5px 0 0">
|
|
|
|
+ {{ tof(nowItem.audienceRating, 4) }}%
|
|
|
|
+ </div>
|
|
</el-col>
|
|
</el-col>
|
|
</el-row>
|
|
</el-row>
|
|
<div style="padding: 5px 20px">
|
|
<div style="padding: 5px 20px">
|
|
@@ -199,6 +206,9 @@ export default {
|
|
this.load.close();
|
|
this.load.close();
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ tof(num, t) {
|
|
|
|
+ return Number(num * 100).toFixed(t || 2);
|
|
|
|
+ },
|
|
selectChannel(item) {
|
|
selectChannel(item) {
|
|
if (this.channel === item.channelName) return;
|
|
if (this.channel === item.channelName) return;
|
|
this.channel = item.channelName;
|
|
this.channel = item.channelName;
|
|
@@ -418,9 +428,9 @@ export default {
|
|
videoerror() {
|
|
videoerror() {
|
|
this.videoerrorStart = true;
|
|
this.videoerrorStart = true;
|
|
},
|
|
},
|
|
- videoload(){
|
|
|
|
|
|
+ videoload() {
|
|
this.videoerrorStart = false;
|
|
this.videoerrorStart = false;
|
|
- }
|
|
|
|
|
|
+ },
|
|
},
|
|
},
|
|
components: {},
|
|
components: {},
|
|
};
|
|
};
|