chenlei il y a 6 mois
Parent
commit
7f35425ebf
38 fichiers modifiés avec 1172 ajouts et 1 suppressions
  1. 2 0
      package.json
  2. BIN
      public/images/thxz/1-1.png
  3. BIN
      public/images/thxz/1.png
  4. BIN
      public/images/thxz/10-1.png
  5. BIN
      public/images/thxz/10.png
  6. BIN
      public/images/thxz/2-2.png
  7. BIN
      public/images/thxz/2.png
  8. BIN
      public/images/thxz/3.png
  9. BIN
      public/images/thxz/4.png
  10. BIN
      public/images/thxz/5.png
  11. BIN
      public/images/thxz/6.png
  12. BIN
      public/images/thxz/8.png
  13. BIN
      public/images/thxz/9.png
  14. BIN
      public/images/thxz/btn_off.png
  15. BIN
      public/images/thxz/btn_on.png
  16. BIN
      public/images/thxz/close.png
  17. BIN
      public/images/thxz/hotlist_bg.png
  18. BIN
      src/hotspot/assets/images/thxz/hot_bg.png
  19. 171 0
      src/hotspot/views/hotspot/index.thxz.scss
  20. 285 0
      src/hotspot/views/hotspot/index.thxz.vue
  21. 21 0
      src/index/router/index.thxz.ts
  22. BIN
      src/index/views/cover/images/bg.png
  23. BIN
      src/index/views/cover/images/button.png
  24. BIN
      src/index/views/cover/images/mobile/bg.png
  25. BIN
      src/index/views/cover/images/mobile/button-min.png
  26. BIN
      src/index/views/cover/images/mobile/title-min.png
  27. BIN
      src/index/views/cover/images/mobile/title_2-min.png
  28. BIN
      src/index/views/cover/images/title.png
  29. BIN
      src/index/views/cover/images/title_2.png
  30. 72 0
      src/index/views/cover/index.vue
  31. 164 0
      src/index/views/home/components/hot-spot-list/index.thxz.scss
  32. 23 0
      src/index/views/home/components/hot-spot-list/index.thxz.tsx
  33. 143 0
      src/index/views/home/components/menu/index.thxz.scss
  34. 128 0
      src/index/views/home/components/menu/index.thxz.tsx
  35. 55 0
      src/index/views/home/components/popup/index.thxz.scss
  36. 14 0
      src/index/views/home/components/popup/index.thxz.tsx
  37. 1 1
      src/index/views/home/components/share-popup/index.vue
  38. 93 0
      src/index/views/home/index.thxz.tsx

+ 2 - 0
package.json

@@ -7,6 +7,8 @@
     "serve": "cross-env VITE_APP_TITLE=大理洱海科普馆 VITE_APP_HOT_DOMAIN=./hotspot.html vite",
     "build:test": "cross-env VITE_APP_TITLE=大理洱海科普馆 run-p type-check \"build-only {@}\" --",
     "push:test": "cross-env node ./scripts/publish.js",
+    "serve:thxz": "cross-env VITE_APP_SCENE=thxz VITE_APP_TITLE=探海寻踪 VITE_APP_HOT_DOMAIN=./hotspot.html vite",
+    "build:thxz:test": "cross-env VITE_APP_SCENE=thxz VITE_APP_TITLE=探海寻踪 VITE_APP_HOT_DOMAIN=./hotspot.html run-p type-check \"build-only {@}\" --",
     "preview": "vite preview",
     "build-only": "vite build",
     "type-check": "vue-tsc --build --force"

BIN
public/images/thxz/1-1.png


BIN
public/images/thxz/1.png


BIN
public/images/thxz/10-1.png


BIN
public/images/thxz/10.png


BIN
public/images/thxz/2-2.png


BIN
public/images/thxz/2.png


BIN
public/images/thxz/3.png


BIN
public/images/thxz/4.png


BIN
public/images/thxz/5.png


BIN
public/images/thxz/6.png


BIN
public/images/thxz/8.png


BIN
public/images/thxz/9.png


BIN
public/images/thxz/btn_off.png


BIN
public/images/thxz/btn_on.png


BIN
public/images/thxz/close.png


BIN
public/images/thxz/hotlist_bg.png


BIN
src/hotspot/assets/images/thxz/hot_bg.png


+ 171 - 0
src/hotspot/views/hotspot/index.thxz.scss

