Commit 09d402fe by lijiabin

【线上优化】 feat: QA碎片观看视频一半其他观看30min

parent a216a22a
......@@ -465,8 +465,12 @@ const handleSeeked = (event: Event) => {
const handleLoadedMetadata = () => {
if (videoRef.value && showRewardToastComp.value) {
// 四舍五入
rewardVideoLimitDuration.value = Math.round(videoRef.value.duration / 2)
// 如果是QA碎片的话 是观看视频的一半 其他视频改成半个小时
if (rewardVideoType.value === SpecificVideoRewardEnum.QA_CHIP) {
rewardVideoLimitDuration.value = Math.round(videoRef.value.duration / 2)
} else {
rewardVideoLimitDuration.value = 1800
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment