Skip to content

Commit

Permalink
feat(): 初始化全景看房页面
Browse files Browse the repository at this point in the history
  • Loading branch information
wa-monster committed Sep 6, 2024
1 parent c48cfd5 commit e586d96
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/pages/Three/010/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React, { useEffect } from "react";
import { initMain } from "./main";
const LookHouse = () => {
useEffect(() => {
initMain("#container");
}, []);
return <div className="bg-white h-full" id="container"></div>;
};
export default LookHouse;
10 changes: 10 additions & 0 deletions src/pages/Three/010/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { createRendererer } from "@/hooks/3d/components/renderer";
import { createCamera } from "@/hooks/3d/components/camera";
import { createScene } from "@/hooks/3d/components/scene";
import { Resize } from "@/hooks/3d/system/Resizer";
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls";
import * as Three from "three";

const initMain = (id: string) => {};

export { initMain };
10 changes: 9 additions & 1 deletion src/router/menuRoute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const WalkPerson = lazy(() => import("@/pages/Three/006"));
const EarthGl = lazy(() => import("@/pages/Three/007"));
const SeniorEarth = lazy(() => import("@/pages/Three/008"));
const Video360 = lazy(() => import("@/pages/Three/009"));
const LookHouse = lazy(() => import("@/pages/Three/010"));
const AntVX6WorkFlow = lazy(
() => import("@/pages/WorkFlow/AntVX6WorkFlow/index")
);
Expand Down Expand Up @@ -209,7 +210,6 @@ export const menuRouteArr = [
icon: <PieChartOutlined />,
},
},

{
path: "009",
element: <FactorySuspense ele={Video360} />,
Expand All @@ -218,6 +218,14 @@ export const menuRouteArr = [
icon: <PieChartOutlined />,
},
},
{
path: "010",
element: <FactorySuspense ele={LookHouse} />,
handle: {
name: "010全景看房",
icon: <PieChartOutlined />,
},
},
],
},
// 好看的
Expand Down

0 comments on commit e586d96

Please sign in to comment.