@@ -0,0 +1,171 @@
+.hotspot-page {
+  position: fixed;
+  top: 0;
+  left: 0;
+  right: 0;
+  bottom: 0;
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  justify-content: center;
+  padding: 35px 0;
+  background: url('@hotspot/assets/images/thxz/hot_bg.png') no-repeat center / cover;
+  z-index: var(--z-index-popper);
+
+  .el-scrollbar {
+    width: 100%;
+    padding: 0 60px;
+  }
+  h3 {
+    font-size: 24px;
+    color: #4b7284;
+    text-align: center;
+    font-family: 'Source Han Sans CN-Bold';
+  }
+  .audioIcon {
+    img {
+      width: 57px;
+      height: 57px;
+      cursor: pointer;
+    }
+  }
+  &-info {
+    color: #4b7284;
+    font-size: 18px;
+    line-height: 30px;
+    text-indent: 2em;
+  }
+
+  &-container {
+    position: relative;
+    height: 480px;
+    display: flex;
+    flex-direction: column;
+    align-items: center;
+    padding: 60px 0;
+    box-sizing: border-box;
+  }
+
+  &-swiper {
+    &__left,
+    &__right {
+      position: absolute;
+      top: 50%;
+      width: 25px;
+      height: 24px;
+      cursor: pointer;
+      transform: translateY(-50%);
+      z-index: 1;
+    }
+    &__left {
+      left: 0;
+      background: url('@hotspot/assets/images/icon-previous@2x-min.png') no-repeat center / contain;
+    }
+    &__right {
+      right: 0;
+      background: url('@hotspot/assets/images/icon-next@2x-min.png') no-repeat center / contain;
+    }
+  }
+  &-model {
+    width: 100%;
+    height: 100%;
+
+    iframe {
+      width: 100%;
+      height: 100%;
+    }
+  }
+  .swiper-slide {
+    display: flex;
+    align-items: center;
+    justify-content: center;
+  }
+  &-video {
+    height: 100%;
+    max-height: 100%;
+  }
+  &-img {
+    display: flex;
+    align-items: center;
+    justify-content: center;
+    height: inherit;
+
+    &-swiper {
+      flex: 1;
+      width: 100%;
+      height: 0;
+    }
+  }
+
+  &-nav {
+    position: absolute;
+    left: 50%;
+    bottom: 5px;
+    display: flex;
+    align-items: center;
+    gap: 10px;
+    transform: translateX(-50%);
+
+    &__item {
+      display: flex;
+      align-items: center;
+      justify-content: center;
+      gap: 9px;
+      width: 57px;
+      height: 57px;
+      box-sizing: border-box;
+      cursor: pointer;
+
+      &.active {
+      }
+      img {
+        width: 100%;
+        height: 100%;
+      }
+    }
+  }
+}
+
+@media only screen and (max-width: 600px) {
+  .hotspot-page {
+    .el-scrollbar {
+      padding: 0 30px;
+    }
+    &-container {
+      padding-top: 30px;
+      width: 100%;
+      height: 450px;
+    }
+    &-swiper {
+      &__left,
+      &__right {
+        top: unset;
+        bottom: 12px;
+        transform: none;
+      }
+      &__left {
+        left: 14px;
+      }
+      &__right {
+        right: 14px;
+      }
+    }
+    &-nav {
+      bottom: 5px;
+
+      &__item {
+        width: 48px;
+        height: 48px;
+      }
+    }
+    .audioIcon {
+      right: 35px;
+      bottom: 1px;
+
+      img {
+        width: 48px;
+        height: 48px;
+      }
+    }
+  }
+}

+ 285 - 0
src/hotspot/views/hotspot/index.thxz.vue

