|
@@ -4,6 +4,7 @@ import history from "@/utils/history";
|
|
import classNames from "classnames";
|
|
import classNames from "classnames";
|
|
import logoImg from "@/assets/img/home/title-home.png";
|
|
import logoImg from "@/assets/img/home/title-home.png";
|
|
import sceneTitImg from "@/assets/img/home/Group.png";
|
|
import sceneTitImg from "@/assets/img/home/Group.png";
|
|
|
|
+import { MessageFu } from "@/utils/message";
|
|
|
|
|
|
const arr = [
|
|
const arr = [
|
|
{ id: 1, name: "线上展厅" },
|
|
{ id: 1, name: "线上展厅" },
|
|
@@ -15,23 +16,23 @@ const arr = [
|
|
const sceneArr = [
|
|
const sceneArr = [
|
|
{
|
|
{
|
|
id: 1,
|
|
id: 1,
|
|
- name: "文物厅",
|
|
|
|
- path: "/gzswc/scene/index.html#/?m=1171",
|
|
|
|
|
|
+ name: "精品文物厅",
|
|
|
|
+ path: "/gzswc/scene/index.html#/?m=KJ-ztJ9nPQyf64",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
id: 2,
|
|
id: 2,
|
|
- name: "书法厅",
|
|
|
|
- path: "/gzswc/scene/index.html#/?m=1171",
|
|
|
|
|
|
+ name: "书画厅",
|
|
|
|
+ path: "/gzswc/scene/index.html#/?m=KJ-wlpyvYdFNXN",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
id: 3,
|
|
id: 3,
|
|
- name: "仡佬族文化厅",
|
|
|
|
- path: "/gzswc/scene/index.html#/?m=1171",
|
|
|
|
|
|
+ name: "仡佬·务川主题展",
|
|
|
|
+ path: "",
|
|
},
|
|
},
|
|
{
|
|
{
|
|
id: 4,
|
|
id: 4,
|
|
- name: "30周年成就展",
|
|
|
|
- path: "/gzswc/scene/index.html#/?m=1171",
|
|
|
|
|
|
+ name: "中国仡佬族民族文化展厅",
|
|
|
|
+ path: "/gzswc/scene/index.html#/?m=KJ-Rytmid9ku2a",
|
|
},
|
|
},
|
|
];
|
|
];
|
|
|
|
|
|
@@ -64,7 +65,8 @@ function A1_Home() {
|
|
// 点击线上展厅页面
|
|
// 点击线上展厅页面
|
|
const sceneClickFu = useCallback((id: number, path: string) => {
|
|
const sceneClickFu = useCallback((id: number, path: string) => {
|
|
setSceneInd(id);
|
|
setSceneInd(id);
|
|
- window.open(path);
|
|
|
|
|
|
+ if (path) window.open(path);
|
|
|
|
+ else MessageFu.warning("敬请期待!");
|
|
}, []);
|
|
}, []);
|
|
|
|
|
|
return (
|
|
return (
|