Commit ab8f72a6 by sunerhu

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

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