@@ -0,0 +1,285 @@
+<template>
+  <div class="hotspot-page">
+    <el-scrollbar>
+      <h3>{{ myTitle }}</h3>
+
+      <div v-if="myType !== 'text'" class="hotspot-page-container">
+        <!-- 音频播放器 -->
+        <audio
+          id="myAudio"
+          v-if="audio"
+          ref="volumeRef"
+          v-show="isOneAduio"
+          :src="audio"
+          controls
+        ></audio>
+
+        <!-- 模型页面 -->
+        <Swiper
+          v-if="myType === 'model'"
+          class="hotspot-page-swiper hotspot-page-model"
+          @swiper="initSwiper"
+          @slideChange="handleChange"
+        >
+          <SwiperSlide v-for="(item, index) in curList" :key="item.url">
+            <iframe v-if="index === myInd" :src="item" frameborder="0" />
+          </SwiperSlide>
+        </Swiper>
+
+        <!-- 视频页面 -->
+        <div v-if="myType === 'video'" class="hotspot-page-swiper hotspot-page-video">
+          <template v-for="(item, index) in curList" :key="item.url">
+            <video
+              v-if="index === myInd"
+              id="videoID"
+              class="hotspot-page-video"
+              controls
+              :src="item.url"
+              autoplay
+            />
+          </template>
+        </div>
+
+        <!-- 图片页面 -->
+        <Swiper
+          v-if="myType === 'img'"
+          class="hotspot-page-swiper hotspot-page-img-swiper"
+          @swiper="initSwiper"
+          @slideChange="handleChange"
+        >
+          <SwiperSlide v-for="(item, idx) in curList" :key="item">
+            <div class="hotspot-page-img">
+              <el-image
+                :src="item"
+                fit="contain"
+                style="width: 100%; height: 100%"
+                preview-teleported
+                :preview-src-list="curList"
+                :initial-index="idx"
+              />
+            </div>
+          </SwiperSlide>
+        </Swiper>
+
+        <template v-if="curList.length > 1">
+          <div class="hotspot-page-swiper__left" @click="handlePre" />
+          <div class="hotspot-page-swiper__right" @click="handleNext" />
+        </template>
+
+        <!-- 底部的tab -->
+        <div class="hotspot-page-nav">
+          <template v-if="flooTab.length > 1">
+            <div
+              v-for="item in flooTab"
+              :key="item.id"
+              :class="[
+                'hotspot-page-nav__item',
+                {
+                  active: myType === item.type,
+                },
+              ]"
+              @click="handleTab(item)"
+            >
+              <img
+                :class="`${item.type}-icon`"
+                :src="myType === item.type ? item.acIcon : item.icon"
+              />
+              <!-- {{ item.name }}
+          {{ item.type === 'img' ? `${myInd + 1}/${data.img.length}` : '' }} -->
+            </div>
+          </template>
+
+          <!-- 音频图标 -->
+          <div
+            v-if="audio && !isOneAduio"
+            class="audioIcon"
+            :title="audioSta ? '关闭音频' : '打开音频'"
+            @click="audioSta = !audioSta"
+          >
+            <img :src="audioSta ? VolumeOff : VolumeOn" alt="" />
+          </div>
+        </div>
+      </div>
+
+      <div class="hotspot-page-info">
+        <p>{{ myTxt }}</p>
+      </div>
+    </el-scrollbar>
+  </div>
+</template>
+
+<script>
+  import { Swiper, SwiperSlide } from 'swiper/vue';
+  import 'swiper/css';
+  import { parseUrlParams } from '@/utils';
+
+  import ModelIcon from '@hotspot/assets/images/icon-model@2x.png';
+  import AcModelIcon from '@hotspot/assets/images/icon-model-1@2x.png';
+  import ImageIcon from '@hotspot/assets/images/icon-image@2x.png';
+  import AcImageIcon from '@hotspot/assets/images/icon-image-1@2x.png';
+  import VideoIcon from '@hotspot/assets/images/icon-video@2x.png';
+  import AcVideoIcon from '@hotspot/assets/images/icon-video-1@2x.png';
+  import VolumeOn from '@hotspot/assets/images/Volume-on.png';
+  import VolumeOff from '@hotspot/assets/images/Volume-off.png';
+
+  const urlParams = parseUrlParams(window.location.href);
+
+  export default {
+    name: 'hotspot',
+    components: {
+      Swiper,
+      SwiperSlide,
+    },
+    data() {
+      return {
+        VolumeOn,
+        VolumeOff,
+        m: urlParams.m,
+        id: urlParams.id,
+        // 音频地址
+        audio: '',
+        // 如果只有单独的音频
+        isOneAduio: false,
+        // 音频状态
+        audioSta: false,
+
+        data: {
+          // 模型数组
+          model: [],
+          // 视频数组
+          video: [],
+          // 图片数组
+          img: [],
+        },
+        // 当前 type
+        myType: '',
+
+        // 当前索引
+        myInd: 0,
+
+        // 底部的tab
+        flooTab: [],
+
+        // 标题
+        myTitle: '',
+        // 内容
+        myTxt: '',
+        // 视频内容
+        videoTxt: [],
+        imgTxt: [],
+
+        // 只有标题和文字(没有视频,没有模型,没有图片)
+        oneTxt: false,
+      };
+    },
+    computed: {
+      curList() {
+        return this.data[this.myType] || [];
+      },
+    },
+    watch: {
+      audioSta(val) {
+        if (val) {
+          this.$refs.volumeRef.play();
+          this.$refs.volumeRef.onended = () => {
+            // console.log("----音频播放完毕");
+            this.audioSta = false;
+          };
+        } else this.$refs.volumeRef.pause();
+      },
+    },
+    mounted() {
+      this.getData();
+    },
+    methods: {
+      async getData() {
+        // https://www.4dmodel.com/
+        let url = `https://super.4dage.com/data/${this.id}/hot/js/data.js?time=${Math.random()}`;
+        let result = await fetch(url).then((response) => response.json());
+        const resData = result[this.m];
+        console.log('----', resData);
+        if (resData) {
+          this.audio = resData.backgroundMusic;
+          // 只有单独的音频上传
+          if (resData.backgroundMusic && !resData.model && !resData.video && !resData.images) {
+            this.isOneAduio = true;
+          }
+          // 底部的tab
+          const arr = [];
+          const obj = {};
+          if (resData.model) {
+            obj.model = resData.model;
+            arr.push({ id: 1, type: 'model', name: '模型', icon: ModelIcon, acIcon: AcModelIcon });
+          }
+          if (resData.video) {
+            obj.video = resData.video;
+            arr.push({ id: 2, type: 'video', name: '视频', icon: VideoIcon, acIcon: AcVideoIcon });
+          } else {
+            this.$nextTick(() => {
+              if (
+                !window.navigator.userAgent.match(
+                  /(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
+                )
+              ) {
+                this.audioSta = true;
+                this.$refs.volumeRef.play();
+              }
+            });
+          }
+          if (resData.images) {
+            obj.img = resData.images;
+            arr.push({ id: 3, type: 'img', name: '图片', icon: ImageIcon, acIcon: AcImageIcon });
+          }
+          this.flooTab = arr;
+          this.data = obj;
+
+          // 当前type的值 应该为
+          if (resData.model) this.myType = 'model';
+          else if (resData.video) this.myType = 'video';
+          else if (resData.images) this.myType = 'img';
+          else this.myType = 'text';
+
+          this.myTitle = resData.title || '';
+          this.myTxt = resData.content || '';
+          this.videoTxt = resData.videosDesc || [];
+          this.imgTxt = resData.imagesDesc || [];
+
+          // 只有 标题和 文字介绍(没有视频,没有模型,没有图片)
+          if (!obj.model && !obj.video && !obj.img && !resData.backgroundMusic) {
+            this.oneTxt = true;
+          }
+        }
+      },
+
+      handleTab(item) {
+        this.myInd = 0;
+        this.myType = item.type;
+      },
+
+      initSwiper(swiper) {
+        this.swiper = swiper;
+      },
+      handleChange({ activeIndex }) {
+        this.myInd = activeIndex;
+      },
+      handlePre() {
+        if (this.myType === 'video') {
+          this.myInd = this.myInd > 0 ? this.myInd - 1 : this.curList.length - 1;
+        } else {
+          this.swiper?.slidePrev();
+        }
+      },
+      handleNext() {
+        if (this.myType === 'video') {
+          this.myInd = this.myInd < this.curList.length - 1 ? this.myInd + 1 : 0;
+        } else {
+          this.swiper?.slideNext();
+        }
+      },
+    },
+  };
+</script>
+
+<style lang="scss">
+  @use './index.thxz.scss';
+</style>

+ 21 - 0
src/index/router/index.thxz.ts

@@ -0,0 +1,21 @@
+import { createRouter, createWebHashHistory, type RouteRecordRaw } from 'vue-router';
+
+const routes: Array<RouteRecordRaw> = [
+  {
+    path: '/',
+    name: 'cover',
+    component: () => import('@/views/cover/index.vue'),
+  },
+  {
+    path: '/home',
+    name: 'home',
+    component: () => import('@/views/home'),
+  },
+];
+
+const router = createRouter({
+  history: createWebHashHistory(import.meta.env.BASE_URL),
+  routes,
+});
+
+export default router;

BIN
src/index/views/cover/images/bg.png


BIN
src/index/views/cover/images/button.png


BIN
src/index/views/cover/images/mobile/bg.png


BIN
src/index/views/cover/images/mobile/button-min.png


BIN
src/index/views/cover/images/mobile/title-min.png


BIN
src/index/views/cover/images/mobile/title_2-min.png


BIN
src/index/views/cover/images/title.png


BIN
src/index/views/cover/images/title_2.png


+ 72 - 0
src/index/views/cover/index.vue

@@ -0,0 +1,72 @@
+<template>
+  <div class="cover">
+    <div />
+    <div />
+    <div @click="$router.push({ name: 'home' })" />
+  </div>
+</template>
+
+<style lang="scss" scoped>
+  @use '@/assets/utils.scss';
+
+  .cover {
+    position: relative;
+    display: flex;
+    flex-direction: column;
+    align-items: center;
+    justify-content: center;
+    height: 100vh;
+    background: url('./images/bg.png') no-repeat center bottom / cover;
+
+    div:first-child {
+      width: utils.vh-calc(1274);
+      height: utils.vh-calc(149);
+      background: url('./images/title.png') no-repeat center / cover;
+    }
+    div:nth-child(2) {
+      margin: utils.vh-calc(70) 0 utils.vh-calc(300);
+      width: utils.vh-calc(969);
+      height: utils.vh-calc(150);
+      background: url('./images/title_2.png') no-repeat center / cover;
+    }
+    div:last-child {
+      width: utils.vh-calc(240);
+      height: utils.vh-calc(56);
+      background: url('./images/button.png') no-repeat center / cover;
+      cursor: pointer;
+    }
+  }
+
+  @media only screen and (max-width: 600px) {
+    .cover {
+      background-image: url('./images/mobile/bg.png');
+
+      div:first-child {
+        position: absolute;
+        top: utils.vh-calc(229);
+        left: utils.vh-calc(155);
+        width: utils.vh-calc(286);
+        height: utils.vh-calc(645);
+        background-image: url('./images/mobile/title-min.png');
+      }
+      div:nth-child(2) {
+        position: absolute;
+        top: utils.vh-calc(170);
+        right: utils.vh-calc(206);
+        margin: 0;
+        width: utils.vh-calc(60);
+        height: utils.vh-calc(827);
+        background-image: url('./images/mobile/title_2-min.png');
+      }
+      div:last-child {
+        position: absolute;
+        left: 50%;
+        bottom: utils.vh-calc(176);
+        width: utils.vh-calc(400);
+        height: utils.vh-calc(90);
+        transform: translateX(-50%);
+        background-image: url('./images/mobile/button-min.png');
+      }
+    }
+  }
+</style>

+ 164 - 0
src/index/views/home/components/hot-spot-list/index.thxz.scss

@@ -0,0 +1,164 @@
+#hotListWrap {
+  display: flex;
+  flex-direction: column;
+  position: absolute;
+  top: 0;
+  right: -400px;
+  width: 356px;
+  height: 100%;
+  transition: right 0.4s, width 0.5s;
+  z-index: var(--z-index-popper);
+  background: url('/images/thxz/hotlist_bg.png') no-repeat center top / cover;
+}
+
+.hotListActive {
+  right: 0 !important;
+}
+
+#hotListTitle {
+  position: relative;
+  width: 100%;
+  height: 15%;
+  display: flex;
+  flex-direction: column;
+  justify-content: center;
+  text-align: center;
+}
+
+#hotListContent {
+  width: 100%;
+  /* opacity: 0.65; */
+  flex-grow: 1;
+  height: 100%;
+  overflow-y: scroll;
+  overflow-x: hidden;
+}
+
+#hotListBottom {
+  position: relative;
+  height: 20%;
+}
+
+#hotListClose {
+  position: absolute;
+  width: 36px;
+  left: 50%;
+  bottom: 30px;
+  transform: translateX(-50%);
+  cursor: pointer;
+}
+
+#hotListContent ul {
+  padding: 40px 30px;
+  font-size: 18px;
+  letter-spacing: 3px;
+}
+
+#hotListContent ul li {
+  height: 68px;
+  line-height: 68px;
+  text-align: center;
+  color: #4b7284;
+  padding: 0 25px;
+  transition: color 0.3s, background 0.6s;
+  border-radius: 10px;
+  overflow: hidden;
+  white-space: nowrap;
+  text-overflow: ellipsis;
+}
+
+#hotListContent ul li:hover {
+  opacity: 0.8;
+}
+
+#hotListContent ul li.active {
+  background: #f3f5f9;
+}
+
+#hotListText {
+  font-size: 24px;
+  letter-spacing: 2px;
+  color: #4b7284;
+  font-weight: bold;
+}
+
+#hotListIcon {
+  width: 34px;
+  margin-left: 48px;
+}
+
+#hotListContent::-webkit-scrollbar {
+  width: 6px;
+}
+
+#hotListContent::-webkit-scrollbar-thumb {
+  border-radius: 10px;
+  background-color: #979cab;
+}
+
+#hotListContent::-webkit-scrollbar-track {
+  border-radius: 10px;
+}
+
+@media only screen and (max-width: 910px) {
+  #hotListWrap {
+    top: -500px;
+    right: 0;
+    width: 100%;
+    height: 450px;
+    transition: top 0.4s, width 0.5s;
+  }
+  .hotListActive {
+    top: 0 !important;
+  }
+
+  #hotListTitle {
+    height: 30%;
+    position: relative;
+  }
+  #hotListText {
+    font-size: 20px;
+    letter-spacing: 3px;
+    font-weight: 100;
+    position: absolute;
+    top: 50%;
+    left: 50%;
+    transform: translate(-50%, -50%);
+  }
+  #hotListIcon {
+    width: 24px;
+    margin-left: 26px;
+    position: absolute;
+    top: 50%;
+    left: 50%;
+    transform: translate(165%, -50%);
+  }
+  #hotListContent ul li {
+    text-align: center;
+    height: 50px;
+    line-height: 50px;
+    font-family: 'Source Han Sans CN-Regular';
+  }
+  #hotListContent ul {
+    padding: 0 30px;
+    font-size: 16px;
+  }
+  #hotListBottom {
+    display: none;
+    height: 15%;
+    /* background: rgba(34, 36, 37,0.9); */
+    background: none;
+    display: flex;
+    justify-content: center;
+    align-items: center;
+  }
+  #hotListClose {
+    display: none;
+    position: initial;
+    width: 18px;
+  }
+  #hotListContent ul li.active {
+    color: white;
+    background: none;
+  }
+}

