chenlei 6 miesięcy temu
rodzic
commit
1329197d6b
46 zmienionych plików z 1181 dodań i 5 usunięć
  1. 2 0
      package.json
  2. BIN
      public/images/st/Volume btn_off.png
  3. BIN
      public/images/st/Volume btn_on.png
  4. BIN
      public/images/st/auto-suspend.png
  5. BIN
      public/images/st/auto.png
  6. BIN
      public/images/st/bg.png
  7. BIN
      public/images/st/close.png
  8. BIN
      public/images/st/dollhouse.png
  9. BIN
      public/images/st/enlarge_on.png
  10. BIN
      public/images/st/floor.png
  11. BIN
      public/images/st/hotlist.png
  12. BIN
      public/images/st/inside.png
  13. BIN
      public/images/st/like.png
  14. BIN
      public/images/st/liked.png
  15. BIN
      public/images/st/mb-bg-min.jpg
  16. BIN
      public/images/st/narrow_off.png
  17. BIN
      public/images/st/pause.png
  18. BIN
      public/images/st/play.png
  19. BIN
      public/images/st/share.png
  20. BIN
      public/images/st/viewer.png
  21. BIN
      src/hotspot/assets/images/st/bg-min.jpg
  22. BIN
      src/hotspot/assets/images/st/mb-bg-min.jpg
  23. 195 0
      src/hotspot/views/hotspot/index.st.scss
  24. 279 0
      src/hotspot/views/hotspot/index.st.vue
  25. 1 1
      src/index/app.scss
  26. BIN
      src/index/assets/images/st/bg-min.jpg
  27. BIN
      src/index/assets/images/st/logo.png
  28. BIN
      src/index/assets/images/st/title.png
  29. 21 0
      src/index/router/index.st.ts
  30. BIN
      src/index/views/cover/images/bg-min.jpg
  31. BIN
      src/index/views/cover/images/btn-min.png
  32. BIN
      src/index/views/cover/images/mobile/bg-min.jpg
  33. BIN
      src/index/views/cover/images/mobile/btn-min.png
  34. BIN
      src/index/views/cover/images/mobile/copyright-min.png
  35. BIN
      src/index/views/cover/images/mobile/date-min.png
  36. BIN
      src/index/views/cover/images/mobile/logo-min.png
  37. BIN
      src/index/views/cover/images/mobile/title-min.png
  38. 78 0
      src/index/views/cover/index.scss
  39. 16 0
      src/index/views/cover/index.vue
  40. 145 0
      src/index/views/home/components/hot-spot-list/index.st.scss
  41. 23 0
      src/index/views/home/components/hot-spot-list/index.st.tsx
  42. 167 0
      src/index/views/home/components/menu/index.st.scss
  43. 179 0
      src/index/views/home/components/menu/index.st.tsx
  44. 56 0
      src/index/views/home/components/popup/index.st.scss
  45. 14 0
      src/index/views/home/components/popup/index.st.tsx
  46. 5 4
      src/index/views/home/components/share-popup/index.vue

+ 2 - 0
package.json

