shaogen1995 10 months ago
parent
commit
c8b4f86c08
37 changed files with 492 additions and 19 deletions
  1. 405 13
      Code/public/myData/myData.js
  2. BIN
      Code/src/assets/img/xianJu/btn.png
  3. BIN
      Code/src/assets/img/xianJu/btnAc.png
  4. 22 2
      Code/src/pages/A2visit2/A22Pano/index.tsx
  5. 22 2
      Code/src/pages/A6xian/A6PanoVideo/index.tsx
  6. 15 0
      Code/src/pages/A6xian/index.module.scss
  7. 10 2
      Code/src/pages/A6xian/index.tsx
  8. 18 0
      Code/src/types/declaration.d.ts
  9. BIN
      资源/staticData/plow/hot/tag_hulu.png
  10. BIN
      资源/staticData/plow/hot/tag_xiangcai.png
  11. BIN
      资源/staticData/plow/hot/tag_xiaocong.png
  12. BIN
      资源/staticData/visit2/hot/jiuche.png
  13. BIN
      资源/staticData/visit2/hot/tag_jiuche.png
  14. BIN
      资源/staticData/visit2/hot/tag_touhu.png
  15. BIN
      资源/staticData/visit2/hot/tag_yuanlou.png
  16. BIN
      资源/staticData/visit2/hot/tag_yuanluo.png
  17. BIN
      资源/staticData/visit2/hot/tag_zhangshou.png
  18. BIN
      资源/staticData/visit2/hot/touhu.png
  19. BIN
      资源/staticData/visit2/hot/yuanluo1.png
  20. BIN
      资源/staticData/visit2/hot/yuanluo2.png
  21. BIN
      资源/staticData/visit2/hot/yuanluo3.png
  22. BIN
      资源/staticData/visit2/hot/zhangshou.png
  23. BIN
      资源/staticData/xianJu/hot/dongwanggong.png
  24. BIN
      资源/staticData/xianJu/hot/fengshi.png
  25. BIN
      资源/staticData/xianJu/hot/fuyinawa.png
  26. BIN
      资源/staticData/xianJu/hot/hebo.png
  27. BIN
      资源/staticData/xianJu/hot/leishen.png
  28. BIN
      资源/staticData/xianJu/hot/tag_fengshi.png
  29. BIN
      资源/staticData/xianJu/hot/tag_fuyinawa.png
  30. BIN
      资源/staticData/xianJu/hot/tag_hebo.png
  31. BIN
      资源/staticData/xianJu/hot/tag_leishen.png
  32. BIN
      资源/staticData/xianJu/hot/tag_xianjieshen.png
  33. BIN
      资源/staticData/xianJu/hot/tag_yushi.png
  34. BIN
      资源/staticData/xianJu/hot/taiyishen.png
  35. BIN
      资源/staticData/xianJu/hot/xiwangmu.png
  36. BIN
      资源/staticData/xianJu/hot/yuren.png
  37. BIN
      资源/staticData/xianJu/hot/yushi.png

File diff suppressed because it is too large
+ 405 - 13
Code/public/myData/myData.js


BIN
Code/src/assets/img/xianJu/btn.png


BIN
Code/src/assets/img/xianJu/btnAc.png


+ 22 - 2
Code/src/pages/A2visit2/A22Pano/index.tsx

@@ -1,7 +1,27 @@
-import React from 'react'
+import React, { useState } from 'react'
 import styles from './index.module.scss'
 import styles from './index.module.scss'
+import { myData } from '@/utils/http'
+import Hot2 from '@/pages/A2visit/PanoVideo/Hot2'
 function A22Pano() {
 function A22Pano() {
-  return <div className={styles.A22Pano}>待完善,全景图页面</div>
+  const [acInd, setAcInd] = useState(-1)
+
+  return (
+    <div className={styles.A22Pano}>
+      待完善,全景图页面
+      {myData.visit2.hot.map((item, index) => (
+        <div key={index} onClick={() => setAcInd(index)}>
+          {item.name}
+        </div>
+      ))}
+      {acInd !== -1 ? (
+        <Hot2
+          data={myData.visit2.hot[acInd].data}
+          closeFu={() => setAcInd(-1)}
+          name={myData.visit2.hot[acInd].name}
+        />
+      ) : null}
+    </div>
+  )
 }
 }
 
 
 const MemoA22Pano = React.memo(A22Pano)
 const MemoA22Pano = React.memo(A22Pano)

+ 22 - 2
Code/src/pages/A6xian/A6PanoVideo/index.tsx

@@ -1,7 +1,27 @@
-import React from 'react'
+import React, { useState } from 'react'
 import styles from './index.module.scss'
 import styles from './index.module.scss'
+import { myData } from '@/utils/http'
+import Hot2 from '@/pages/A2visit/PanoVideo/Hot2'
 function A6PanoVideo() {
 function A6PanoVideo() {
-  return <div className={styles.A6PanoVideo}>待完善,全景视频</div>
+  const [acInd, setAcInd] = useState(-1)
+
+  return (
+    <div className={styles.A6PanoVideo}>
+      待完善,全景视频
+      {myData.xianJu.hot.map((item, index) => (
+        <div key={index} onClick={() => setAcInd(index)}>
+          {item.name}
+        </div>
+      ))}
+      {acInd !== -1 ? (
+        <Hot2
+          data={myData.xianJu.hot[acInd].data}
+          closeFu={() => setAcInd(-1)}
+          name={myData.xianJu.hot[acInd].name}
+        />
+      ) : null}
+    </div>
+  )
 }
 }
 
 
 const MemoA6PanoVideo = React.memo(A6PanoVideo)
 const MemoA6PanoVideo = React.memo(A6PanoVideo)

