JLBA202505130001_关于吉林银行新建AI智能培训系统的需求_fix: bug
This commit is contained in:
@@ -2,7 +2,11 @@
|
||||
<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"
|
||||
:header="{
|
||||
summary: token
|
||||
}"
|
||||
: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">
|
||||
@@ -98,6 +102,9 @@
|
||||
isBase() {
|
||||
return this.storageStore?.getIsBase
|
||||
},
|
||||
token() {
|
||||
return getToken()
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
fileId: {
|
||||
@@ -140,7 +147,7 @@
|
||||
}
|
||||
if (this.fileType === 'video') {
|
||||
if (newval.indexOf('http') === 0) {
|
||||
this.fileUrlShow = newval + '?tk=' + getToken()
|
||||
this.fileUrlShow = newval // + '?tk=' + getToken()
|
||||
} else {
|
||||
if (newval && this.watching) {
|
||||
this.getPreviewUrlBlob(newval);
|
||||
@@ -227,7 +234,7 @@
|
||||
if (this.fileId) {
|
||||
let _newDate = new Date().getTime()
|
||||
if (this.fileId.indexOf('http') === 0) {
|
||||
this.fileUrlShow = this.fileId + '?tk=' + getToken() + '&t=' + _newDate
|
||||
this.fileUrlShow = this.fileId // + '?tk=' + getToken() + '&t=' + _newDate
|
||||
} else {
|
||||
this.getPreviewUrlBlob(this.fileId);
|
||||
}
|
||||
@@ -257,7 +264,7 @@
|
||||
return
|
||||
}
|
||||
let _newDate = new Date().getTime()
|
||||
this.fileUrlShow = getPreviewFileUrl(this.fileId) + '?tk=' + getToken() + '&t=' + _newDate
|
||||
this.fileUrlShow = getPreviewFileUrl(this.fileId) // + '?tk=' + getToken() + '&t=' + _newDate
|
||||
// downloadFile(id).then(res=>{
|
||||
// this.fileUrlShow = res.tempFilePath
|
||||
// this.storageStore.setStorage('video', id, this.fileUrlShow)
|
||||
|
||||
Reference in New Issue
Block a user