diff --git a/src/i18n/lang/zh-CN.ts b/src/i18n/lang/zh-CN.ts
index be9ece9..f66ff96 100644
--- a/src/i18n/lang/zh-CN.ts
+++ b/src/i18n/lang/zh-CN.ts
@@ -16,10 +16,10 @@ export default {
updateTime: '更新时间',
required: '必填项不能为空',
app: {
- title: 'Maku Admin',
+ title: '在线书城',
description:
'基于Vue3、TypeScript、Element Plus、Vue Router、Pinia、Axios、i18n、Vite等开发的后台管理,使用门槛极低,采用MIT开源协议,完全免费开源且终生免费,可免费用于商业项目等场景!',
- logoText: 'Maku Admin',
+ logoText: '在线书城后台',
miniLogoText: 'MAKU',
username: '用户名',
password: '密码',
diff --git a/src/layout/components/Navbar/NavbarRight.vue b/src/layout/components/Navbar/NavbarRight.vue
index 9d2cd4d..a65b20f 100644
--- a/src/layout/components/Navbar/NavbarRight.vue
+++ b/src/layout/components/Navbar/NavbarRight.vue
@@ -2,15 +2,6 @@
-
-
-
-
-
-
-
-
-
diff --git a/src/router/index.ts b/src/router/index.ts
index 57a78a0..4c755b7 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -21,6 +21,10 @@ const constantRoutes: RouteRecordRaw[] = [
]
},
{
+ path: '/',
+ redirect: '/book/index'
+ },
+ {
path: '/iframe/:query?',
component: () => import('../layout/components/Router/Iframe.vue')
},
@@ -31,13 +35,40 @@ const constantRoutes: RouteRecordRaw[] = [
{
path: '/404',
component: () => import('../views/404.vue')
+ },
+ {
+ path: '/book/index',
+ component: () => import('../views/book/index.vue'),
+ redirect: '/book/home',
+ children: [
+ {
+ path: '/book/home',
+ component: () => import('../views/book/component/home.vue')
+ },
+ {
+ path: '/book/collection',
+ component: () => import('../views/book/component/collection.vue')
+ },
+ {
+ path: '/book/trolley',
+ component: () => import('../views/book/component/trolley.vue')
+ },
+ {
+ path: '/book/my',
+ component: () => import('../views/book/component/my.vue')
+ }
+ ]
+ },
+ {
+ path: '/book/login',
+ component: () => import('../views/book/login.vue')
}
]
const asyncRoutes: RouteRecordRaw = {
path: '/',
component: () => import('../layout/index.vue'),
- redirect: '/dashboard/index',
+ redirect: '/book/index',
children: [
{
path: '/profile',
@@ -55,7 +86,7 @@ const asyncRoutes: RouteRecordRaw = {
export const dashboardMenu = [
{
id: 100,
- name: 'Dashboard',
+ name: '控制台',
url: null,
openStyle: 0,
icon: 'icon-appstore',
@@ -166,7 +197,7 @@ export const router = createRouter({
})
// 白名单列表
-const whiteList = ['/login']
+const whiteList = ['/login', '/book/index', '/book/login', '/book/home', '/book/collection', '/book/trolley', '/book/my']
// 路由跳转前
router.beforeEach(async (to, from, next) => {
@@ -204,6 +235,9 @@ router.beforeEach(async (to, from, next) => {
asyncRoutes.children?.push(...keepAliveRoutes)
router.addRoute(asyncRoutes)
+ // // 添加商城首页菜单
+ // router.addRoute(bookIndexRouter)
+
// 错误路由
router.addRoute(errorRoute)
diff --git a/src/views/book/component/collection.vue b/src/views/book/component/collection.vue
new file mode 100644
index 0000000..c05ed82
--- /dev/null
+++ b/src/views/book/component/collection.vue
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/src/views/book/component/home.vue b/src/views/book/component/home.vue
new file mode 100644
index 0000000..58fe091
--- /dev/null
+++ b/src/views/book/component/home.vue
@@ -0,0 +1,149 @@
+
+
+
+
+
+
+
+
进口安佳淡奶油1L动物奶油新西兰家用生日蛋糕裱花蛋挞液专用烘焙
+
+ ¥
+ 30
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/book/component/my.vue b/src/views/book/component/my.vue
new file mode 100644
index 0000000..c05ed82
--- /dev/null
+++ b/src/views/book/component/my.vue
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/src/views/book/component/trolley.vue b/src/views/book/component/trolley.vue
new file mode 100644
index 0000000..c05ed82
--- /dev/null
+++ b/src/views/book/component/trolley.vue
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/src/views/book/index.vue b/src/views/book/index.vue
new file mode 100644
index 0000000..5284f5a
--- /dev/null
+++ b/src/views/book/index.vue
@@ -0,0 +1,93 @@
+
+
+
+
+
+
+
+
+ - {{ changeValue == '/book/my' ? '商城首页' : '我的淘宝' }}
+ -
+
+
+
+ 购物车
+
+ -
+
+
+
+ 收藏夹
+
+
+
+
+
+
+
+
+
diff --git a/src/views/book/login.vue b/src/views/book/login.vue
new file mode 100644
index 0000000..f35813a
--- /dev/null
+++ b/src/views/book/login.vue
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+