+ 23 - 0
src/index/views/home/components/hot-spot-list/index.thxz.tsx

@@ -0,0 +1,23 @@
+import { defineComponent } from 'vue';
+import './index.thxz.scss';
+
+export default defineComponent({
+  name: 'HomeHotSpotList',
+  render() {
+    return (
+      <div id="hotListWrap">
+        <div id="hotListTitle">
+          <div>
+            <span id="hotListText">热点列表</span>
+          </div>
+        </div>
+        <div id="hotListContent">
+          <ul></ul>
+        </div>
+        <div id="hotListBottom">
+          <img id="hotListClose" src="/images/thxz/close.png" alt="" />
+        </div>
+      </div>
+    );
+  },
+});

+ 143 - 0
src/index/views/home/components/menu/index.thxz.scss

@@ -0,0 +1,143 @@
+.pinBottom-container {
+  position: absolute;
+  bottom: 10px;
+  width: 100%;
+  transition: all 0.5s;
+  z-index: var(--z-index-top);
+
+  &.open {
+    bottom: 140px;
+
+    &.playing {
+      bottom: 160px;
+    }
+    &.noScroll {
+      bottom: 120px;
+
+      &.playing {
+        bottom: 140px;
+      }
+    }
+  }
+  &.playing:not(.open) {
+    bottom: 30px;
+  }
+}
+
+.pinBottom {
+  position: absolute;
+  bottom: 0;
+  display: flex;
+  gap: 35px;
+  transition: all 0.5s;
+
+  &.left {
+    left: 15px;
+    bottom: 0;
+    overflow: hidden;
+  }
+  &.right {
+    right: 15px;
+    bottom: 0;
+    text-shadow: 0 0 1px rgba(0, 0, 0, 0.6);
+  }
+  > div,
+  > div a {
+    display: flex;
+    gap: 2px;
+    flex-direction: column;
+    align-items: center;
+    justify-content: center;
+    cursor: pointer;
+
+    &.active,
+    &:hover,
+    &.opened {
+      color: #546c78;
+    }
+    img {
+      width: 42px;
+      height: 42px;
+    }
+  }
+}
+
+#volume > a,
+#gui-fullscreen > a,
+#gui-fullscreen-exit > a {
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  width: 100%;
+  height: 100%;
+}
+
+#gui-fullscreen,
+#gui-fullscreen-exit {
+  .icon::before {
+    content: '';
+    display: block;
+    width: 42px;
+    height: 42px;
+    background-size: 100%;
+  }
+}
+
+.icon-fullscreen::before {
+  background: url('/images/thxz/10.png') center top no-repeat;
+}
+
+.icon-fullscreen-exit::before {
+  background: url('/images/thxz/10-1.png') center top no-repeat;
+}
+
+@media only screen and (max-width: 600px) {
+  .pinBottom-container {
+    bottom: 10px;
+
+    &.open {
+      bottom: 110px;
+
+      &.noScroll {
+        bottom: 100px;
+
+        &.playing {
+          bottom: 120px;
+        }
+      }
+    }
+    &.playing:not(.open) {
+      bottom: 30px;
+    }
+  }
+  .pinBottom {
+    display: flex;
+    font-size: 12px;
+
+    &.left,
+    &.right {
+      flex-direction: column;
+      gap: 25px;
+    }
+    &.left {
+      left: 10px;
+    }
+    &.right {
+      right: 10px;
+    }
+    > div,
+    > div a {
+      img {
+        width: 34px;
+        height: 34px;
+      }
+    }
+  }
+  #gui-fullscreen,
+  #gui-fullscreen-exit {
+    .icon::before {
+      width: 34px;
+      height: 34px;
+    }
+  }
+}

