From ff7803c7293caa7f8aee531f83542c9e4f74a7ac Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 11 Feb 2022 13:47:22 +0800
Subject: [PATCH] 我的标记的修改完善

---
 src/router/page/index.js |  544 +++++++++++++++++++++++++++++-------------------------
 1 files changed, 293 insertions(+), 251 deletions(-)

diff --git a/src/router/page/index.js b/src/router/page/index.js
index 74260c0..9e7047d 100644
--- a/src/router/page/index.js
+++ b/src/router/page/index.js
@@ -2,12 +2,54 @@
  * @Author: Morpheus
  * @Date: 2021-04-30 14:12:09
  * @Last Modified by: mikey.zhaopeng
- * @Last Modified time: 2022-02-08 16:17:12
+ * @Last Modified time: 2022-02-10 10:21:12
  */
 
 import Vue from 'vue'
 import VueRouter from 'vue-router'
 Vue.use(VueRouter)
+
+const pcLayout = () => import('../../pcLayout/index.vue')
+const pcHome = () => import('../../pcviews/home/index.vue')
+const pcMapnav = () => import('../../pcviews/mapnav/index.vue')
+const pcOrgnav = () => import('../../pcviews/orgnav/index.vue')
+const pcOrgnavMasses = () => import('../../pcviews/orgnav/masses.vue')
+const pcOrgnavOfc = () => import('../../pcviews/orgnav/ofc.vue')
+const pcOrgnavDirectly = () => import('../../pcviews/orgnav/directly.vue')
+const pcOrgnavTeaching = () => import('../../pcviews/orgnav/teaching.vue')
+const pcOrgnavRest = () => import('../../pcviews/orgnav/rest.vue')
+const pcArc = () => import('../../pcviews/arc/index.vue')
+const pcArcEdifact = () => import('../../pcviews/arc/edifact.vue')
+const pcArcTeaching = () => import('../../pcviews/arc/teaching.vue')
+const pcArcVenue = () => import('../../pcviews/arc/venue.vue')
+const pcArcDorm = () => import('../../pcviews/arc/dorm.vue')
+const pcArcCulture = () => import('../../pcviews/arc/culture.vue')
+const pcArcFamily = () => import('../../pcviews/arc/family.vue')
+const pcArcRest = () => import('../../pcviews/arc/rest.vue')
+const pcService = () => import('../../pcviews/service/index.vue')
+const pcServiceCanteen = () => import('../../pcviews/service/canteen.vue')
+const pcServiceSupermarket = () => import('../../pcviews/service/supermarket.vue')
+const pcServiceMedical = () => import('../../pcviews/service/medical.vue')
+const pcServiceExpress = () => import('../../pcviews/service/express.vue')
+const pcServiceShowers = () => import('../../pcviews/service/showers.vue')
+const pcServiceTransfer = () => import('../../pcviews/service/transfer.vue')
+const pcServiceCopy = () => import('../../pcviews/service/copy.vue')
+const pcServiceBank = () => import('../../pcviews/service/bank.vue')
+const pcServiceAed = () => import('../../pcviews/service/aed.vue')
+const pcServiceService = () => import('../../pcviews/service/service.vue')
+const pcServicePark = () => import('../../pcviews/service/park.vue')
+const pcServiceAlleyway = () => import('../../pcviews/service/alleyway.vue')
+const pcAllquery = () => import('../../pcviews/allquery/index.vue')
+const pcCampusnav = () => import('../../pcviews/campusnav/index.vue')
+const pcCampusnavi = () => import('../../pcviews/campusnavi/index.vue')
+const pcSpecialmap = () => import('../../pcviews/specialmap/index.vue')
+const pcSpecialmapCelebrate = () => import('../../pcviews/specialmap/celebrate.vue')
+const pcSpecialmapWelcome = () => import('../../pcviews/specialmap/welcome.vue')
+const pcTool = () => import('../../pcviews/tool/index.vue')
+const pcToolDownload = () => import('../../pcviews/tool/download.vue')
+const pcToolSign = () => import('../../pcviews/tool/sign.vue')
+const pcToolRanging = () => import('../../pcviews/tool/ranging.vue')
+const pcToolArea = () => import('../../pcviews/tool/area.vue')
 
 const routes = [
     // pc端
@@ -18,281 +60,281 @@
         meta: {
             title: '导航菜单'
         },
-        component: resolve => require(['../../pcLayout/index.vue'], resolve),
+        component: pcLayout,
         children: [{
             path: 'default',
-            component: resolve => require(['../../pcviews/home/index.vue'], resolve),
+            component: pcHome,
             meta: {
                 title: '系统首页'
             },
             children: [{
-                    path: 'mapnav',
-                    component: resolve => require(['../../pcviews/mapnav/index.vue'], resolve),
+                path: 'mapnav',
+                component: pcMapnav,
+                meta: {
+                    title: '地图导览'
+                }
+            },
+            {
+                path: 'orgnav',
+                component: pcOrgnav,
+                meta: {
+                    title: '社区内机构导览'
+                },
+                children: [{
+                    path: 'masses',
+                    component: pcOrgnavMasses,
                     meta: {
-                        title: '地图导览'
+                        title: '党群机构'
                     }
                 },
                 {
-                    path: 'orgnav',
-                    component: resolve => require(['../../pcviews/orgnav/index.vue'], resolve),
+                    path: 'ofc',
+                    component: pcOrgnavOfc,
                     meta: {
-                        title: '社区内机构导览'
-                    },
-                    children: [{
-                            path: 'masses',
-                            component: resolve => require(['../../pcviews/orgnav/masses.vue'], resolve),
-                            meta: {
-                                title: '党群机构'
-                            }
-                        },
-                        {
-                            path: 'ofc',
-                            component: resolve => require(['../../pcviews/orgnav/ofc.vue'], resolve),
-                            meta: {
-                                title: '职能部处'
-                            }
-                        }, {
-                            path: 'directly',
-                            component: resolve => require(['../../pcviews/orgnav/directly.vue'], resolve),
-                            meta: {
-                                title: '直属及附属单位'
-                            }
-                        },
-                        {
-                            path: 'teaching',
-                            component: resolve => require(['../../pcviews/orgnav/teaching.vue'], resolve),
-                            meta: {
-                                title: '教学与科研机构'
-                            }
-                        }, {
-                            path: 'rest',
-                            component: resolve => require(['../../pcviews/orgnav/rest.vue'], resolve),
-                            meta: {
-                                title: '其他机构'
-                            }
-                        }
-                    ]
+                        title: '职能部处'
+                    }
+                }, {
+                    path: 'directly',
+                    component: pcOrgnavDirectly,
+                    meta: {
+                        title: '直属及附属单位'
+                    }
                 },
                 {
-                    path: 'arc',
-                    component: resolve => require(['../../pcviews/arc/index.vue'], resolve),
+                    path: 'teaching',
+                    component: pcOrgnavTeaching,
                     meta: {
-                        title: '社区内建筑'
-                    },
-                    children: [{
-                            path: 'edifact',
-                            component: resolve => require(['../../pcviews/arc/edifact.vue'], resolve),
-                            meta: {
-                                title: '行政办公'
-                            }
-                        },
-                        {
-                            path: 'teaching',
-                            component: resolve => require(['../../pcviews/arc/teaching.vue'], resolve),
-                            meta: {
-                                title: '教学科研'
-                            }
-                        }, {
-                            path: 'venue',
-                            component: resolve => require(['../../pcviews/arc/venue.vue'], resolve),
-                            meta: {
-                                title: '社区场馆'
-                            }
-                        },
-                        {
-                            path: 'dorm',
-                            component: resolve => require(['../../pcviews/arc/dorm.vue'], resolve),
-                            meta: {
-                                title: '社区宿舍'
-                            }
-                        }, {
-                            path: 'culture',
-                            component: resolve => require(['../../pcviews/arc/culture.vue'], resolve),
-                            meta: {
-                                title: '文化风景'
-                            }
-                        },
-                        {
-                            path: 'family',
-                            component: resolve => require(['../../pcviews/arc/family.vue'], resolve),
-                            meta: {
-                                title: '家属住宅'
-                            }
-                        }, {
-                            path: 'rest',
-                            component: resolve => require(['../../pcviews/arc/rest.vue'], resolve),
-                            meta: {
-                                title: '主要楼宇'
-                            }
-                        }
-                    ]
+                        title: '教学与科研机构'
+                    }
+                }, {
+                    path: 'rest',
+                    component: pcOrgnavRest,
+                    meta: {
+                        title: '其他机构'
+                    }
+                }
+                ]
+            },
+            {
+                path: 'arc',
+                component: pcArc,
+                meta: {
+                    title: '社区内建筑'
+                },
+                children: [{
+                    path: 'edifact',
+                    component: pcArcEdifact,
+                    meta: {
+                        title: '行政办公'
+                    }
+                },
+                {
+                    path: 'teaching',
+                    component: pcArcTeaching,
+                    meta: {
+                        title: '教学科研'
+                    }
+                }, {
+                    path: 'venue',
+                    component: pcArcVenue,
+                    meta: {
+                        title: '社区场馆'
+                    }
+                },
+                {
+                    path: 'dorm',
+                    component: pcArcDorm,
+                    meta: {
+                        title: '社区宿舍'
+                    }
+                }, {
+                    path: 'culture',
+                    component: pcArcCulture,
+                    meta: {
+                        title: '文化风景'
+                    }
+                },
+                {
+                    path: 'family',
+                    component: pcArcFamily,
+                    meta: {
+                        title: '家属住宅'
+                    }
+                }, {
+                    path: 'rest',
+                    component: pcArcRest,
+                    meta: {
+                        title: '主要楼宇'
+                    }
+                }
+                ]
+            },
+            {
+                path: 'service',
+                component: pcService,
+                meta: {
+                    title: '生活服务设施'
+                },
+                children: [{
+                    path: 'canteen',
+                    component: pcServiceCanteen,
+                    meta: {
+                        title: '食堂餐厅'
+                    }
+                },
+                {
+                    path: 'supermarket',
+                    component: pcServiceSupermarket,
+                    meta: {
+                        title: '购物超市'
+                    }
+                }, {
+                    path: 'medical',
+                    component: pcServiceMedical,
+                    meta: {
+                        title: '社区内医疗'
+                    }
+                },
+                {
+                    path: 'express',
+                    component: pcServiceExpress,
+                    meta: {
+                        title: '邮寄快递'
+                    }
+                }, {
+                    path: 'showers',
+                    component: pcServiceShowers,
+                    meta: {
+                        title: '社区浴室'
+                    }
+                },
+                {
+                    path: 'transfer',
+                    component: pcServiceTransfer,
+                    meta: {
+                        title: '圈存机'
+                    }
+                },
+                {
+                    path: 'copy',
+                    component: pcServiceCopy,
+                    meta: {
+                        title: '打字复印'
+                    }
+                },
+                {
+                    path: 'bank',
+                    component: pcServiceBank,
+                    meta: {
+                        title: '银行网点'
+                    }
+                }, {
+                    path: 'aed',
+                    component: pcServiceAed,
+                    meta: {
+                        title: 'AED'
+                    }
                 },
                 {
                     path: 'service',
-                    component: resolve => require(['../../pcviews/service/index.vue'], resolve),
+                    component: pcServiceService,
                     meta: {
-                        title: '生活服务设施'
-                    },
-                    children: [{
-                            path: 'canteen',
-                            component: resolve => require(['../../pcviews/service/canteen.vue'], resolve),
-                            meta: {
-                                title: '食堂餐厅'
-                            }
-                        },
-                        {
-                            path: 'supermarket',
-                            component: resolve => require(['../../pcviews/service/supermarket.vue'], resolve),
-                            meta: {
-                                title: '购物超市'
-                            }
-                        }, {
-                            path: 'medical',
-                            component: resolve => require(['../../pcviews/service/medical.vue'], resolve),
-                            meta: {
-                                title: '社区内医疗'
-                            }
-                        },
-                        {
-                            path: 'express',
-                            component: resolve => require(['../../pcviews/service/express.vue'], resolve),
-                            meta: {
-                                title: '邮寄快递'
-                            }
-                        }, {
-                            path: 'showers',
-                            component: resolve => require(['../../pcviews/service/showers.vue'], resolve),
-                            meta: {
-                                title: '社区浴室'
-                            }
-                        },
-                        {
-                            path: 'transfer',
-                            component: resolve => require(['../../pcviews/service/transfer.vue'], resolve),
-                            meta: {
-                                title: '圈存机'
-                            }
-                        },
-                        {
-                            path: 'copy',
-                            component: resolve => require(['../../pcviews/service/copy.vue'], resolve),
-                            meta: {
-                                title: '打字复印'
-                            }
-                        },
-                        {
-                            path: 'bank',
-                            component: resolve => require(['../../pcviews/service/bank.vue'], resolve),
-                            meta: {
-                                title: '银行网点'
-                            }
-                        }, {
-                            path: 'aed',
-                            component: resolve => require(['../../pcviews/service/aed.vue'], resolve),
-                            meta: {
-                                title: 'AED'
-                            }
-                        },
-                        {
-                            path: 'service',
-                            component: resolve => require(['../../pcviews/service/service.vue'], resolve),
-                            meta: {
-                                title: '通信营业厅'
-                            }
-                        }, {
-                            path: 'park',
-                            component: resolve => require(['../../pcviews/service/park.vue'], resolve),
-                            meta: {
-                                title: '停车场'
-                            }
-                        },
-                        {
-                            path: 'alleyway',
-                            component: resolve => require(['../../pcviews/service/alleyway.vue'], resolve),
-                            meta: {
-                                title: '出入口'
-                            }
-                        }
-                    ]
-                },
-                {
-                    path: 'allquery',
-                    component: resolve => require(['../../pcviews/allquery/index.vue'], resolve),
+                        title: '通信营业厅'
+                    }
+                }, {
+                    path: 'park',
+                    component: pcServicePark,
                     meta: {
-                        title: '综合查询'
+                        title: '停车场'
                     }
                 },
                 {
-                    path: 'campusnav',
-                    component: resolve => require(['../../pcviews/campusnav/index.vue'], resolve),
+                    path: 'alleyway',
+                    component: pcServiceAlleyway,
                     meta: {
-                        title: '社区导览'
+                        title: '出入口'
                     }
-                },
-                {
-                    path: 'campusnavi',
-                    component: resolve => require(['../../pcviews/campusnavi/index.vue'], resolve),
-                    meta: {
-                        title: '社区导航'
-                    }
-                },
-                {
-                    path: 'specialmap',
-                    component: resolve => require(['../../pcviews/specialmap/index.vue'], resolve),
-                    meta: {
-                        title: '专题地图'
-                    },
-                    children: [{
-                            path: 'celebrate',
-                            component: resolve => require(['../../pcviews/specialmap/celebrate.vue'], resolve),
-                            meta: {
-                                title: '社区庆'
-                            }
-                        },
-                        {
-                            path: 'welcome',
-                            component: resolve => require(['../../pcviews/specialmap/welcome.vue'], resolve),
-                            meta: {
-                                title: '社区迎新'
-                            }
-                        }
-                    ]
-                },
-                {
-                    path: 'tool',
-                    component: resolve => require(['../../pcviews/tool/index.vue'], resolve),
-                    meta: {
-                        title: '工具'
-                    },
-                    children: [{
-                            path: 'download',
-                            component: resolve => require(['../../pcviews/tool/download.vue'], resolve),
-                            meta: {
-                                title: '地图下载'
-                            }
-                        }, {
-                            path: 'sign',
-                            component: resolve => require(['../../pcviews/tool/sign.vue'], resolve),
-                            meta: {
-                                title: '地图标记'
-                            }
-                        },
-                        {
-                            path: 'ranging',
-                            component: resolve => require(['../../pcviews/tool/ranging.vue'], resolve),
-                            meta: {
-                                title: '地图测距'
-                            }
-                        },
-                        {
-                            path: 'area',
-                            component: resolve => require(['../../pcviews/tool/area.vue'], resolve),
-                            meta: {
-                                title: '地图测面'
-                            }
-                        }
-                    ]
                 }
+                ]
+            },
+            {
+                path: 'allquery',
+                component: pcAllquery,
+                meta: {
+                    title: '综合查询'
+                }
+            },
+            {
+                path: 'campusnav',
+                component: pcCampusnav,
+                meta: {
+                    title: '社区导览'
+                }
+            },
+            {
+                path: 'campusnavi',
+                component: pcCampusnavi,
+                meta: {
+                    title: '社区导航'
+                }
+            },
+            {
+                path: 'specialmap',
+                component: pcSpecialmap,
+                meta: {
+                    title: '专题地图'
+                },
+                children: [{
+                    path: 'celebrate',
+                    component: pcSpecialmapCelebrate,
+                    meta: {
+                        title: '社区庆'
+                    }
+                },
+                {
+                    path: 'welcome',
+                    component: pcSpecialmapWelcome,
+                    meta: {
+                        title: '社区迎新'
+                    }
+                }
+                ]
+            },
+            {
+                path: 'tool',
+                component: pcTool,
+                meta: {
+                    title: '工具'
+                },
+                children: [{
+                    path: 'download',
+                    component: pcToolDownload,
+                    meta: {
+                        title: '地图下载'
+                    }
+                }, {
+                    path: 'sign',
+                    component: pcToolSign,
+                    meta: {
+                        title: '地图标记'
+                    }
+                },
+                {
+                    path: 'ranging',
+                    component: pcToolRanging,
+                    meta: {
+                        title: '地图测距'
+                    }
+                },
+                {
+                    path: 'area',
+                    component: pcToolArea,
+                    meta: {
+                        title: '地图测面'
+                    }
+                }
+                ]
+            }
             ]
         }]
     },

--
Gitblit v1.9.3