+ 15 - 0
Code/src/pages/A6xian/index.module.scss

@@ -73,7 +73,22 @@
         transform: translateX(-50%);
         transform: translateX(-50%);
         display: flex;
         display: flex;
         & > div {
         & > div {
+          font-size: 14px;
+          display: flex;
+          justify-content: center;
+          align-items: center;
+          width: 160px;
+          height: 36px;
+          cursor: pointer;
           margin: 0 10px;
           margin: 0 10px;
+          background-image: url('../../assets/img/xianJu/btn.png');
+          background-size: 100% 100%;
+          color: #fffddc;
+          transition: all 0.3s;
+          &:hover {
+            background-image: url('../../assets/img/xianJu/btnAc.png');
+            color: #a65c41;
+          }
         }
         }
       }
       }
     }
     }

+ 10 - 2
Code/src/pages/A6xian/index.tsx

@@ -1,4 +1,4 @@
-import React, { useCallback, useRef, useState } from 'react'
+import React, { useCallback, useEffect, useRef, useState } from 'react'
 import styles from './index.module.scss'
 import styles from './index.module.scss'
 import BaseImg from '@/components/BaseImg'
 import BaseImg from '@/components/BaseImg'
 import { baseURL, myData } from '@/utils/http'
 import { baseURL, myData } from '@/utils/http'
@@ -62,6 +62,14 @@ function A6xian() {
 
 
   const videoRef = useRef<HTMLVideoElement>(null)
   const videoRef = useRef<HTMLVideoElement>(null)
 
 
+  useEffect(() => {
+    if (window.location.href.includes('t=xian')) {
+      setTimeout(() => {
+        if (videoRef.current) videoRef.current.play()
+      }, 100)
+    }
+  }, [])
+
   return (
   return (
     <div className={styles.A6xian}>
     <div className={styles.A6xian}>
       {/* 初始静态图 */}
       {/* 初始静态图 */}
@@ -139,8 +147,8 @@ function A6xian() {
 
 
           {/* 底部按钮 */}
           {/* 底部按钮 */}
           <div className='A6XimgBoxBtn'>
           <div className='A6XimgBoxBtn'>
-            <div onClick={() => history.push('/yun?t=xian')}>四神云气图</div>
             <div onClick={() => history.push('/xian?t=xian')}>卜千秋墓中的升仙图</div>
             <div onClick={() => history.push('/xian?t=xian')}>卜千秋墓中的升仙图</div>
+            <div onClick={() => history.push('/yun?t=xian')}>四神云气图</div>
           </div>
           </div>
         </div>
         </div>
       ) : null}
       ) : null}

+ 18 - 0
Code/src/types/declaration.d.ts

@@ -45,6 +45,15 @@ type MyDataType = {
     btnArr: string[]
     btnArr: string[]
     baiXiBg: string
     baiXiBg: string
     baixiArr: string[]
     baixiArr: string[]
+    hot: {
+      isModel?: boolean
+      name: string
+      size: number
+      atv: number
+      ath: number
+      hoverSrc: string
+      data: VisitHotDataType
+    }[]
   }
   }
   banquet: {
   banquet: {
     bgImg: string
     bgImg: string
@@ -134,6 +143,15 @@ type MyDataType = {
     bgImg: string
     bgImg: string
     videos: string[]
     videos: string[]
     lastVideo: string
     lastVideo: string
+    hot: {
+      isModel?: boolean
+      name: string
+      size: number
+      atv: number
+      ath: number
+      hoverSrc: string
+      data: VisitHotDataType
+    }[]
   }
   }
   end: {
   end: {
     baseImg: string
     baseImg: string

BIN
资源/staticData/plow/hot/tag_hulu.png


BIN
资源/staticData/plow/hot/tag_xiangcai.png


BIN
资源/staticData/plow/hot/tag_xiaocong.png


BIN
资源/staticData/visit2/hot/jiuche.png


BIN
资源/staticData/visit2/hot/tag_jiuche.png


BIN
资源/staticData/visit2/hot/tag_touhu.png


BIN
资源/staticData/visit2/hot/tag_yuanlou.png


BIN
资源/staticData/visit2/hot/tag_yuanluo.png


BIN
资源/staticData/visit2/hot/tag_zhangshou.png


BIN
资源/staticData/visit2/hot/touhu.png


BIN
资源/staticData/visit2/hot/yuanluo1.png


BIN
资源/staticData/visit2/hot/yuanluo2.png


BIN
资源/staticData/visit2/hot/yuanluo3.png


BIN
资源/staticData/visit2/hot/zhangshou.png


BIN
资源/staticData/xianJu/hot/dongwanggong.png


BIN
资源/staticData/xianJu/hot/fengshi.png


BIN
资源/staticData/xianJu/hot/fuyinawa.png


BIN
资源/staticData/xianJu/hot/hebo.png


BIN
资源/staticData/xianJu/hot/leishen.png


BIN
资源/staticData/xianJu/hot/tag_fengshi.png


BIN
资源/staticData/xianJu/hot/tag_fuyinawa.png


BIN
资源/staticData/xianJu/hot/tag_hebo.png


BIN
资源/staticData/xianJu/hot/tag_leishen.png


BIN
资源/staticData/xianJu/hot/tag_xianjieshen.png


BIN
资源/staticData/xianJu/hot/tag_yushi.png


BIN
资源/staticData/xianJu/hot/taiyishen.png


BIN
资源/staticData/xianJu/hot/xiwangmu.png


BIN
资源/staticData/xianJu/hot/yuren.png


BIN
资源/staticData/xianJu/hot/yushi.png