+ 128 - 0
src/index/views/home/components/menu/index.thxz.tsx

@@ -0,0 +1,128 @@
+import { defineComponent, ref } from 'vue';
+import SharePopup from '../share-popup/index.vue';
+import './index.thxz.scss';
+
+const visitCount = localStorage.getItem('visitCount');
+
+export default defineComponent({
+  name: 'HomeMenu',
+  setup() {
+    const shareVisible = ref(false);
+
+    return {
+      shareVisible,
+    };
+  },
+  render() {
+    return (
+      <div class="pinBottom-container">
+        <div class="pinBottom left">
+          <div id="previous" class="previous desktop-only ui-icon" style="display: none;">
+            <a>
+              <img src="images/thxz/1.png" width="24" height="24" data-original-title="开始漫游" />
+            </a>
+          </div>
+          <div id="play" class="ui-icon" data-original-title="开始漫游">
+            <a>
+              <img src="images/thxz/1.png" width="24" height="24" />
+              <p>开始漫游</p>
+            </a>
+          </div>
+          <div id="pause" class="ui-icon" style="display: none;">
+            <a>
+              <img title="停止漫游" src="images/thxz/1-1.png" width="24" height="24" />
+              <p>停止漫游</p>
+            </a>
+          </div>
+          <div id="next" class="next desktop-only ui-icon wide" style="display: none;">
+            <a>
+              <i title="" class="icon icon-dpad-right" data-original-title="下一个"></i>
+            </a>
+          </div>
+          <div data-original-title="导览列表" id="pullTab" title="">
+            <img
+              class="icon icon-inside"
+              src="images/thxz/2.png"
+              title="导览列表"
+              data-default-url="images/thxz/2.png"
+              data-active-url="images/thxz/2-2.png"
+            />
+            <p>导览列表</p>
+          </div>
+          <div data-original-title="热点列表" id="hotList" title="" style="display: none">
+            <img class="icon icon-inside" src="images/thxz/3.png" title="热点列表" />
+            <p>热点列表</p>
+          </div>
+          <div data-original-title="全景漫游" id="gui-modes-inside" title="" class="">
+            <img class="icon icon-inside" src="images/thxz/4.png" title="全景漫游" />
+            <p>全景漫游</p>
+          </div>
+          <div data-original-title="迷你模型" id="gui-modes-dollhouse" title="" class="">
+            <img class="icon icon-inside" src="images/thxz/5.png" title="迷你模型" />
+            <p>迷你模型</p>
+          </div>
+          <div data-original-title="顶部视图" id="gui-modes-floorplan" title="">
+            <img class="icon icon-inside" src="images/thxz/6.png" title="顶部视图" />
+            <p>顶部视图</p>
+          </div>
+          <div data-original-title="VR" id="vr" title="" style="display: none;">
+            <img class="icon icon-inside" src="images/VR.png" title="VR" />
+          </div>
+          <div
+            data-original-title="消除外壳"
+            id="gui-remove-face"
+            title=""
+            style="display: none; float: left;"
+          >
+            <img class="icon icon-inside" src="images/face.jpg" />
+          </div>
+        </div>
+        <div class="pinBottom right">
+          <div id="volume" class="ui-icon wide">
+            <a>
+              <img
+                src="images/thxz/btn_on.png"
+                data-default-url="images/thxz/btn_on.png"
+                data-active-url="images/thxz/btn_off.png"
+              />
+              <p>音乐</p>
+            </a>
+          </div>
+          <div id="vr" class="ui-icon wide hidden">
+            <a>
+              <i title="{[{ VIEW_IN_VR }]}" class="icon icon-webvr"></i>
+            </a>
+          </div>
+          <div id="sharing" class="ui-icon wide" onClick={() => (this.shareVisible = true)}>
+            <img class="icon icon-inside" src="images/thxz/8.png" title="分享" />
+            <p>分享</p>
+          </div>
+          <div id="viewer" class="ui-icon wide">
+            <img class="icon icon-inside" src="images/thxz/9.png" title="浏览量" />
+            <p>{visitCount}</p>
+          </div>
+          <div id="gui-fullscreen" class="ui-icon wide">
+            <a>
+              <i class="icon icon-fullscreen"></i>
+              <p>全屏</p>
+            </a>
+          </div>
+          <div
+            id="gui-fullscreen-exit"
+            class="ui-icon wide"
+            data-placement="top"
+            title="{[{ EXIT_FULLSCREEN }]}"
+            style="display: none;"
+          >
+            <a>
+              <i class="icon icon-fullscreen-exit"></i>
+              <p>全屏</p>
+            </a>
+          </div>
+        </div>
+
+        <SharePopup visible={this.shareVisible} onUpdate:visible={(v) => (this.shareVisible = v)} />
+      </div>
+    );
+  },
+});

