|
@@ -171,7 +171,7 @@
|
|
|
<!-- &&liveItem.completionPointsEnabled -->
|
|
<!-- &&liveItem.completionPointsEnabled -->
|
|
|
<view class="progress-countdown end" :class="liveItem.showType==2?' progress-vertical':''"
|
|
<view class="progress-countdown end" :class="liveItem.showType==2?' progress-vertical':''"
|
|
|
:style="{ 'display':isFocus?'none':''}"
|
|
:style="{ 'display':isFocus?'none':''}"
|
|
|
- v-if="countdownPercentage!=100&&liveItem.completionPointsEnabled&&!receiveStatus&&liveItem.status==2&&!hasReceived">
|
|
|
|
|
|
|
+ v-if="countdownPercentage!=100&&!receiveStatus&&liveItem.status==2&&!hasReceived">
|
|
|
<image class="title" src="/static/images/points_title.png"></image>
|
|
<image class="title" src="/static/images/points_title.png"></image>
|
|
|
<view class="progress-bar-bg">
|
|
<view class="progress-bar-bg">
|
|
|
<view class="progress-bar-fill" :style="{ width: countdownPercentage + '%' }"></view>
|
|
<view class="progress-bar-fill" :style="{ width: countdownPercentage + '%' }"></view>
|
|
@@ -1889,7 +1889,7 @@
|
|
|
}
|
|
}
|
|
|
// remainingTime = 剩余需要观看的时间
|
|
// remainingTime = 剩余需要观看的时间
|
|
|
// 已观看时间 = 总目标时间 - 剩余时间
|
|
// 已观看时间 = 总目标时间 - 剩余时间
|
|
|
- const watchedTime = this.videoDuration - this.pointsRemainingTime;
|
|
|
|
|
|
|
+ // const watchedTime = this.videoDuration - this.pointsRemainingTime;
|
|
|
|
|
|
|
|
// 5. 确保数值有效
|
|
// 5. 确保数值有效
|
|
|
if (watchedTime <= 0) {
|
|
if (watchedTime <= 0) {
|
|
@@ -1897,7 +1897,7 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 6. 计算百分比(已观看时间 / 目标时间)
|
|
// 6. 计算百分比(已观看时间 / 目标时间)
|
|
|
- const percentage = (watchedTime / this.videoDuration) * 100;
|
|
|
|
|
|
|
+ const percentage = (this.watchedTime / this.videoDuration) * 100;
|
|
|
|
|
|
|
|
// 7. 限制在 0-100 范围内
|
|
// 7. 限制在 0-100 范围内
|
|
|
return Math.min(100, Math.max(0, percentage));
|
|
return Math.min(100, Math.max(0, percentage));
|