shaogen1995 1 year ago
parent
commit
1a7c9c9674

BIN
Code/public/favicon.ico


+ 15 - 5
Code/public/myData/myData.js

@@ -443,6 +443,8 @@ const banquetHotArr = [
     ]
   },
   {
+    //是否是文物
+    isModel: true,
     // 是否在更多模块中显示-true表示不显示
     noShow: true,
     // 热点名字
@@ -470,6 +472,8 @@ const banquetHotArr = [
     ]
   },
   {
+    //是否是文物
+    isModel: true,
     // 是否在更多模块中显示-true表示不显示
     noShow: true,
     // 热点名字
@@ -502,6 +506,8 @@ const banquetHotArr = [
     ]
   },
   {
+    //是否是文物
+    isModel: true,
     // 是否在更多模块中显示-true表示不显示
     noShow: true,
     // 热点名字
@@ -529,6 +535,8 @@ const banquetHotArr = [
     ]
   },
   {
+    //是否是文物
+    isModel: true,
     // 是否在更多模块中显示-true表示不显示
     noShow: true,
     // 热点名字
@@ -612,6 +620,8 @@ const danceHotArr = [
 const plowHotArr = [
   // 陶井,5个模块都有
   {
+    //是否是文物
+    isModel: true,
     // 一直存在
     isChang: true,
     // 热点名字
@@ -1240,14 +1250,14 @@ const myDataTemp = {
   // 更多(静态资源目录位置:staticData/more)
   more: {
     // 视频位置 more/
-    // 从 探索庄园=》汉代风华 播放 1.mp4
+    // 从 探索庄园=》汉代百科 播放 1.mp4
     // 从 探索庄园=》文物欣赏 播放 2.mp4
 
-    // 从 汉代风华=》探索庄园 播放 3.mp4
-    // 从 汉代风华=》文物欣赏 播放 4.mp4
+    // 从 汉代百科=》探索庄园 播放 3.mp4
+    // 从 汉代百科=》文物欣赏 播放 4.mp4
 
     // 从 文物欣赏=》探索庄园 播放 5.mp4
-    // 从 文物欣赏=》汉代风华 播放 6.mp4
+    // 从 文物欣赏=》汉代百科 播放 6.mp4
     // 初始就加载这6个视频
     videos: ['more/1.mp4', 'more/2.mp4', 'more/3.mp4', 'more/4.mp4', 'more/5.mp4', 'more/6.mp4'],
 
@@ -1330,7 +1340,7 @@ const myDataTemp = {
         }
       ]
     },
-    汉代风华: {
+    汉代百科: {
       物: {
         // 背景图路径+名字
         bg: 'more/bg2.jpg',

+ 4 - 1
Code/src/components/HotIcon/index.tsx

@@ -4,6 +4,8 @@ import { baseURL } from '@/utils/http'
 import classNames from 'classnames'
 
 type Props = {
+  // 是否是模型
+  isModel: boolean
   index: number
   clickSon?: (index: number) => void //点击
   hoverSrc: string //鼠标移入显示的图片
@@ -19,6 +21,7 @@ type Props = {
 }
 
 function HotIcon({
+  isModel,
   index,
   clickSon,
   hoverSrc,
@@ -62,7 +65,7 @@ function HotIcon({
         onMouseEnter={onMouseEnter}
         onClick={clickSonFu}
         className='HotIconBase'
-        src={`${baseURL}visit/hot/hotBase.png`}
+        src={`${baseURL}visit/hot/hotBase${isModel ? '2' : ''}.png`}
         alt=''
       />
       <img

+ 1 - 0
Code/src/pages/A2visit/PanoVideo/index.tsx

@@ -71,6 +71,7 @@ function PanoVideo() {
                 onClick={() => setInd(index)}
               >
                 <HotIcon
+                  isModel={item.isModel ? true : false}
                   index={index}
                   isHoverAc={activeIdx === index}
                   hoverSrc={item.hoverSrc}

+ 1 - 0
Code/src/pages/A3banquet/PanoImg/index.tsx

@@ -87,6 +87,7 @@ function PanoImg() {
                 // onDown='draggable_hotspot()'
               >
                 <HotIcon
+                  isModel={item.isModel ? true : false}
                   key={index}
                   index={index}
                   isHoverAc={activeIdx === index}

+ 1 - 0
Code/src/pages/A5chef/index.tsx

@@ -89,6 +89,7 @@ function A5chef() {
             {/* 循环渲染热点 */}
             {myData.chef.hot.map((item, index) => (
               <HotIcon
+                isModel={item.isModel ? true : false}
                 style={{
                   top: item.loc.top,
                   left: item.loc.left

+ 1 - 0
Code/src/pages/A6plow/index.tsx

@@ -131,6 +131,7 @@ function A6plow() {
                 {/* 热点 */}
                 {item.hot.map((v: PlowHotType, i) => (
                   <HotIcon
+                    isModel={v.isModel ? true : false}
                     style={{
                       top: v.locPage.top,
                       left: v.locPage.left

+ 1 - 0
Code/src/pages/B1more/S1manor/index.tsx

@@ -43,6 +43,7 @@ function S1manor({ hidden }: Props) {
         {data.hot.map((item, index) => (
           // 热点图标
           <HotIcon
+            isModel={item.isModel ? true : false}
             key={index}
             index={index}
             clickSon={val => clickSon(val)}

+ 2 - 1
Code/src/pages/B1more/S2mien/index.tsx

@@ -14,7 +14,7 @@ type TitType = '物' | '人'
 
 const leftFloorArr: TitType[] = ['物', '人']
 
-const dataTemp = myData.more['汉代风华']
+const dataTemp = myData.more['汉代百科']
 
 const data1 = dataTemp['物']
 
@@ -107,6 +107,7 @@ function S2mien({ hidden }: Props) {
         {/* 热点图标 */}
         {data1.hot.map((item, index) => (
           <HotIcon
+            isModel={item.isModel ? true : false}
             key={index}
             index={index}
             clickSon={val => clickSon(val)}

+ 6 - 6
Code/src/pages/B1more/index.tsx

@@ -14,22 +14,22 @@ import VideoModel from '@/components/VideoModel'
 
 const videoObj = {
   探索庄园: {
-    汉代风华: 'more/1.mp4',
+    汉代百科: 'more/1.mp4',
     文物欣赏: 'more/2.mp4'
   },
-  汉代风华: {
+  汉代百科: {
     探索庄园: 'more/3.mp4',
     文物欣赏: 'more/4.mp4'
   },
   文物欣赏: {
     探索庄园: 'more/5.mp4',
-    汉代风华: 'more/6.mp4'
+    汉代百科: 'more/6.mp4'
   }
 }
 
-type TxtType = '探索庄园' | '汉代风华' | '文物欣赏'
+type TxtType = '探索庄园' | '汉代百科' | '文物欣赏'
 
-const floorArr: TxtType[] = ['探索庄园', '汉代风华', '文物欣赏']
+const floorArr: TxtType[] = ['探索庄园', '汉代百科', '文物欣赏']
 
 function B1more() {
   const [floorTxt, setFloorTxt] = useState<TxtType>('探索庄园')
@@ -89,7 +89,7 @@ function B1more() {
       {imgNow ? (
         <>
           <S1manor hidden={!!videoSrc || floorTxt !== '探索庄园'} />
-          <S2mien hidden={!!videoSrc || floorTxt !== '汉代风华'} />
+          <S2mien hidden={!!videoSrc || floorTxt !== '汉代百科'} />
           <S3goods hidden={!!videoSrc || floorTxt !== '文物欣赏'} />
         </>
       ) : null}

+ 1 - 0
Code/src/types/api/layot.d.ts

@@ -19,6 +19,7 @@ export type VisitHotDataType = {
 }[]
 
 export type PlowHotType = {
+  isModel?: boolean
   name: string
   hoverSrc: string
   locPage: {

+ 7 - 1
Code/src/types/declaration.d.ts

@@ -30,6 +30,7 @@ type MyDataType = {
     videos: string[]
     lastVideo: string
     hot: {
+      isModel?: boolean
       name: string
       size: number
       atv: number
@@ -43,6 +44,7 @@ type MyDataType = {
     videos: string[]
     lastVideo: string
     hot: {
+      isModel?: boolean
       name: string
       size: number
       atv: number
@@ -54,6 +56,7 @@ type MyDataType = {
 
   dance: {
     hot: {
+      isModel?: boolean
       name: string
       hoverSrc: string
       videoSrc: string
@@ -99,6 +102,7 @@ type MyDataType = {
     baseImg: string
     houChuImg: string
     hot: {
+      isModel?: boolean
       name: string
       hoverSrc: string
       videoId: string
@@ -129,6 +133,7 @@ type MyDataType = {
     探索庄园: {
       bg: string
       hot: {
+        isModel?: boolean
         name: string
         leftImg: string
         hoverSrc: string
@@ -140,10 +145,11 @@ type MyDataType = {
         }
       }[]
     }
-    汉代风华: {
+    汉代百科: {
       物: {
         bg: string
         hot: {
+          isModel?: boolean
           name: string
           hoverSrc: string
           zIndex?: number

BIN
资源/staticData/banquet/hot/hot4.png


BIN
资源/staticData/banquet/hot/hot5.png


BIN
资源/staticData/banquet/hot/hot6.png


BIN
资源/staticData/banquet/hot/hot7.png


BIN
资源/staticData/banquet/mulu.png


BIN
资源/staticData/chef/mulu.png


BIN
资源/staticData/dance/mulu.png


BIN
资源/staticData/more/hot/hot2.png


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


BIN
资源/staticData/plow/mulu.png


BIN
资源/staticData/visit/hot/hotBase2.png


BIN
资源/staticData/visit/mulu.png