+ 55 - 0
src/index/views/home/components/popup/index.thxz.scss

@@ -0,0 +1,55 @@
+@use '@/assets/utils.scss';
+
+#popup {
+  display: none;
+  position: relative;
+  padding: 0;
+  width: 100%;
+  height: 100%;
+  text-align: center;
+  background: rgba(12, 12, 12, 0.3);
+  z-index: var(--z-hot-popper);
+
+  &.wait {
+    opacity: 0.1;
+  }
+}
+#id1 {
+  width: 100%;
+  height: 100%;
+}
+.popup-content {
+  position: absolute;
+  top: utils.vh-calc(140);
+  left: 50%;
+  width: utils.vh-calc(900);
+  height: utils.vh-calc(600);
+  border-radius: 10px;
+  overflow: hidden;
+  transform: translateX(-50%);
+}
+#closepop {
+  position: absolute;
+  top: utils.vh-calc(770);
+  left: 50%;
+  width: 36px;
+  height: 36px;
+  cursor: pointer;
+  text-indent: -999em;
+  background-size: 100% 100%;
+  transform: translateX(-50%);
+  background: url('/images/thxz/close.png') no-repeat center / contain;
+}
+
+@media only screen and (max-width: 600px) {
+  .popup-content {
+    top: utils.vh-calc(300);
+    width: utils.vh-calc(670);
+    height: utils.vh-calc(880);
+  }
+  #closepop {
+    top: utils.vh-calc(1210);
+    width: 30px;
+    height: 30px;
+  }
+}

