JLBA202505130001_关于吉林银行新建AI智能培训系统的需求_fix: bug
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<uni-popup ref="PopupRef" class="popup" mask-background-color="rgba(0,0,0,.2)" @change="changeShow">
|
||||
<view class="overlay-box" @click="playEnded" v-if="fileType === 'video'">
|
||||
<video class="video-cont-center" :id="`video`+ fileId" ref="playerRef" v-if="showModel && fileUrlShow"
|
||||
:src="fileUrlShow+'&type=.mp4'" :controls="true" @error="playError" @ended="playEnded" object-fit="contain"></video>
|
||||
:src="fileUrlShow +'&type=.mp4'" :controls="true" @error="playError" @ended="playEnded" object-fit="contain"></video>
|
||||
</view>
|
||||
<view class="overlay-box" @click="playEnded" @touchmove.stop v-if="fileType === 'image'">
|
||||
<movable-area scale-area class="detail-movable">
|
||||
|
||||
@@ -473,29 +473,36 @@
|
||||
|
||||
const previewVideo = async (obj) => {
|
||||
const IsAndEnv = getPhoneEnvBool('AND');
|
||||
if (IsAndEnv) {
|
||||
storageStore.setShowPreviewDetail({
|
||||
status: true,
|
||||
fileType: 'video',
|
||||
fileId: '',
|
||||
isBase: false,
|
||||
fileSrc: obj.vidAddr
|
||||
})
|
||||
} else {
|
||||
common.loading('加载中');
|
||||
try {
|
||||
const _res = await downloadFile('', obj.vidAddr)
|
||||
storageStore.setShowPreviewDetail({
|
||||
status: true,
|
||||
fileType: 'video',
|
||||
fileId: '',
|
||||
isBase: _res.tempFilePath ? true : false,
|
||||
fileSrc: _res.tempFilePath || obj.vidAddr
|
||||
})
|
||||
} catch {} finally {
|
||||
common.hideLoading();
|
||||
}
|
||||
}
|
||||
storageStore.setShowPreviewDetail({
|
||||
status: true,
|
||||
fileType: 'video',
|
||||
fileId: '',
|
||||
isBase: false,
|
||||
fileSrc: obj.vidAddr
|
||||
})
|
||||
// if (IsAndEnv) {
|
||||
// storageStore.setShowPreviewDetail({
|
||||
// status: true,
|
||||
// fileType: 'video',
|
||||
// fileId: '',
|
||||
// isBase: false,
|
||||
// fileSrc: obj.vidAddr
|
||||
// })
|
||||
// } else {
|
||||
// common.loading('加载中');
|
||||
// try {
|
||||
// const _res = await downloadFile('', obj.vidAddr)
|
||||
// storageStore.setShowPreviewDetail({
|
||||
// status: true,
|
||||
// fileType: 'video',
|
||||
// fileId: '',
|
||||
// isBase: _res.tempFilePath ? true : false,
|
||||
// fileSrc: _res.tempFilePath || obj.vidAddr
|
||||
// })
|
||||
// } catch {} finally {
|
||||
// common.hideLoading();
|
||||
// }
|
||||
// }
|
||||
}
|
||||
const previewImage = (obj, arr = []) => {
|
||||
storageStore.setShowPreviewDetail({
|
||||
|
||||
Reference in New Issue
Block a user