@@ -6,6 +6,8 @@
   "scripts": {
     "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 {@}\" --",
+    "serve:st": "cross-env VITE_APP_SCENE=st VITE_APP_TITLE=海上丝绸之路上的汉代珠饰展 VITE_APP_HOT_DOMAIN=./hotspot.html vite",
+    "build:st:test": "cross-env VITE_APP_SCENE=st VITE_APP_TITLE=海上丝绸之路上的汉代珠饰展 VITE_APP_HOT_DOMAIN=./hotspot.html run-p type-check \"build-only {@}\" --",
     "push:test": "cross-env node ./scripts/publish.js",
     "preview": "vite preview",
     "build-only": "vite build",

BIN
public/images/st/Volume btn_off.png


BIN
public/images/st/Volume btn_on.png


BIN
public/images/st/auto-suspend.png


BIN
public/images/st/auto.png


BIN
public/images/st/bg.png


BIN
public/images/st/close.png


BIN
public/images/st/dollhouse.png


BIN
public/images/st/enlarge_on.png


BIN
public/images/st/floor.png


BIN
public/images/st/hotlist.png


BIN
public/images/st/inside.png


BIN
public/images/st/like.png


BIN
public/images/st/liked.png


BIN
public/images/st/mb-bg-min.jpg


BIN
public/images/st/narrow_off.png


BIN
public/images/st/pause.png


BIN
public/images/st/play.png


BIN
public/images/st/share.png


BIN
public/images/st/viewer.png


BIN
src/hotspot/assets/images/st/bg-min.jpg


BIN
src/hotspot/assets/images/st/mb-bg-min.jpg


+ 195 - 0
src/hotspot/views/hotspot/index.st.scss

@@ -0,0 +1,195 @@
+@use '@/assets/utils.scss';
+
+.hotspot-page {
+  position: fixed;
+  top: 0;
+  left: 0;
+  right: 0;
+  bottom: 0;
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  justify-content: center;
+  padding: utils.vh-calc(30) 0;
+  background: url('@hotspot/assets/images/st/bg-min.jpg') no-repeat left top / cover;
+  z-index: var(--z-index-popper);
+
+  h3 {
+    margin-bottom: utils.vh-calc(23);
+    font-size: utils.vh-calc(48);
+    font-family: 'Source Han Sans CN-Bold';
+    text-align: center;
+  }
+  .audioIcon {
+    img {
+      width: 57px;
+      height: 57px;
+      cursor: pointer;
+    }
+  }
+  &-info {
+    color: white;
+    width: utils.vw-calc(835);
+    font-size: utils.vw-calc(24);
+    font-family: 'Source Han Sans CN-Regular';
+
+    p {
+      text-indent: 2em;
+    }
+  }
+
+  &-container {
+    position: relative;
+    flex: 1;
+    flex-shrink: 1;
+    height: 0;
+    display: flex;
+    flex-direction: column;
+    align-items: center;
+    max-width: utils.vw-calc(835);
+    width: 100%;
+    box-sizing: border-box;
+
+    &.showTools {
+      padding-bottom: utils.vh-calc(75);
+    }
+  }
+
+  &-swiper {
+    &__left,
+    &__right {
+      position: absolute;
+      top: 50%;
+      width: 25px;
+      height: 24px;
+      cursor: pointer;
+      transform: translateY(-50%);
+      z-index: 1;
+    }
+    &__left {
+      left: -70px;
+      background: url('@hotspot/assets/images/icon-previous@2x-min.png') no-repeat center / contain;
+    }
+    &__right {
+      right: -70px;
+      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%;
+
+    video {
+      width: 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 {
+    background-image: url('@hotspot/assets/images/st/mb-bg-min.jpg');
+
+    h3 {
+      margin-top: utils.vh-calc(238);
+      font-size: utils.vh-calc(48);
+    }
+    &-container {
+      max-width: 100%;
+      width: 100%;
+
+      &.showTools {
+        padding-bottom: utils.vh-calc(130);
+      }
+    }
+    &-swiper {
+      &__left,
+      &__right {
+        top: unset;
+        bottom: utils.vh-calc(350);
+        transform: none;
+      }
+      &__left {
+        left: 10px;
+      }
+      &__right {
+        right: 10px;
+      }
+    }
+    &-nav {
+      bottom: 0;
+
+      &__item {
+        width: 48px;
+        height: 48px;
+      }
+    }
+    .audioIcon {
+      right: 35px;
+      bottom: 1px;
+
+      img {
+        width: 48px;
+        height: 48px;
+      }
+    }
+    &-info {
+      padding: 0 utils.vw-calc(30);
+      width: 100%;
+      font-size: utils.vw-calc(36);
+    }
+  }
+}

+ 279 - 0
src/hotspot/views/hotspot/index.st.vue

@@ -0,0 +1,279 @@
+<template>
+  <div class="hotspot-page">
+    <h3>{{ myTitle }}</h3>
+
+    <div class="hotspot-page-container" :class="{ showTools: flooTab.length > 1 }">
+      <!-- 音频播放器 -->
+      <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 v-if="flooTab.length > 1" class="hotspot-page-nav">
+        <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>
+
+        <!-- 音频图标 -->
+        <div
+          v-if="audio && !isOneAduio"
+          class="audioIcon hotspot-page-nav__item"
+          :title="audioSta ? '关闭音频' : '打开音频'"
+          @click="audioSta = !audioSta"
+        >
+          <img :src="audioSta ? VolumeOff : VolumeOn" alt="" />
+        </div>
+      </div>
+    </div>
+
+    <el-scrollbar :height="200" style="margin-top: 20px; height: 200px; flex-shrink: 0">
+      <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';
+
+          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.st.scss';
+</style>

+ 1 - 1
src/index/app.scss

@@ -128,6 +128,6 @@ iframe {
 @media only screen and (max-width: 600px) {
   :root {
     --design-width: 750;
-    --design-height: 1440;
+    --design-height: 1624;
   }
 }

BIN
src/index/assets/images/st/bg-min.jpg


BIN
src/index/assets/images/st/logo.png


BIN
src/index/assets/images/st/title.png


+ 21 - 0
src/index/router/index.st.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-min.jpg


BIN
src/index/views/cover/images/btn-min.png


BIN
src/index/views/cover/images/mobile/bg-min.jpg


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


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


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


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


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


+ 78 - 0
src/index/views/cover/index.scss

@@ -0,0 +1,78 @@
+@use '@/assets/utils.scss';
+
+.cover {
+  position: relative;
+  height: 100%;
+  background: url('./images/bg-min.jpg') no-repeat center / cover;
+
+  &::before {
+    content: '';
+    position: absolute;
+    top: utils.vh-calc(29);
+    left: utils.vh-calc(38);
+    width: utils.vh-calc(120);
+    height: utils.vh-calc(54);
+    background: url('@/assets/images/st/logo.png') no-repeat center / contain;
+  }
+  &-btn {
+    position: absolute;
+    left: 50%;
+    bottom: utils.vh-calc(32);
+    width: utils.vh-calc(412);
+    height: utils.vh-calc(95);
+    transform: translateX(-50%);
+    cursor: pointer;
+  }
+}
+
+@media only screen and (max-width: 600px) {
+  .cover {
+    background-image: url('./images/mobile/bg-min.jpg');
+
+    &::before {
+      top: utils.vh-calc(46);
+      left: 50%;
+      width: utils.vh-calc(672);
+      height: utils.vh-calc(159);
+      transform: translateX(-50%);
+      background-image: url('./images/mobile/logo-min.png');
+    }
+    &::after {
+      content: '';
+      position: absolute;
+      left: 50%;
+      bottom: utils.vh-calc(28);
+      width: utils.vh-calc(530);
+      height: utils.vh-calc(169);
+      transform: translateX(-50%);
+      background: url('./images/mobile/copyright-min.png') no-repeat center / contain;
+    }
+    &-main {
+      &::before {
+        content: '';
+        position: absolute;
+        top: utils.vh-calc(422);
+        left: 50%;
+        width: utils.vh-calc(633);
+        height: utils.vh-calc(482);
+        transform: translateX(-50%);
+        background: url('./images/mobile/title-min.png') no-repeat center / contain;
+      }
+      &::after {
+        content: '';
+        position: absolute;
+        top: utils.vh-calc(986);
+        left: 50%;
+        width: utils.vh-calc(306);
+        height: utils.vh-calc(307);
+        transform: translateX(-50%);
+        background: url('./images/mobile/date-min.png') no-repeat center / contain;
+      }
+    }
+    &-btn {
+      bottom: utils.vh-calc(215);
+      width: utils.vh-calc(412);
+      height: utils.vh-calc(95);
+    }
+  }
+}

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

@@ -0,0 +1,16 @@
+<template>
+  <div class="cover">
+    <div class="cover-main" />
+
+    <img
+      draggable="false"
+      class="cover-btn"
+      src="./images/btn-min.png"
+      @click="$router.push({ name: 'home' })"
+    />
+  </div>
+</template>
+
+<style lang="scss" scoped>
+  @use './index.scss';
+</style>

+ 145 - 0
src/index/views/home/components/hot-spot-list/index.st.scss

@@ -0,0 +1,145 @@
+@use '@/assets/utils.scss';
+
+#hotListWrap {
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  position: absolute;
+  top: 0;
+  right: -400px;
+  width: 350px;
+  height: 100%;
+  transition: right 0.4s, width 0.5s;
+  background: url('@/assets/images/st/bg-min.jpg') no-repeat center top / cover;
+  z-index: var(--z-index-popper);
+}
+
+.hotListActive {
+  right: 0 !important;
+}
+
+#hotListTitle {
+  margin: 50px 0 10px;
+  width: 233px;
+  height: 58px;
+  background: url('@/assets/images/st/title.png') no-repeat center / contain;
+}
+
+#hotListContent {
+  width: 100%;
+  flex-grow: 1;
+  height: 100%;
+  overflow-y: scroll;
+  overflow-x: hidden;
+}
+
+#hotListBottom {
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  height: 186px;
+}
+
+#hotListClose {
+  width: 26px;
+  cursor: pointer;
+}
+
+#hotListContent ul {
+  padding: 40px 30px;
+  font-size: 18px;
+  letter-spacing: 3px;
+}
+
+#hotListContent ul li {
+  height: 50px;
+  line-height: 50px;
+  text-align: center;
+  color: white;
+  padding: 0 25px;
+  transition: color 0.3s, background 0.6s;
+  border-radius: 10px;
+  overflow: hidden;
+  white-space: nowrap;
+  text-overflow: ellipsis;
+  cursor: pointer;
+}
+
+#hotListContent ul li:hover {
+  color: #ffa439;
+}
+
+#hotListContent ul li.active {
+  color: black;
+  background: #f3f5f9;
+}
+
+#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: -100%;
+    left: 50%;
+    right: unset;
+    width: utils.vw-calc(638);
+    height: utils.vh-calc(1532);
+    transition: top 0.4s, width 0.5s;
+    transform: translateX(-50%);
+  }
+  .hotListActive {
+    top: utils.vh-calc(46) !important;
+
+    & + #hotListMask {
+      position: fixed;
+      top: 0;
+      left: 0;
+      right: 0;
+      bottom: 0;
+      background: rgba(0, 0, 0, 0.7);
+      z-index: 1001;
+    }
+  }
+
+  #hotListTitle {
+    margin: utils.vh-calc(110) 0 utils.vh-calc(50);
+    width: utils.vh-calc(400);
+    height: utils.vh-calc(100);
+  }
+  #hotListContent ul li {
+    text-align: center;
+    height: utils.vh-calc(100);
+    line-height: utils.vh-calc(100);
+  }
+  #hotListContent ul {
+    padding: 0;
+    font-size: utils.vh-calc(36);
+  }
+  #hotListBottom {
+    display: none;
+    height: 15%;
+    /* background: rgba(34, 36, 37,0.9); */
+    background: none;
+    display: flex;
+    justify-content: center;
+    align-items: center;
+  }
+  #hotListClose {
+    width: utils.vh-calc(50);
+    height: utils.vh-calc(50);
+  }
+  #hotListContent ul li.active {
+    color: white;
+    background: none;
+  }
+}

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

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

