123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197 |
- import store from "@/store";
- export type TabType = {
- id: number;
- name: string;
- x: string;
- y: string;
- b: string;
- r: string;
- type: "底部" | "顶部";
- link: string;
- };
- type MapType = {
- id: number;
- name: string;
- x: string;
- y: string;
- ind: number;
- son: TabType[];
- };
- export const mapData1: MapType[] = [
- {
- id: 1,
- name: "虎门故事",
- x: "33%",
- y: "7%",
- ind: 23,
- son: [
- {
- id: 1.1,
- name: "虎门故事",
- x: "20%",
- y: "10%",
- b: "auto",
- r: "auto",
- type: "底部",
- link: "https://www.baidu.com/",
- },
- {
- id: 1.2,
- name: "消烟池",
- x: "auto",
- y: "auto",
- b: "40%",
- r: "40%",
- type: "顶部",
- link: "https://www.baidu.com/",
- },
- ],
- },
- {
- id: 2,
- name: "鸦片战争博物馆",
- x: "31%",
- y: "6%",
- ind: 22,
- son: [
- {
- id: 2.1,
- name: "22222-1111",
- x: "20%",
- y: "10%",
- b: "auto",
- r: "auto",
- type: "顶部",
- link: "https://www.baidu.com/",
- },
- ],
- },
- {
- id: 3,
- name: "海战馆",
- x: "16%",
- y: "41%",
- ind: 22,
- son: [
- {
- id: 2.1,
- name: "22222-1111",
- x: "20%",
- y: "10%",
- b: "auto",
- r: "auto",
- type: "顶部",
- link: "https://www.baidu.com/",
- },
- ],
- },
- ];
- export const maoData2 = [
- {
- id: 4,
- name: "镇远炮台",
- x: "8%",
- y: "45%",
- b: "auto",
- r: "auto",
- ind: 21,
- type: "left",
- link: "https://www.baidu.com/",
- },
- {
- id: 5,
- name: "靖远炮台",
- x: "11%",
- y: "42%",
- b: "auto",
- r: "auto",
- ind: 21,
- type: "left",
- link: "https://www.baidu.com/",
- loc: "顶部",
- },
- {
- id: 6,
- name: "南山顶炮台",
- x: "12%",
- y: "41%",
- b: "auto",
- r: "auto",
- ind: 21,
- type: "left",
- link: "https://www.baidu.com/",
- loc: "顶部",
- },
- {
- id: 7,
- name: "威远炮台",
- x: "10%",
- y: "47%",
- b: "auto",
- r: "auto",
- ind: 21,
- type: "left",
- link: "https://www.baidu.com/",
- },
- {
- id: 8,
- name: "威胜东台",
- x: "12%",
- y: "46%",
- b: "auto",
- r: "auto",
- ind: 21,
- type: "left",
- link: "https://www.baidu.com/",
- },
- // --------------
- {
- id: 9,
- name: "沙角炮台",
- x: "auto",
- y: "auto",
- b: "11%",
- r: "26.8%",
- ind: 21,
- type: "right",
- link: "https://www.baidu.com/",
- loc: "顶部",
- },
- {
- id: 10,
- name: "林则徐纪念馆旧址",
- x: "auto",
- y: "auto",
- b: "11%",
- r: "25.4%",
- ind: 21,
- type: "right",
- link: "https://www.baidu.com/",
- loc: "顶部",
- },
- {
- id: 11,
- name: "捕鱼台",
- x: "auto",
- y: "auto",
- b: "6%",
- r: "22.8%",
- ind: 21,
- type: "right",
- link: "https://www.baidu.com/",
- loc: "顶部",
- },
- ];
- // 设置图片加载完成的仓库数据
- export const imgLodingFu = (id: number) => {
- const oldArr = store.getState().A0layout.imgLodingArr;
- if (oldArr.includes(id)) {
- } else {
- store.dispatch({ type: "layout/imgLoding", payload: [...oldArr, id] });
- }
- };
|