浏览代码

更新部分文物缩略图;文武列表页改版

任一存 1 年之前
父节点
当前提交
25fde9bf40
共有 39 个文件被更改,包括 23 次插入7 次删除
  1. 二进制
      public/relic-data/small-photo/第36页-113.png
  2. 二进制
      public/relic-data/small-photo/第36页-114.png
  3. 二进制
      public/relic-data/small-photo/第36页-115.png
  4. 二进制
      public/relic-data/small-photo/第43页-142.png
  5. 二进制
      public/relic-data/small-photo/第44页-143.png
  6. 二进制
      public/relic-data/small-photo/第45页-145.png
  7. 二进制
      public/relic-data/small-photo/第45页-146.png
  8. 二进制
      public/relic-data/small-photo/第45页-148.png
  9. 二进制
      public/relic-data/small-photo/第45页-149.png
  10. 二进制
      public/relic-data/small-photo/第45页-150.png
  11. 二进制
      public/relic-data/small-photo/第46页-151.png
  12. 二进制
      public/relic-data/small-photo/第46页-155.png
  13. 二进制
      public/relic-data/small-photo/第46页-156.png
  14. 二进制
      public/relic-data/small-photo/第46页-157.png
  15. 二进制
      public/relic-data/small-photo/第46页-158.png
  16. 二进制
      public/relic-data/small-photo/第46页-159.png
  17. 二进制
      public/relic-data/small-photo/第47页-160.png
  18. 二进制
      public/relic-data/small-photo/第47页-163.png
  19. 二进制
      public/relic-data/small-photo/第47页-164.png
  20. 二进制
      public/relic-data/small-photo/第47页-166.png
  21. 二进制
      public/relic-data/small-photo/第47页-167.png
  22. 二进制
      public/relic-data/small-photo/第48页-170.png
  23. 二进制
      public/relic-data/small-photo/第48页-171.png
  24. 二进制
      public/relic-data/small-photo/第54页-206.png
  25. 二进制
      public/relic-data/small-photo/第54页-207.png
  26. 二进制
      public/relic-data/small-photo/第58页-225.png
  27. 二进制
      public/relic-data/small-photo/第59页-226.png
  28. 二进制
      public/relic-data/small-photo/第59页-227.png
  29. 二进制
      public/relic-data/small-photo/第60页-228.png
  30. 二进制
      src/assets/images/camera-list-item-bg-active-2.png
  31. 二进制
      src/assets/images/camera-list-item-bg-active-3.png
  32. 二进制
      src/assets/images/relic-item-bg-1-even.jpg
  33. 二进制
      src/assets/images/relic-item-bg-1-odd.jpg
  34. 二进制
      src/assets/images/relic-item-bg-2-even.jpg
  35. 二进制
      src/assets/images/relic-item-bg-2-odd.jpg
  36. 二进制
      src/assets/images/relic-item-bg-3-even.jpg
  37. 二进制
      src/assets/images/relic-item-bg-3-odd.jpg
  38. 4 1
      src/useFunctions/useSizeAdapt.js
  39. 19 6
      src/views/RelicList.vue

二进制
public/relic-data/small-photo/第36页-113.png


二进制
public/relic-data/small-photo/第36页-114.png


二进制
public/relic-data/small-photo/第36页-115.png


二进制
public/relic-data/small-photo/第43页-142.png


二进制
public/relic-data/small-photo/第44页-143.png


二进制
public/relic-data/small-photo/第45页-145.png


二进制
public/relic-data/small-photo/第45页-146.png


二进制
public/relic-data/small-photo/第45页-148.png


二进制
public/relic-data/small-photo/第45页-149.png


二进制
public/relic-data/small-photo/第45页-150.png


二进制
public/relic-data/small-photo/第46页-151.png


二进制
public/relic-data/small-photo/第46页-155.png


二进制
public/relic-data/small-photo/第46页-156.png


二进制
public/relic-data/small-photo/第46页-157.png


二进制
public/relic-data/small-photo/第46页-158.png


二进制
public/relic-data/small-photo/第46页-159.png


二进制
public/relic-data/small-photo/第47页-160.png


二进制
public/relic-data/small-photo/第47页-163.png


二进制
public/relic-data/small-photo/第47页-164.png


二进制
public/relic-data/small-photo/第47页-166.png


二进制
public/relic-data/small-photo/第47页-167.png


二进制
public/relic-data/small-photo/第48页-170.png


二进制
public/relic-data/small-photo/第48页-171.png


二进制
public/relic-data/small-photo/第54页-206.png


二进制
public/relic-data/small-photo/第54页-207.png


二进制
public/relic-data/small-photo/第58页-225.png


二进制
public/relic-data/small-photo/第59页-226.png


二进制
public/relic-data/small-photo/第59页-227.png


二进制
public/relic-data/small-photo/第60页-228.png


二进制
src/assets/images/camera-list-item-bg-active-2.png


二进制
src/assets/images/camera-list-item-bg-active-3.png


二进制
src/assets/images/relic-item-bg-1-even.jpg


二进制
src/assets/images/relic-item-bg-1-odd.jpg


二进制
src/assets/images/relic-item-bg-2-even.jpg


二进制
src/assets/images/relic-item-bg-2-odd.jpg