+ 167 - 0
src/index/views/home/components/menu/index.st.scss

@@ -0,0 +1,167 @@
+@use '@/assets/utils.scss';
+
+.pinBottom-container {
+  position: absolute;
+  left: 50%;
+  bottom: 17px;
+  display: flex;
+  align-items: center;
+  padding-left: 250px;
+  width: 1259px;
+  height: 83px;
+  transition: all 0.5s;
+  transform: translateX(-50%);
+  background: url('/images/st/bg.png') no-repeat center left / cover;
+  z-index: var(--z-index-top);
+
+  &.open {
+    bottom: 140px;
+
+    &.playing {
+      bottom: 160px;
+    }
+    &.noScroll {
+      bottom: 120px;
+
+      &.playing {
+        bottom: 140px;
+      }
+    }
+  }
+  &.playing:not(.open) {
+    bottom: 30px;
+  }
+}
+
+.pinBottom {
+  line-height: 1;
+  transition: all 0.5s;
+
+  &.left,
+  &.right {
+    display: flex;
+    align-items: center;
+    gap: 35px;
+  }
+  &.right {
+    gap: 40px;
+  }
+  > div,
+  > div a {
+    display: flex;
+    flex-direction: column;
+    justify-content: center;
+    align-items: center;
+    gap: 7px;
+    color: white;
+    cursor: pointer;
+
+    &.active,
+    &:hover,
+    &.opened {
+      color: #ffa439;
+    }
+    img {
+      width: 38px;
+      height: 38px;
+    }
+  }
+  &-border {
+    margin: 0 35px;
+    width: 1px;
+    height: 50px;
+    background: #fcfeff;
+  }
+}
+
+.icon-like::before,
+.icon-fullscreen::before,
+.icon-fullscreen-exit::before {
+  content: '';
+  background: url('/images/st/enlarge_on.png') center top no-repeat;
+  background-size: 100%;
+  display: inline-block;
+  width: 38px;
+  height: 38px;
+}
+
+.icon-like {
+  &.active::before {
+    background-image: url('/images/st/liked.png');
+  }
+  &::before {
+    transition: background-image 0.2s ease-in-out;
+    background-image: url('/images/st/like.png');
+  }
+}
+
+.icon-fullscreen-exit::before {
+  background-image: url('/images/st/narrow_off.png');
+}
+
+@media only screen and (max-width: 600px) {
+  .pinBottom-container {
+    bottom: 0;
+    background: none;
+
+    &.open {
+      bottom: 100px;
+
+      &.noScroll {
+        bottom: 90px;
+
+        &.playing {
+          bottom: 110px;
+        }
+      }
+    }
+    &.playing:not(.open) {
+      bottom: 20px;
+    }
+  }
+  .pinBottom {
+    display: flex;
+
+    &-container {
+      width: 100%;
+      height: unset;
+    }
+    &.left,
+    &.right {
+      position: absolute;
+      bottom: 0;
+      flex-direction: column;
+      justify-content: center;
+      width: utils.vw-calc(83);
+      height: utils.vw-calc(492);
+      background: url('/images/st/mb-bg-min.jpg') no-repeat center top / cover;
+    }
+    &.left {
+      left: utils.vw-calc(17);
+      gap: utils.vw-calc(25);
+    }
+    &.right {
+      right: utils.vw-calc(17);
+      gap: utils.vw-calc(55);
+    }
+    &-border {
+      display: none;
+    }
+    > div,
+    > div a {
+      gap: utils.vw-calc(11);
+      font-size: utils.vw-calc(16);
+
+      img {
+        width: utils.vw-calc(38);
+        height: utils.vw-calc(38);
+      }
+    }
+  }
+  .icon-like::before,
+  .icon-fullscreen::before,
+  .icon-fullscreen-exit::before {
+    width: utils.vw-calc(38);
+    height: utils.vw-calc(38);
+  }
+}

