|
@@ -15,8 +15,9 @@
|
|
|
class="bg"
|
|
|
autoplay
|
|
|
loop
|
|
|
+ playsinline
|
|
|
webkit-playsinline="true"
|
|
|
- playsinline="true"
|
|
|
+ x5-video-player-type="h5"
|
|
|
/>
|
|
|
<button
|
|
|
class="back"
|
|
@@ -66,7 +67,7 @@
|
|
|
}"
|
|
|
@click="activeTabIndex = 2"
|
|
|
>
|
|
|
- <span>图片</span>
|
|
|
+ <span>图片<template v-if="activeTabIndex === 2 && imageUrlList?.length && imageUrlList.length > 1">{{ activeSwiperItemIndex + 1 }}/{{ imageUrlList?.length }}</template></span>
|
|
|
</button>
|
|
|
</div>
|
|
|
|
|
@@ -91,8 +92,9 @@
|
|
|
class="bg"
|
|
|
autoplay
|
|
|
loop
|
|
|
+ playsinline
|
|
|
webkit-playsinline="true"
|
|
|
- playsinline="true"
|
|
|
+ x5-video-player-type="h5"
|
|
|
/>
|
|
|
<iframe
|
|
|
:src="`${prefix}/web-model/index.html#/relic-detail?model-path=${encodeURIComponent(item.filePath)}`"
|
|
@@ -127,12 +129,16 @@
|
|
|
autoplay
|
|
|
loop
|
|
|
webkit-playsinline="true"
|
|
|
- playsinline="true"
|
|
|
+ playsinline
|
|
|
+ x5-video-player-type="h5"
|
|
|
/>
|
|
|
<video
|
|
|
:src="`${prefix}${item.filePath}`"
|
|
|
controls
|
|
|
class="treasure-detail-video"
|
|
|
+ playsinline
|
|
|
+ webkit-playsinline="true"
|
|
|
+ x5-video-player-type="h5"
|
|
|
@play="onVideoPlay"
|
|
|
@ended="onVideoEnd"
|
|
|
@pause="onVideoPause"
|
|
@@ -166,7 +172,8 @@
|
|
|
autoplay
|
|
|
loop
|
|
|
webkit-playsinline="true"
|
|
|
- playsinline="true"
|
|
|
+ playsinline
|
|
|
+ x5-video-player-type="h5"
|
|
|
/>
|
|
|
<img
|
|
|
draggable="false"
|
|
@@ -190,9 +197,17 @@
|
|
|
</div> -->
|
|
|
</div>
|
|
|
<div class="main-info-wrap">
|
|
|
- 厂家:{{ rawData.value?.entity?.company || '-' }} 类型:{{ rawData.value?.entity?.type || '-' }}
|
|
|
+ <template v-if="rawData.value?.entity?.company">
|
|
|
+ 厂家:{{ rawData.value?.entity?.company }} 
|
|
|
+ </template>
|
|
|
+ <template v-if="rawData.value?.entity?.type">
|
|
|
+ 类型:{{ rawData.value?.entity?.type }}
|
|
|
+ </template>
|
|
|
</div>
|
|
|
- <p class="desc">
|
|
|
+ <p
|
|
|
+ v-if="rawData.value?.entity?.description"
|
|
|
+ class="desc"
|
|
|
+ >
|
|
|
简介:{{ rawData.value?.entity?.description }}
|
|
|
</p>
|
|
|
</div>
|
|
@@ -292,6 +307,8 @@ export default {
|
|
|
* tab bar
|
|
|
*/
|
|
|
const activeTabIndex = ref(0)
|
|
|
+ // 在后台,只有图片类型可以上传多个文件。
|
|
|
+ // 如果只上传了一个类型的文件,且不是“多张图片”,则隐藏tabbar。
|
|
|
const isShowTabbar = computed(() => {
|
|
|
let count = 0
|
|
|
if (modelUrlList.length > 0) {
|
|
@@ -303,7 +320,15 @@ export default {
|
|
|
if (imageUrlList.length > 0) {
|
|
|
count++
|
|
|
}
|
|
|
- return count >= 2
|
|
|
+ if (count >= 2) {
|
|
|
+ return true
|
|
|
+ } else {
|
|
|
+ if (imageUrlList.length > 1) {
|
|
|
+ return true
|
|
|
+ } else {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ }
|
|
|
})
|
|
|
|
|
|
/**
|
|
@@ -509,6 +534,12 @@ export default {
|
|
|
opacity: initial;
|
|
|
}
|
|
|
}
|
|
|
+ >button.image{
|
|
|
+ min-width: 90px;
|
|
|
+ width: fit-content;
|
|
|
+ padding-left: 5px;
|
|
|
+ padding-right: 5px;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
>.main-wrapper {
|