|
@@ -2,7 +2,7 @@
|
|
<template>
|
|
<template>
|
|
<div class="model-box" :class="{ isMobile }" v-if="metadata">
|
|
<div class="model-box" :class="{ isMobile }" v-if="metadata">
|
|
<div class="close-btn" @click="onClose"></div>
|
|
<div class="close-btn" @click="onClose"></div>
|
|
- <!-- <div class="control-bar" :class="{ bottom: isMobile && isFullscreen }" v-if="modelLoaded || info.modelType == 2">
|
|
|
|
|
|
+ <!-- <div class="control-bar" :class="{ bottom: isMobile && isFullscreen, bottomRight: info.modelType == 2 && isMobile }" v-if="modelLoaded || info.modelType == 2">
|
|
<template v-for="(i, index) in controls">
|
|
<template v-for="(i, index) in controls">
|
|
<div v-if="info.modelType == 1 || (info.modelType == 2 && i.name == 'fullScreen')" class="item" @click="onClickBar(i)" :style="`background-image:url(${i.url});`"></div>
|
|
<div v-if="info.modelType == 1 || (info.modelType == 2 && i.name == 'fullScreen')" class="item" @click="onClickBar(i)" :style="`background-image:url(${i.url});`"></div>
|
|
</template>
|
|
</template>
|
|
@@ -12,15 +12,15 @@
|
|
<!-- <div class="model-view"> -->
|
|
<!-- <div class="model-view"> -->
|
|
<!-- <div class="frame-box" :class="{ 'no-move': info.modelType == 2 }"> -->
|
|
<!-- <div class="frame-box" :class="{ 'no-move': info.modelType == 2 }"> -->
|
|
<div class="frame-box">
|
|
<div class="frame-box">
|
|
- <!-- <iframe id="ifr" :src="getIframeUrl()" frameborder="0"></iframe> -->
|
|
|
|
- <img :src="`./thumb/model/${info.thumb}`" alt="" />
|
|
|
|
|
|
+ <iframe id="ifr" :src="getIframeUrl()" frameborder="0"></iframe>
|
|
|
|
+ <!-- <img :src="`./thumb/model/${info.thumb}`" alt="" /> -->
|
|
</div>
|
|
</div>
|
|
- <!-- <div class="frame-box no-move"></div> -->
|
|
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
- <div class="model-text">
|
|
|
|
|
|
+ <!-- <div class="model-text">
|
|
<p class="title">{{ info.name }}</p>
|
|
<p class="title">{{ info.name }}</p>
|
|
<span class="desc">{{ info.desc }}</span>
|
|
<span class="desc">{{ info.desc }}</span>
|
|
- </div>
|
|
|
|
|
|
+ </div> -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -71,7 +71,7 @@ export default {
|
|
if (this.info.modelType == 1) {
|
|
if (this.info.modelType == 1) {
|
|
url = `/html/model.html?m=${encodeURIComponent(this.info.fileName)}`;
|
|
url = `/html/model.html?m=${encodeURIComponent(this.info.fileName)}`;
|
|
} else {
|
|
} else {
|
|
- url = `https://rjbwg.4dage.com/museum/musum/index.html?id=4`;
|
|
|
|
|
|
+ url = this.info.fileName;
|
|
}
|
|
}
|
|
return url;
|
|
return url;
|
|
},
|
|
},
|
|
@@ -172,6 +172,7 @@ export default {
|
|
right: 40px;
|
|
right: 40px;
|
|
bottom: 100px;
|
|
bottom: 100px;
|
|
z-index: 101;
|
|
z-index: 101;
|
|
|
|
+
|
|
.item {
|
|
.item {
|
|
width: 32px;
|
|
width: 32px;
|
|
height: 32px;
|
|
height: 32px;
|
|
@@ -202,10 +203,16 @@ export default {
|
|
align-items: center;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
justify-content: flex-start;
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
|
|
+ // width: 100%;
|
|
|
|
+ // height: 70%;
|
|
|
|
+
|
|
width: 100%;
|
|
width: 100%;
|
|
- height: 70%;
|
|
|
|
|
|
+ height: 100%;
|
|
|
|
+ position: fixed;
|
|
|
|
+ z-index: 1;
|
|
.frame-box {
|
|
.frame-box {
|
|
- width: 50%;
|
|
|
|
|
|
+ // width: 50%;
|
|
|
|
+ width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
@@ -243,6 +250,16 @@ export default {
|
|
}
|
|
}
|
|
.model-text {
|
|
.model-text {
|
|
padding: 0 25%;
|
|
padding: 0 25%;
|
|
|
|
+ height: 30%;
|
|
|
|
+ overflow-y: auto;
|
|
|
|
+ &::-webkit-scrollbar-thumb {
|
|
|
|
+ background-color: #e5c4a8;
|
|
|
|
+ outline: none;
|
|
|
|
+ }
|
|
|
|
+ &::-webkit-scrollbar {
|
|
|
|
+ width: 4px;
|
|
|
|
+ height: 4px;
|
|
|
|
+ }
|
|
.title {
|
|
.title {
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
font-size: 24px;
|
|
font-size: 24px;
|
|
@@ -279,6 +296,11 @@ export default {
|
|
&.bottom {
|
|
&.bottom {
|
|
bottom: 0.5333rem;
|
|
bottom: 0.5333rem;
|
|
}
|
|
}
|
|
|
|
+ &.bottomRight {
|
|
|
|
+ left: auto;
|
|
|
|
+ right: 0;
|
|
|
|
+ width: auto;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
.model-content {
|
|
.model-content {
|
|
width: 100%;
|
|
width: 100%;
|