+ 179 - 0
src/index/views/home/components/menu/index.st.tsx

@@ -0,0 +1,179 @@
+import { defineComponent, onMounted, ref } from 'vue';
+import SharePopup from '../share-popup/index.vue';
+import { homeApi } from '@/api';
+import './index.st.scss';
+
+export default defineComponent({
+  name: 'HomeMenu',
+  setup() {
+    const shareVisible = ref(false);
+    const starSum = ref(0);
+    const liking = ref(false);
+    const visitCount = ref(localStorage.getItem('visitCount') ?? 0);
+
+    const getDetail = async () => {
+      const { data } = await homeApi.getSceneDetail(window.number);
+
+      if (!data) return;
+      starSum.value = data.starSum;
+      visitCount.value = data.visitSum;
+    };
+
+    const handleStar = async () => {
+      if (liking.value) return;
+
+      liking.value = true;
+      starSum.value++;
+
+      try {
+        await homeApi.saveStar(window.number);
+
+        setTimeout(() => {
+          liking.value = false;
+        }, 200);
+      } catch (err) {
+        starSum.value--;
+      }
+    };
+
+    onMounted(() => {
+      getDetail();
+    });
+
+    return {
+      shareVisible,
+      visitCount,
+      starSum,
+      liking,
+      handleStar,
+    };
+  },
+  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/st/play.png" width="24" height="24" data-original-title="播放" />
+              </a>
+            </div>
+            <div id="play" class="ui-icon" data-original-title="播放">
+              <a>
+                <img src="images/st/play.png" width="24" height="24" />
+                <p>自动漫游</p>
+              </a>
+            </div>
+            <div id="pause" class="ui-icon" style="display: none;">
+              <a>
+                <img title="暂停" src="images/st/pause.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/st/auto.png"
+                title="场景导览"
+                data-default-url="images/st/auto.png"
+                data-active-url="images/st/auto-suspend.png"
+              />
+              <p>场景导览</p>
+            </div>
+            <div data-original-title="热点列表" id="hotList" title="" style="display: none">
+              <img class="icon icon-inside" src="images/st/hotlist.png" title="热点列表" />
+              <p>热点列表</p>
+            </div>
+            <div data-original-title="全景漫游" id="gui-modes-inside" title="" class="">
+              <img class="icon icon-inside" src="images/st/inside.png" title="全景漫游" />
+              <p>全景漫游</p>
+            </div>
+            <div data-original-title="迷你模型" id="gui-modes-dollhouse" title="" class="">
+              <img class="icon icon-inside" src="images/st/dollhouse.png" title="迷你模型" />
+              <p>迷你模型</p>
+            </div>
+            <div data-original-title="俯视图" id="gui-modes-floorplan" title="">
+              <img class="icon icon-inside" src="images/st/floor.png" title="俯视图" />
+              <p>俯视图</p>
+            </div>
+            <div data-original-title="VR" id="vr" title="" style="display: none;">
+              <img class="icon icon-inside" src="images/st/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/st/face.jpg" />
+            </div>
+          </div>
+
+          <div class="pinBottom-border" />
+
+          <div class="pinBottom right">
+            <div id="like" class="ui-icon wide" onClick={this.handleStar}>
+              <i class={`icon icon-like ${this.liking && 'active'}`}></i>
+              <p>{this.starSum} 点赞</p>
+            </div>
+            <div id="sharing" class="ui-icon wide" onClick={() => (this.shareVisible = true)}>
+              <img class="icon icon-inside" src="images/st/share.png" title="分享" />
+              <p>分享</p>
+            </div>
+            <div id="volume" class="ui-icon wide">
+              <a>
+                <img
+                  src="images/st/Volume btn_on.png"
+                  width="24"
+                  height="24"
+                  data-default-url="images/st/Volume btn_on.png"
+                  data-active-url="images/st/Volume 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="viewer" class="ui-icon wide" title="浏览量">
+              <img class="icon icon-inside" src="images/st/viewer.png" title="浏览量" />
+              <span>{this.visitCount}</span>
+            </div>
+            <div
+              id="gui-fullscreen"
+              class="ui-icon wide"
+              data-placement="top"
+              title="{[{ VIEW_FULLSCREEN }]}"
+            >
+              <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>
+        </div>
+
+        <SharePopup visible={this.shareVisible} onUpdate:visible={(v) => (this.shareVisible = v)} />
+      </>
+    );
+  },
+});