+ 14 - 0
src/index/views/home/components/popup/index.thxz.tsx

@@ -0,0 +1,14 @@
+import { defineComponent } from 'vue';
+import './index.thxz.scss';
+
+export default defineComponent({
+  name: 'HomePopup',
+  render() {
+    return (
+      <div id="popup">
+        <div class="popup-content"></div>
+        <div id="closepop">close</div>
+      </div>
+    );
+  },
+});

+ 1 - 1
src/index/views/home/components/share-popup/index.vue

@@ -138,7 +138,7 @@
       height: 433px;
 
       .el-dialog__header {
-        padding: 30px;
+        padding: 15px 30px;
       }
       .el-dialog__body {
         padding: 0 30px;

+ 93 - 0
src/index/views/home/index.thxz.tsx

@@ -0,0 +1,93 @@
+import { defineComponent, ref } from 'vue';
+import JsScript from '@/components/js-script';
+import Title from './components/title';
+import WebVr from './components/web-vr';
+import Other from './components/other';
+import Guide from './components/guide';
+import Vrcon from './components/vrcon';
+import Menu from './components/menu';
+import GuiLoading from './components/gui-loading';
+import Popup from './components/popup';
+import HotSpotList from './components/hot-spot-list';
+import './index.scss';
+
+export default defineComponent({
+  name: 'home',
+  components: {
+    Title,
+    WebVr,
+    Other,
+    Vrcon,
+    GuiLoading,
+    JsScript,
+    Popup,
+  },
+  setup() {
+    const manageJsLoaded = ref(false);
+    const hotJsLoaded = ref(false);
+
+    return {
+      manageJsLoaded,
+      hotJsLoaded,
+    };
+  },
+  render() {
+    return (
+      <div class="home">
+        {/* 进度条加载 */}
+        <GuiLoading />
+
+        {/* 加载初始页面 */}
+        <div id="gui-thumb" />
+
+        {/* 热点弹出框 */}
+        <Popup />
+
+        {/* 场景canvs主容器 */}
+        <div id="player" />
+
+        {/* 底部菜单 */}
+        <div id="gui-parent">
+          {/* 热点气泡 */}
+          <div id="hot" />
+
+          <div id="gui" style="display: none;">
+            {/* 标题 */}
+            <Title style="display:none" />
+
+            {/* 热点列表 */}
+            <HotSpotList />
+
+            {/* 底部菜单 */}
+            <Menu />
+
+            {/* 导览 */}
+            <Guide />
+          </div>
+
+          <WebVr />
+          <Vrcon />
+          <Other />
+        </div>
+
+        {/* TODO: 没有控制权,耦合严重;放在此处为了防止元素未渲染导致报错 */}
+        <JsScript src="./js/manage.js" onLoad={() => (this.manageJsLoaded = true)} />
+        {this.manageJsLoaded && (
+          <div>
+            <JsScript src="./js/Hot.js" onLoad={() => (this.hotJsLoaded = true)} />
+            {this.hotJsLoaded && (
+              <div>
+                <JsScript src="./js/main_2020_show.js" />
+                {/* 延迟加载 */}
+                <JsScript src="./js/lib/player-0.0.12.min.js" />
+                <JsScript src="./js/lib/Tween.js" />
+                <JsScript src="./js/SpecialScene.js" />
+                <JsScript src="./js/loadCAD.js" />
+              </div>
+            )}
+          </div>
+        )}
+      </div>
+    );
+  },
+});