二进制
src/assets/images/relic-item-bg-3-even.jpg


二进制
src/assets/images/relic-item-bg-3-odd.jpg


+ 4 - 1
src/useFunctions/useSizeAdapt.js

@@ -6,14 +6,16 @@ import { onBeforeUnmount, ref } from 'vue'
 export default function useSizeAdapt(windowWidthWhenDesign = 1920, windowHeightWhenDesign = 1080) {
 export default function useSizeAdapt(windowWidthWhenDesign = 1920, windowHeightWhenDesign = 1080) {
   const windowSizeInCssForRef = ref('')
   const windowSizeInCssForRef = ref('')
   const windowSizeWhenDesignForRef = ref('')
   const windowSizeWhenDesignForRef = ref('')
-
+  const scaleForRef = ref('')
   function compute() {
   function compute() {
     if (window.innerWidth / window.innerHeight > windowWidthWhenDesign / windowHeightWhenDesign) {
     if (window.innerWidth / window.innerHeight > windowWidthWhenDesign / windowHeightWhenDesign) {
       windowSizeWhenDesignForRef.value = windowHeightWhenDesign
       windowSizeWhenDesignForRef.value = windowHeightWhenDesign
       windowSizeInCssForRef.value = window.innerHeight + 'px' // 用100vh的话在移动端会有兼容性问题。
       windowSizeInCssForRef.value = window.innerHeight + 'px' // 用100vh的话在移动端会有兼容性问题。
+      scaleForRef.value = String(window.innerHeight / windowHeightWhenDesign)
     } else {
     } else {
       windowSizeWhenDesignForRef.value = windowWidthWhenDesign
       windowSizeWhenDesignForRef.value = windowWidthWhenDesign
       windowSizeInCssForRef.value = '100vw'
       windowSizeInCssForRef.value = '100vw'
+      scaleForRef.value = String(window.innerWidth / windowWidthWhenDesign)
     }
     }
   }
   }
 
 
@@ -26,5 +28,6 @@ export default function useSizeAdapt(windowWidthWhenDesign = 1920, windowHeightW
   return {
   return {
     windowSizeInCssForRef,
     windowSizeInCssForRef,
     windowSizeWhenDesignForRef,
     windowSizeWhenDesignForRef,
+    scaleForRef,
   }
   }
 }
 }

+ 19 - 6
src/views/RelicList.vue

@@ -51,8 +51,8 @@
             isScene1: item.sceneIdx === 0,
             isScene1: item.sceneIdx === 0,
             isScene2: item.sceneIdx === 1,
             isScene2: item.sceneIdx === 1,
             isScene3: item.sceneIdx === 2,
             isScene3: item.sceneIdx === 2,
-            isOdd: (idx + 1) % 2 === 0,
-            isEven: (idx + 1) % 2 === 1,
+            isOdd: (idx) % 2 === 0,
+            isEven: (idx) % 2 === 1,
           }"
           }"
           @click="onClickItem(item.idx)"
           @click="onClickItem(item.idx)"
         >
         >
@@ -85,12 +85,14 @@ import { ref, computed, watch, watchEffect, onMounted, nextTick } from "vue"
 import { useRoute, useRouter } from "vue-router"
 import { useRoute, useRouter } from "vue-router"
 import { useStore } from "vuex"
 import { useStore } from "vuex"
 import useSmoothSwipe from '@/useFunctions/useSmoothSwipe.js'
 import useSmoothSwipe from '@/useFunctions/useSmoothSwipe.js'
-import { useElementSize } from '@vueuse/core'
+import { useElementSize, useWindowSize } from '@vueuse/core'
 
 
 const route = useRoute()
 const route = useRoute()
 const router = useRouter()
 const router = useRouter()
 const store = useStore()
 const store = useStore()
 
 
+const { height: windowHeight } = useWindowSize()
+
 const cascaderValueInit = (route.query.sceneIdx && route.query.cameraIdx) ? [route.query.sceneIdx, route.query.cameraIdx] : ['0', '0']
 const cascaderValueInit = (route.query.sceneIdx && route.query.cameraIdx) ? [route.query.sceneIdx, route.query.cameraIdx] : ['0', '0']
 const cascaderValue = ref(cascaderValueInit)
 const cascaderValue = ref(cascaderValueInit)
 const cameraTree = ref([
 const cameraTree = ref([
@@ -419,10 +421,21 @@ function onClickItem(idx) {
         >img {
         >img {
           position: absolute;
           position: absolute;
           left: 0;
           left: 0;
-          bottom: calc(40 / @page-height-design-px * 100vh * 0.83);
-          width: 100%;
-          height: 40%;
+          left: 50%;
+          translate: -50% 0;
           object-fit: contain;
           object-fit: contain;
+          scale: calc(v-bind('windowHeight') / @page-height-design-px);
+          transform-origin: center bottom;
+        }
+      }
+      >.relic-item.isOdd{
+        >img{
+          bottom: calc(250 / @page-height-design-px * 100vh * 0.83);
+        }
+      }
+      >.relic-item.isEven{
+        >img{
+          bottom: calc(120 / @page-height-design-px * 100vh * 0.83);
         }
         }
       }
       }
       >.relic-item.isScene1.isOdd{
       >.relic-item.isScene1.isOdd{