|
@@ -101,7 +101,7 @@ export default defineComponent({
|
|
|
const id = mediaType.value === 'audio' ? '#audioSrc' : '#videoSrc'
|
|
|
_plrl.value = new Plyr(id, {
|
|
|
controls: ['play-large', 'play', 'progress'],
|
|
|
- fullscreen: {enabled: false}
|
|
|
+ fullscreen: { enabled: false },
|
|
|
})
|
|
|
isInitPlyr.value = true
|
|
|
})
|
|
@@ -178,7 +178,7 @@ export default defineComponent({
|
|
|
</Grid>
|
|
|
) : null}
|
|
|
<Grid class={styles.btns} style={{ alignItems: 'center', 'flex-wrap': 'nowrap' }}>
|
|
|
- {record.value?.videoFilePath && browserInfo.isStudent ? (
|
|
|
+ {record.value?.videoFilePath ? (
|
|
|
<GridItem
|
|
|
onClick={openAudioAndVideo}
|
|
|
vSlots={{
|
|
@@ -186,10 +186,7 @@ export default defineComponent({
|
|
|
text: () => <span>回放</span>,
|
|
|
}}
|
|
|
/>
|
|
|
- ) : // <PlayerPopup {...record.value} btnClass={'van-grid-item'} popupClass={detailStyles.popup}>
|
|
|
-
|
|
|
- // </PlayerPopup>
|
|
|
- null}
|
|
|
+ ) : null}
|
|
|
<GridItem
|
|
|
onClick={() => (visible.value = true)}
|
|
|
vSlots={{
|
|
@@ -317,9 +314,14 @@ export default defineComponent({
|
|
|
</Grid>
|
|
|
</Popup>
|
|
|
|
|
|
- <Popup teleport="body" v-model:show={videoShow.value} class={styles.videoContent} onClose={() => {
|
|
|
- _plrl.value?.pause()
|
|
|
- }}>
|
|
|
+ <Popup
|
|
|
+ teleport="body"
|
|
|
+ v-model:show={videoShow.value}
|
|
|
+ class={styles.videoContent}
|
|
|
+ onClose={() => {
|
|
|
+ _plrl.value?.pause()
|
|
|
+ }}
|
|
|
+ >
|
|
|
<div class={styles.close} onClick={() => (videoShow.value = false)}>
|
|
|
<img src={CloseIcon} />
|
|
|
</div>
|