Commit ab8f72a6 by sunerhu

1.修复退课可以重新点击

parent 2a857987
......@@ -136,6 +136,9 @@
uni.navigateTo({
url:`/pages/afterSaleDetail/afterSaleDetail?orderNo=${this.dropInfo.orderNo}&afterSalesFlag=3`
})
uni.$emit("radiobroadcast", {
type: 'drop'
});
}else{
uni.showToast({
title: res['message'],
......
......@@ -23,7 +23,7 @@
<!-- v-show="!sliceshare" -->
<view class="courseBannerBox" v-if="!sliceshare">
<template v-if="isRenderVideo">
<view>
<view >
<video id="myVideo" :src="courseInfo.filePathOss" :initial-time="videoPlaybackInfo.maxViewTime"
object-fit="contain" class="videoBox" :poster="courseInfo.fileFirstImage"
:title="courseInfo.fileTitle" @loadedmetadata="loadedmetadata" @play="playVideo" @pause="pause"
......@@ -566,7 +566,8 @@
z-index: 1;
.videoBox {
max-width: 100%;
// max-width: 100%;
width: 100vw;
height: 100%;
}
}
......
......@@ -78,17 +78,22 @@
})
}
},
mounted() {
this.userCourseInfo();
},
onLoad(option) {
console.log(option, 15215)
this.orderId = option.id;
console.log(this.orderId, 2222)
this.type = option.type;
this.commissionType = option.commissionType;
},
onShow() {
this.userCourseInfo();
uni.$on("radiobroadcast", res => {
console.log(res, 74120748)
this.type = res.type;
// 清除监听
uni.$off('radiobroadcast');
})
}
}
</script>
......
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