+ 56 - 0
src/index/views/home/components/popup/index.st.scss

@@ -0,0 +1,56 @@
+@use '@/assets/utils.scss';
+
+#popup {
+  display: none;
+  position: relative;
+  padding: 0;
+  width: 100%;
+  height: 100%;
+  overflow: hidden;
+  text-align: center;
+  background: rgba(0, 0, 0, 0.6);
+  z-index: var(--z-hot-popper);
+
+  &.wait {
+    opacity: 0.1;
+  }
+}
+#id1 {
+  width: 100%;
+  height: 100%;
+}
+.popup-content {
+  position: relative;
+  margin: utils.vh-calc(43) auto 0;
+  width: utils.vw-calc(1717);
+  height: utils.vh-calc(829);
+  overflow: hidden;
+}
+#closepop {
+  position: absolute;
+  top: utils.vh-calc(30);
+  right: utils.vw-calc(40);
+  width: utils.vw-calc(40);
+  height: utils.vw-calc(40);
+  cursor: pointer;
+  text-indent: -999em;
+  background-size: 100% 100%;
+  background: url('/images/st/close.png') no-repeat center / contain;
+}
+
+@media only screen and (max-width: 600px) {
+  .popup-content {
+    margin: utils.vh-calc(67) auto 0;
+    width: utils.vw-calc(688);
+    height: utils.vh-calc(1423);
+  }
+  #closepop {
+    top: unset;
+    right: unset;
+    left: 50%;
+    bottom: utils.vh-calc(70);
+    width: utils.vw-calc(40);
+    height: utils.vw-calc(40);
+    transform: translateX(-50%);
+  }
+}

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

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

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

@@ -77,13 +77,14 @@
     --el-dialog-border-radius: 0;
     --el-dialog-title-font-size: 24px;
     height: 580px;
-    background: url('./images/bg-share-min.jpg') no-repeat center / contain;
+    background: rgba($color: #000000, $alpha: 0.6);
+    backdrop-filter: blur(4px);
 
     .el-dialog__header {
       padding: 50px 40px;
     }
     .el-dialog__title {
-      color: #f5dd8c;
+      color: white;
       font-weight: 700;
     }
     .el-dialog__body {
@@ -116,9 +117,9 @@
       height: 50px;
       line-height: 50px;
       text-align: center;
-      color: #9d222d;
+      color: white;
       font-size: 20px;
-      background: #f5dd8c;
+      background: #355f70;
       border-radius: 100px;
       cursor: pointer;
     }