|
@@ -1,67 +1,131 @@
|
|
|
-export const topData = [
|
|
|
- { id: 1, name: "Home", pathName: "Home", url: "home" },
|
|
|
+import HomeIcon from "./icons/home.png";
|
|
|
+import VisitIcon from "./icons/visit.png";
|
|
|
+import ExhibitionsIcon from "./icons/exhibitions.png";
|
|
|
+import CollectionsIcon from "./icons/collections.png";
|
|
|
+import EngageIcon from "./icons/engage.png";
|
|
|
+import PublicationsIcon from "./icons/publications.png";
|
|
|
+import SupportIcon from "./icons/support.png";
|
|
|
+import AboutIcon from "./icons/about.png";
|
|
|
+import FunctionsIcon from "./icons/functions.png";
|
|
|
+import type { RouteLocationRaw } from "vue-router";
|
|
|
+
|
|
|
+export interface TOP_DATA {
|
|
|
+ id: number;
|
|
|
+ icon?: string;
|
|
|
+ name: string;
|
|
|
+ fullname?: string;
|
|
|
+ /**
|
|
|
+ * 是否在导航栏显示
|
|
|
+ */
|
|
|
+ hideNav?: boolean;
|
|
|
+ routeParams?: RouteLocationRaw;
|
|
|
+ children?: TOP_DATA[];
|
|
|
+}
|
|
|
+
|
|
|
+export const topData: TOP_DATA[] = [
|
|
|
+ { id: 1, icon: HomeIcon, name: "Home", routeParams: { name: "Home" } },
|
|
|
{
|
|
|
id: 2,
|
|
|
+ icon: VisitIcon,
|
|
|
name: "Visit",
|
|
|
- pathName: "Visit",
|
|
|
- url: "Visit",
|
|
|
+ routeParams: { name: "Visit" },
|
|
|
children: [
|
|
|
- { url: "/Layout/Visit/8", id: 2.8, name: "Calendar" },
|
|
|
- { url: "/Layout/Visit/1", id: 2.1, name: "Hours, Direction & Admission" },
|
|
|
- { url: "/Layout/Visit/2", id: 2.2, name: "Reservation" },
|
|
|
- { url: "/Layout/Visit/3", id: 2.3, name: "Floor Plans" },
|
|
|
- { url: "/Layout/Visit/4", id: 2.4, name: "Audio Guide & Tour" },
|
|
|
- { url: "/Layout/Visit/5", id: 2.5, name: "Accessibility" },
|
|
|
- { url: "/Layout/Visit/6", id: 2.6, name: "Café & Shop" },
|
|
|
- { url: "/Layout/Visit/7", id: 2.7, name: "Visitor Guidelines" },
|
|
|
+ { routeParams: "/Layout/Visit/8", id: 2.8, name: "Calendar" },
|
|
|
+ {
|
|
|
+ routeParams: "/Layout/Visit/1",
|
|
|
+ id: 2.1,
|
|
|
+ name: "Hours, Direction & Admission",
|
|
|
+ },
|
|
|
+ { routeParams: "/Layout/Visit/2", id: 2.2, name: "Reservation" },
|
|
|
+ { routeParams: "/Layout/Visit/3", id: 2.3, name: "Floor Plans" },
|
|
|
+ { routeParams: "/Layout/Visit/4", id: 2.4, name: "Audio Guide & Tour" },
|
|
|
+ { routeParams: "/Layout/Visit/5", id: 2.5, name: "Accessibility" },
|
|
|
+ { routeParams: "/Layout/Visit/6", id: 2.6, name: "Café & Shop" },
|
|
|
+ { routeParams: "/Layout/Visit/7", id: 2.7, name: "Visitor Guidelines" },
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
id: 3,
|
|
|
+ icon: ExhibitionsIcon,
|
|
|
name: "Exhibitions",
|
|
|
- pathName: "Exhibitions",
|
|
|
- url: "Exhibitions/1",
|
|
|
+ routeParams: { name: "Exhibitions", params: { type: 1 } },
|
|
|
children: [
|
|
|
- { url: "/Layout/Exhibitions/1", id: 3.1, name: "Current Exhibitions" },
|
|
|
- { url: "/Layout/Exhibitions/2", id: 3.2, name: "Permanent Exhibitions" },
|
|
|
- { url: "/Layout/Exhibitions/3", id: 3.3, name: "Past Exhibitions" },
|
|
|
- { url: "/Layout/Exhibitions/4", id: 3.4, name: "Overseas Exhibitions" },
|
|
|
+ {
|
|
|
+ routeParams: "/Layout/Exhibitions/1",
|
|
|
+ id: 3.1,
|
|
|
+ name: "Current Exhibitions",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ routeParams: "/Layout/Exhibitions/2",
|
|
|
+ id: 3.2,
|
|
|
+ name: "Permanent Exhibitions",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ routeParams: "/Layout/Exhibitions/3",
|
|
|
+ id: 3.3,
|
|
|
+ name: "Past Exhibitions",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ routeParams: "/Layout/Exhibitions/4",
|
|
|
+ id: 3.4,
|
|
|
+ name: "Overseas Exhibitions",
|
|
|
+ },
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
id: 4,
|
|
|
+ icon: CollectionsIcon,
|
|
|
name: "Collections",
|
|
|
- pathName: "Collections",
|
|
|
- url: "Collections/Bronzes",
|
|
|
+ routeParams: { name: "Collections", params: { type: "Bronzes" } },
|
|
|
children: [
|
|
|
- { url: "/Layout/Collections/Bronzes", id: 4.1, name: "Bronzes" },
|
|
|
- { url: "/Layout/Collections/Ceramics", id: 4.2, name: "Ceramics" },
|
|
|
+ { routeParams: "/Layout/Collections/Bronzes", id: 4.1, name: "Bronzes" },
|
|
|
+ {
|
|
|
+ routeParams: "/Layout/Collections/Ceramics",
|
|
|
+ id: 4.2,
|
|
|
+ name: "Ceramics",
|
|
|
+ },
|
|
|
{
|
|
|
- url: "/Layout/Collections/Buddhist",
|
|
|
+ routeParams: "/Layout/Collections/Buddhist",
|
|
|
id: 4.3,
|
|
|
name: "Buddhist Statues",
|
|
|
},
|
|
|
- { url: "/Layout/Collections/Jadewares", id: 4.4, name: "Jadewares" },
|
|
|
{
|
|
|
- url: "/Layout/Collections/Calligraphies",
|
|
|
+ routeParams: "/Layout/Collections/Jadewares",
|
|
|
+ id: 4.4,
|
|
|
+ name: "Jadewares",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ routeParams: "/Layout/Collections/Calligraphies",
|
|
|
id: 4.5,
|
|
|
name: "Calligraphies",
|
|
|
},
|
|
|
- { url: "/Layout/Collections/Paintings", id: 4.6, name: "Paintings" },
|
|
|
- { url: "/Layout/Collections/Gold", id: 4.7, name: "Gold & Silverwares" },
|
|
|
- { url: "/Layout/Collections/Coins", id: 4.8, name: "Coins & Banknotes" },
|
|
|
{
|
|
|
- url: "/Layout/Collections/Brocades",
|
|
|
+ routeParams: "/Layout/Collections/Paintings",
|
|
|
+ id: 4.6,
|
|
|
+ name: "Paintings",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ routeParams: "/Layout/Collections/Gold",
|
|
|
+ id: 4.7,
|
|
|
+ name: "Gold & Silverwares",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ routeParams: "/Layout/Collections/Coins",
|
|
|
+ id: 4.8,
|
|
|
+ name: "Coins & Banknotes",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ routeParams: "/Layout/Collections/Brocades",
|
|
|
id: 4.9,
|
|
|
name: "Brocades & Embroideries",
|
|
|
},
|
|
|
{
|
|
|
- url: "/Layout/Collections/Cultural",
|
|
|
+ routeParams: "/Layout/Collections/Cultural",
|
|
|
id: 4.1,
|
|
|
name: "Cultural Supplies",
|
|
|
},
|
|
|
{
|
|
|
- url: "/Layout/Collections/Miscellaneous",
|
|
|
+ routeParams: "/Layout/Collections/Miscellaneous",
|
|
|
id: 4.11,
|
|
|
name: "Miscellaneous",
|
|
|
},
|
|
@@ -69,14 +133,22 @@ export const topData = [
|
|
|
},
|
|
|
{
|
|
|
id: 5,
|
|
|
+ icon: EngageIcon,
|
|
|
name: "Learn & Engage",
|
|
|
- pathName: "LearnEngage",
|
|
|
- url: "LearnEngage/Students",
|
|
|
+ routeParams: { name: "LearnEngage" },
|
|
|
children: [
|
|
|
- { url: "/Layout/LearnEngage/Students", id: 5.1, name: "For Students" },
|
|
|
- { url: "/Layout/LearnEngage/Adults", id: 5.2, name: "For Adults" },
|
|
|
{
|
|
|
- url: "/Layout/LearnEngage/Families",
|
|
|
+ routeParams: "/Layout/LearnEngage/Students",
|
|
|
+ id: 5.1,
|
|
|
+ name: "For Students",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ routeParams: "/Layout/LearnEngage/Adults",
|
|
|
+ id: 5.2,
|
|
|
+ name: "For Adults",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ routeParams: "/Layout/LearnEngage/Families",
|
|
|
id: 5.3,
|
|
|
name: "For Families & Children",
|
|
|
},
|
|
@@ -84,40 +156,107 @@ export const topData = [
|
|
|
},
|
|
|
{
|
|
|
id: 6,
|
|
|
+ icon: PublicationsIcon,
|
|
|
name: "Publications",
|
|
|
- pathName: "Publications",
|
|
|
- url: "Publications",
|
|
|
+ fullname: "Preservation & Publications",
|
|
|
+ routeParams: { name: "Publications" },
|
|
|
children: [
|
|
|
- { url: "/Layout/Publications/1", id: 6.1, name: "Magazines" },
|
|
|
- { url: "/Layout/Publications/2", id: 6.2, name: "Exhibition Catalogues" },
|
|
|
- // {url:'/Layout/Publications/3', id: 6.3, name: "Research" },
|
|
|
+ { routeParams: "/Layout/Publications/1", id: 6.1, name: "Magazines" },
|
|
|
+ {
|
|
|
+ routeParams: "/Layout/Publications/2",
|
|
|
+ id: 6.2,
|
|
|
+ name: "Exhibition Catalogues",
|
|
|
+ },
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
id: 7,
|
|
|
+ icon: SupportIcon,
|
|
|
name: "Join & Support",
|
|
|
- pathName: "JoinSupport",
|
|
|
- url: "JoinSupport/Volunteer",
|
|
|
+ routeParams: { name: "JoinSupport" },
|
|
|
children: [
|
|
|
{
|
|
|
- url: "/Layout/JoinSupport/Volunteer",
|
|
|
+ routeParams: "/Layout/JoinSupport/Volunteer",
|
|
|
id: 7.1,
|
|
|
name: "Ways to Volunteer",
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ routeParams: "/Layout/JoinSupport/VolunteerInfo?id=1",
|
|
|
+ id: 7.11,
|
|
|
+ name: "Volunteer Team Introduction",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ routeParams: "/Layout/JoinSupport/VolunteerInfo?id=2",
|
|
|
+ id: 7.12,
|
|
|
+ name: "Volunteer Apply",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ routeParams: "/Layout/JoinSupport/VolunteerInfo?id=3",
|
|
|
+ id: 7.13,
|
|
|
+ name: "Volunteer Program",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ routeParams: "/Layout/JoinSupport/Give",
|
|
|
+ id: 7.2,
|
|
|
+ name: "Ways to Give",
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ routeParams: "/Layout/JoinSupport/GiveInfo?id=4",
|
|
|
+ id: 7.21,
|
|
|
+ name: "Individuals",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ routeParams: "/Layout/JoinSupport/GiveInfo?id=5",
|
|
|
+ id: 7.22,
|
|
|
+ name: "Corporations Institutions",
|
|
|
+ },
|
|
|
+ ],
|
|
|
},
|
|
|
- { url: "/Layout/JoinSupport/Give", id: 7.2, name: "Ways to Give" },
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
id: 8,
|
|
|
+ icon: AboutIcon,
|
|
|
name: "About",
|
|
|
- pathName: "About",
|
|
|
- url: "About",
|
|
|
- about: true,
|
|
|
+ routeParams: { name: "About" },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ routeParams: { name: "About", query: { scroll: 352 } },
|
|
|
+ id: 8.1,
|
|
|
+ name: "From the Director",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ routeParams: { name: "About", query: { scroll: 816 } },
|
|
|
+ id: 8.2,
|
|
|
+ name: "History",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ routeParams: { name: "About", query: { scroll: 1319 } },
|
|
|
+ id: 8.3,
|
|
|
+ name: "Partners & Connections",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ routeParams: { name: "About", query: { scroll: 1525 } },
|
|
|
+ id: 8.4,
|
|
|
+ name: "Contact",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ id: 9,
|
|
|
+ icon: FunctionsIcon,
|
|
|
+ name: "Auxiliary Functions",
|
|
|
+ hideNav: true,
|
|
|
children: [
|
|
|
- { url: 352, id: 8.1, name: "From the Director" },
|
|
|
- { url: 816, id: 8.2, name: "History" },
|
|
|
- { url: 1319, id: 8.3, name: "Partners & Connections" },
|
|
|
- { url: 1525, id: 8.4, name: "Contact" },
|
|
|
+ {
|
|
|
+ routeParams: location.origin + "/mobile/index.html",
|
|
|
+ id: 9.1,
|
|
|
+ name: "Mobile Site",
|
|
|
+ },
|
|
|
+ { routeParams: "/Layout/Use", id: 9.2, name: "Terms of Use" },
|
|
|
+ { routeParams: "/Layout/Employment", id: 9.3, name: "Employment" },
|
|
|
],
|
|
|
},
|
|
|
];
|