shaogen1995 2 years ago
parent
commit
4e02853510

+ 7 - 0
pc/src/App.tsx

@@ -22,8 +22,15 @@ function App() {
       <Router history={history}>
       <Router history={history}>
         <React.Suspense fallback={<SpinLoding />}>
         <React.Suspense fallback={<SpinLoding />}>
           <Switch>
           <Switch>
+            
+            {/* 线上开发 */}
             <Route exact path="/" component={Home} />
             <Route exact path="/" component={Home} />
             <Route exact path="/goods" component={Goods} />
             <Route exact path="/goods" component={Goods} />
+
+            {/* 本地化 */}
+            {/* <Route exact path="/" component={Goods} />
+            <Route exact path="/home" component={Home} /> */}
+
             {/* 找不到页面 */}
             {/* 找不到页面 */}
             <Route path="*" component={NotFound} />
             <Route path="*" component={NotFound} />
           </Switch>
           </Switch>

BIN
pc/src/assets/img/home/bg-home.jpg


BIN
pc/src/assets/img/home/scene3.jpg


+ 2 - 2
pc/src/pages/A1_Home/index.tsx

@@ -29,7 +29,7 @@ const sceneArr = [
   {
   {
     id: 3,
     id: 3,
     name: "仡佬·务川主题展",
     name: "仡佬·务川主题展",
-    path: "",
+    path: "https://www.4dkankan.com/spg.html?m=KJ-vTmFlWyrzlK&lang=zh",
   },
   },
   {
   {
     id: 4,
     id: 4,
@@ -53,7 +53,7 @@ function A1_Home() {
     if (id === 1) setScene(true);
     if (id === 1) setScene(true);
     else if (id === 2)
     else if (id === 2)
       window.open(
       window.open(
-        "https://www.4dkankan.com/panorama/show.html?id=WK1655789833349554176&vr=fd720_ZLt4ctJUZ&lang=zh"
+        "https://www.4dkankan.com/panorama/show.html?id=WK1681149906435211264&vr=fd720_P0ho9mG73&lang=zh"
       );
       );
     else if (id === 3)
     else if (id === 3)
       window.open(
       window.open(

+ 13 - 1
pc/src/pages/A2_Goods/GoodsInfo/index.module.scss

@@ -44,7 +44,8 @@
         background-image: url('../../../assets/img/goods/infoBac.jpg');
         background-image: url('../../../assets/img/goods/infoBac.jpg');
         background-size: 100% 100%;
         background-size: 100% 100%;
 
 
-
+        // 本地化
+        // padding: 120px 0 0 60px;
 
 
         .title {
         .title {
           font-size: 22px;
           font-size: 22px;
@@ -54,6 +55,9 @@
           position: relative;
           position: relative;
           padding-right: 140px;
           padding-right: 140px;
 
 
+          // 本地化
+          // font-size: 26px;
+
           .audioBox {
           .audioBox {
             cursor: pointer;
             cursor: pointer;
             position: absolute;
             position: absolute;
@@ -71,12 +75,20 @@
           font-size: 16px;
           font-size: 16px;
           font-weight: 700;
           font-weight: 700;
           margin-bottom: 15px;
           margin-bottom: 15px;
+
+          // 本地化
+          // font-size: 20px;
         }
         }
 
 
         .infoTxt {
         .infoTxt {
           padding-right: 100px;
           padding-right: 100px;
           margin-top: 34px;
           margin-top: 34px;
           font-size: 12px;
           font-size: 12px;
+
+          // 本地化
+          // font-size: 20px;
+          // line-height: 40px;
+
         }
         }
 
 
       }
       }

+ 11 - 0
pc/src/pages/A2_Goods/GoodsInfo/index.tsx

@@ -52,7 +52,18 @@ function GoodsInfo({ data, closePageFu }: Props) {
 
 
           {/* 左边模型 */}
           {/* 左边模型 */}
           <div className="infoL">
           <div className="infoL">
+            
+            {/* 线上开发 */}
             <iframe src={data.link} frameBorder="0"></iframe>
             <iframe src={data.link} frameBorder="0"></iframe>
+
+            {/* 本地化 */}
+            {/* <iframe
+              src={data.link.replace(
+                "https://4dscene.4dage.com/culturalrelics",
+                ""
+              )}
+              frameBorder="0"
+            ></iframe> */}
           </div>
           </div>
           {/* 右边信息 */}
           {/* 右边信息 */}
           <div className="infoR">
           <div className="infoR">

+ 5 - 1
pc/src/pages/A2_Goods/index.tsx

@@ -1,7 +1,9 @@
 import React, { useEffect, useMemo, useRef, useState } from "react";
 import React, { useEffect, useMemo, useRef, useState } from "react";
 import styles from "./index.module.scss";
 import styles from "./index.module.scss";
 import logoImg from "@/assets/img/goods/logo.png";
 import logoImg from "@/assets/img/goods/logo.png";
+
 import { GoodsType, goodsArr } from "@/utils/data";
 import { GoodsType, goodsArr } from "@/utils/data";
+
 import history, { envUrl } from "@/utils/history";
 import history, { envUrl } from "@/utils/history";
 import { CloseOutlined } from "@ant-design/icons";
 import { CloseOutlined } from "@ant-design/icons";
 import curImg from "@/assets/img/goods/cur.png";
 import curImg from "@/assets/img/goods/cur.png";
@@ -66,7 +68,9 @@ function A2_Goods() {
       </div>
       </div>
 
 
       {/* 回到首页 */}
       {/* 回到首页 */}
-      <div className="toHomeBox" onClick={() => history.push("/")}></div>
+
+      {/* 本地化 + hidden */}
+      <div className="toHomeBox" onClick={() => history.push("/")} ></div>
       {/* 文物主体 */}
       {/* 文物主体 */}
       <div className="goodsMain" id="goddsSwBox">
       <div className="goodsMain" id="goddsSwBox">
         <div
         <div