|
@@ -104,19 +104,19 @@ export default {
|
|
|
topItemImage() {
|
|
|
if (this.choosenExhibition?.video?.length) {
|
|
|
return {
|
|
|
- src: `${location.origin}/${this.$publicPath}exhibition-data/${this.$route.query.exhibitionId}/${this.choosenExhibition.video[0].cover}`,
|
|
|
+ src: `${this.$backEndBaseUrl}exhibition-data/${this.$route.query.exhibitionId}/${this.choosenExhibition.video[0].cover}`,
|
|
|
type: 'video',
|
|
|
videoSrc: this.choosenExhibition.video[0].video,
|
|
|
}
|
|
|
} else if (this.choosenExhibition?.link?.length) {
|
|
|
return {
|
|
|
- src: `${location.origin}/${this.$publicPath}exhibition-data/${this.$route.query.exhibitionId}/${this.choosenExhibition.link[0].cover}`,
|
|
|
+ src: `${this.$backEndBaseUrl}exhibition-data/${this.$route.query.exhibitionId}/${this.choosenExhibition.link[0].cover}`,
|
|
|
type: 'link',
|
|
|
linkSrc: this.choosenExhibition.link[0].link,
|
|
|
}
|
|
|
} else if (this.choosenExhibition.imageNumber !== 0) {
|
|
|
return {
|
|
|
- src: `${location.origin}/${this.$publicPath}exhibition-data/${this.$route.query.exhibitionId}/1.jpg`,
|
|
|
+ src: `${this.$backEndBaseUrl}exhibition-data/${this.$route.query.exhibitionId}/1.jpg`,
|
|
|
type: 'image',
|
|
|
}
|
|
|
} else {
|
|
@@ -125,7 +125,7 @@ export default {
|
|
|
},
|
|
|
topItemVideoSrc() {
|
|
|
if (this.choosenExhibition?.video?.length) {
|
|
|
- return `${location.origin}/${this.$publicPath}exhibition-data/${this.$route.query.exhibitionId}/${this.choosenExhibition.video[0].video}`
|
|
|
+ return `${this.$backEndBaseUrl}exhibition-data/${this.$route.query.exhibitionId}/${this.choosenExhibition.video[0].video}`
|
|
|
} else {
|
|
|
return null
|
|
|
}
|
|
@@ -134,21 +134,21 @@ export default {
|
|
|
let ret = []
|
|
|
for (const iterator of this.choosenExhibition.video || []) {
|
|
|
ret.push({
|
|
|
- src: `${location.origin}/${this.$publicPath}exhibition-data/${this.$route.query.exhibitionId}/${iterator.cover}`,
|
|
|
+ src: `${this.$backEndBaseUrl}exhibition-data/${this.$route.query.exhibitionId}/${iterator.cover}`,
|
|
|
type: 'video',
|
|
|
videoSrc: iterator.video
|
|
|
})
|
|
|
}
|
|
|
for (const iterator of this.choosenExhibition.link || []) {
|
|
|
ret.push({
|
|
|
- src: `${location.origin}/${this.$publicPath}exhibition-data/${this.$route.query.exhibitionId}/${iterator.cover}`,
|
|
|
+ src: `${this.$backEndBaseUrl}exhibition-data/${this.$route.query.exhibitionId}/${iterator.cover}`,
|
|
|
type: 'link',
|
|
|
videoSrc: iterator.link
|
|
|
})
|
|
|
}
|
|
|
for (let index = 0; index < this.choosenExhibition.imageNumber; index++) {
|
|
|
ret.push({
|
|
|
- src: `${location.origin}/${this.$publicPath}exhibition-data/${this.$route.query.exhibitionId}/${index + 1}.jpg`,
|
|
|
+ src: `${this.$backEndBaseUrl}exhibition-data/${this.$route.query.exhibitionId}/${index + 1}.jpg`,
|
|
|
type: 'image',
|
|
|
})
|
|
|
}
|
|
@@ -172,7 +172,7 @@ export default {
|
|
|
onClickExhibitionImage(e, { index, value }) {
|
|
|
if (value.type === 'video') {
|
|
|
this.showMask = true
|
|
|
- this.videoSrc = `${location.origin}/${this.$publicPath}exhibition-data/${this.$route.query.exhibitionId}/${value.videoSrc}`
|
|
|
+ this.videoSrc = `${this.$backEndBaseUrl}exhibition-data/${this.$route.query.exhibitionId}/${value.videoSrc}`
|
|
|
} else if (value.type === 'link') {
|
|
|
this.showIframe = true
|
|
|
} else if (value.type === 'image') {
|