|
@@ -52,18 +52,21 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="more-btn" @click="goMore()"></div>
|
|
|
+ <!-- <div class="more-btn" @click="goMore()"></div> -->
|
|
|
+ <div class="more-btn" @click="showMore = true"></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<iframeView v-if="showIframe" :iframeData="iframeData" @close="closeIframe" />
|
|
|
+ <moreView v-if="showMore" @close="showMore = false" />
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
import iframeView from "./iframeView/index.vue";
|
|
|
+import moreView from "./iframeView/more.vue";
|
|
|
import "swiper/css/swiper.css";
|
|
|
import Swiper from "swiper";
|
|
|
import { reactive, ref, toRefs, onBeforeMount, onMounted, nextTick, watch } from "vue";
|
|
|
-import * as XLSX from "xlsx";
|
|
|
+// import * as XLSX from "xlsx";
|
|
|
const readFile = (e) => {
|
|
|
const files = e.target.files;
|
|
|
// 如果没有文件名
|
|
@@ -183,6 +186,7 @@ const currentData = ref(null); //当前展示的数据
|
|
|
const iframeData = ref(null); //查看模型数据
|
|
|
const showSwitch = ref(false);
|
|
|
const showIframe = ref(false);
|
|
|
+const showMore = ref(false);
|
|
|
const swiperOptions = {
|
|
|
loop: true, // 是否循环播放
|
|
|
loopedSlides: 6,
|
|
@@ -363,6 +367,19 @@ const goMore = () => {
|
|
|
};
|
|
|
onMounted(() => {
|
|
|
loadJosnData();
|
|
|
+
|
|
|
+ window.addEventListener(
|
|
|
+ "popstate",
|
|
|
+ function (e) {
|
|
|
+ self.location.reload();
|
|
|
+ },
|
|
|
+ false
|
|
|
+ );
|
|
|
+ var state = {
|
|
|
+ title: "",
|
|
|
+ url: "#",
|
|
|
+ };
|
|
|
+ window.history.replaceState(state, "", "#");
|
|
|
});
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
@@ -412,6 +429,7 @@ onMounted(() => {
|
|
|
font-size: 0.32rem;
|
|
|
height: 100%;
|
|
|
text-align: center;
|
|
|
+ line-height: .3733rem;
|
|
|
}
|
|
|
}
|
|
|
.bottom-controls {
|
|
@@ -533,6 +551,7 @@ onMounted(() => {
|
|
|
}
|
|
|
}
|
|
|
.swiper-dom {
|
|
|
+ height: 20vh;
|
|
|
width: 100%;
|
|
|
/* margin-top: 10px; */
|
|
|
margin-bottom: 2%;
|
|
@@ -550,7 +569,7 @@ onMounted(() => {
|
|
|
}
|
|
|
.swiper-dom {
|
|
|
margin-bottom: 2%;
|
|
|
- .item-box{
|
|
|
+ .item-box {
|
|
|
height: 20vh;
|
|
|
}
|
|
|
}
|
|
@@ -564,7 +583,7 @@ onMounted(() => {
|
|
|
.swiper-dom {
|
|
|
margin-bottom: 20px;
|
|
|
|
|
|
- .item-box{
|
|
|
+ .item-box {
|
|
|
height: 20vh;
|
|
|
}
|
|
|
}
|