+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/TheWelcome.vue b/src/components/TheWelcome.vue
deleted file mode 100644
index d3d2e7acc8a9deeb26e48169ee3cbc64d2b54f2f..0000000000000000000000000000000000000000
--- a/src/components/TheWelcome.vue
+++ /dev/null
@@ -1,84 +0,0 @@
-
-
-
-
-
-
-
- Documentation
-
- Vue’s
- official documentation
- provides you with all information you need to get started.
-
-
-
-
-
-
- Tooling
-
- This project is served and bundled with
- Vite. The recommended IDE
- setup is VSCode +
- Volar. If you need to test
- your components and web pages, check out
- Cypress and
- Cypress Component Testing.
-
-
-
- More instructions are available in README.md.
-
-
-
-
-
-
- Ecosystem
-
- Get official tools and libraries for your project:
- Pinia,
- Vue Router,
- Vue Test Utils, and
- Vue Dev Tools. If you need more
- resources, we suggest paying
- Awesome Vue
- a visit.
-
-
-
-
-
-
- Community
-
- Got stuck? Ask your question on
- Vue Land, our official Discord server, or
- StackOverflow.
- You should also subscribe to
- our mailing list and follow the official
- @vuejs
- twitter account for latest news in the Vue world.
-
-
-
-
-
-
- Support Vue
-
- As an independent project, Vue relies on community backing for its sustainability. You can help
- us by
- becoming a sponsor.
-
-
diff --git a/src/components/WelcomeItem.vue b/src/components/WelcomeItem.vue
deleted file mode 100644
index ba0def33c0e523d8c82426d76d76c39b482b21e0..0000000000000000000000000000000000000000
--- a/src/components/WelcomeItem.vue
+++ /dev/null
@@ -1,86 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/components/icons/IconCommunity.vue b/src/components/icons/IconCommunity.vue
deleted file mode 100644
index 2dc8b055253af30fb797037e2fe260505f0cf711..0000000000000000000000000000000000000000
--- a/src/components/icons/IconCommunity.vue
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
diff --git a/src/components/icons/IconDocumentation.vue b/src/components/icons/IconDocumentation.vue
deleted file mode 100644
index 6d4791cfbcf2782b3e5ffbabd042d4c47b2fbbed..0000000000000000000000000000000000000000
--- a/src/components/icons/IconDocumentation.vue
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
diff --git a/src/components/icons/IconEcosystem.vue b/src/components/icons/IconEcosystem.vue
deleted file mode 100644
index c3a4f078c0bd340a33c61ea9ecd8a755d03571ed..0000000000000000000000000000000000000000
--- a/src/components/icons/IconEcosystem.vue
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
diff --git a/src/components/icons/IconSupport.vue b/src/components/icons/IconSupport.vue
deleted file mode 100644
index 7452834d3ef961ce24c3a072ddba2620b6158bae..0000000000000000000000000000000000000000
--- a/src/components/icons/IconSupport.vue
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
diff --git a/src/components/icons/IconTooling.vue b/src/components/icons/IconTooling.vue
deleted file mode 100644
index 660598d7c76644ffe126a1a1feb1606650bfb937..0000000000000000000000000000000000000000
--- a/src/components/icons/IconTooling.vue
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
diff --git a/src/main.js b/src/main.js
index 90e6400b4d8ad8aba0c1caa53874eb4b81380648..f5606e1184ccbcba6c4e6b74820cb927b362a783 100644
--- a/src/main.js
+++ b/src/main.js
@@ -1,6 +1,10 @@
-import { createApp } from 'vue'
-import App from './App.vue'
-
-import './assets/main.css'
-
-createApp(App).mount('#app')
+import { createApp } from 'vue'
+import App from './App.vue'
+import router from './router'
+import ElementPlus from 'element-plus'
+import 'element-plus/dist/index.css'
+
+const app = createApp(App)
+app.use(router)
+app.use(ElementPlus)
+app.mount('#app')
\ No newline at end of file
diff --git a/src/router/index.js b/src/router/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..2d23317075cefd8f0ba51fca3ce30876f459e348
--- /dev/null
+++ b/src/router/index.js
@@ -0,0 +1,39 @@
+import { createRouter, createWebHistory } from 'vue-router'
+import Home from '../views/Home.vue'
+import About from '../views/About.vue'
+import Products from '../views/Products.vue'
+import News from '../views/News.vue'
+import Community from '../views/Community.vue'
+import Login from '../views/Login.vue'
+import Register from '../views/Register.vue'
+import ProductDetail from '../views/ProductDetail.vue'
+import NewsDetail from '../views/NewsDetail.vue'
+
+const routes = [
+ { path: '/', component: Home },
+ { path: '/about', component: About },
+ { path: '/products', component: Products },
+ { path: '/products/:id', component: ProductDetail },
+ { path: '/news', component: News },
+ { path: '/news/:id', component: NewsDetail },
+ { path: '/community', component: Community },
+ { path: '/login', component: Login },
+ { path: '/register', component: Register },
+]
+
+const router = createRouter({
+ history: createWebHistory(),
+ routes,
+})
+
+// 登录拦截
+router.beforeEach((to, from, next) => {
+ const isLogin = localStorage.getItem('isLogin') === 'true'
+ if (!isLogin && to.path !== '/login' && to.path !== '/register') {
+ next('/login')
+ } else {
+ next()
+ }
+})
+
+export default router
\ No newline at end of file
diff --git a/src/views/About.vue b/src/views/About.vue
new file mode 100644
index 0000000000000000000000000000000000000000..9429c43e3b6ee2631d5b5d4a1abcf67efce09b3a
--- /dev/null
+++ b/src/views/About.vue
@@ -0,0 +1,57 @@
+
+
+
服务预约
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交预约
+
+
+
+
预约历史
+
+
+
+
+
+
暂无预约记录
+
+
+
+
\ No newline at end of file
diff --git a/src/views/Community.vue b/src/views/Community.vue
new file mode 100644
index 0000000000000000000000000000000000000000..295a36347affa70c59872c6615f2afeb6647a7ee
--- /dev/null
+++ b/src/views/Community.vue
@@ -0,0 +1,81 @@
+
+
+
智慧养老社区
+
+
欢迎大家在此交流智慧养老经验与心得!
+
+
家属留言
+
+
+
+
+
+
+
+
+ 留言
+
+
+
+
留言墙
+
+
+ {{ item.name }}:{{ item.content }}
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/Home.vue b/src/views/Home.vue
new file mode 100644
index 0000000000000000000000000000000000000000..15c81da920ea4e7c9a25793eecf0ab6adb47a754
--- /dev/null
+++ b/src/views/Home.vue
@@ -0,0 +1,134 @@
+
+