diff --git a/src/assets/index_bg.png b/src/assets/index_bg.png new file mode 100644 index 0000000..1d9dae2 Binary files /dev/null and b/src/assets/index_bg.png differ diff --git a/src/assets/index_quick1.png b/src/assets/index_quick1.png new file mode 100644 index 0000000..5727f62 Binary files /dev/null and b/src/assets/index_quick1.png differ diff --git a/src/assets/index_quick2.png b/src/assets/index_quick2.png new file mode 100644 index 0000000..a325467 Binary files /dev/null and b/src/assets/index_quick2.png differ diff --git a/src/assets/index_quick3.png b/src/assets/index_quick3.png new file mode 100644 index 0000000..a847110 Binary files /dev/null and b/src/assets/index_quick3.png differ diff --git a/src/assets/index_quick4.png b/src/assets/index_quick4.png new file mode 100644 index 0000000..46f2cb4 Binary files /dev/null and b/src/assets/index_quick4.png differ diff --git a/src/assets/index_quick5.png b/src/assets/index_quick5.png new file mode 100644 index 0000000..47b3a99 Binary files /dev/null and b/src/assets/index_quick5.png differ diff --git a/src/assets/index_quick6.png b/src/assets/index_quick6.png new file mode 100644 index 0000000..ed766ef Binary files /dev/null and b/src/assets/index_quick6.png differ diff --git a/src/router/index.ts b/src/router/index.ts index 2cbeedf..144f4c1 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -24,61 +24,17 @@ export const constantRoutes: RouteRecordRaw[] = [ }, { - path: "/", + path: '/', component: Layout, - redirect: "/index", - meta: { - title: "数据中心", - icon: "数据统计", - alwaysShow: true, - }, + redirect: '/index', children: [ { - path: "index", - component: () => import("@/views/data/index.vue"), - name: "", + path: 'index', + component: () => import('@/views/index/index.vue'), + name: 'index', meta: { - title: "经营数据", - affix: false, - keepAlive: true, - }, - }, - { - path: "sales", - name: "", - component: () => import("@/views/data/sales.vue"), - meta: { - title: "销售统计", - affix: false, - keepAlive: true, - }, - }, - { - path: "table", - name: "", - component: () => import("@/views/data/table.vue"), - meta: { - title: "台桌统计", - affix: false, - keepAlive: true, - }, - }, - { - path: "finance", - name: "", - component: () => import("@/views/data/finance.vue"), - meta: { - title: "财务报表" - }, - }, - { - path: "work", - name: "workStatistics", - component: () => import("@/views/data/work.vue"), - meta: { - title: "收银交班记录", - affix: false, - keepAlive: true, + title: '首页', + icon: 'homepage', }, }, { @@ -91,9 +47,79 @@ export const constantRoutes: RouteRecordRaw[] = [ component: () => import("@/views/error/404.vue"), meta: { hidden: true }, }, - ], + ] }, // { + // path: "/", + // component: Layout, + // redirect: "/index", + // meta: { + // title: "数据中心", + // icon: "数据统计", + // alwaysShow: true, + // }, + // children: [ + // { + // path: "index", + // component: () => import("@/views/data/index.vue"), + // name: "", + // meta: { + // title: "经营数据", + // affix: false, + // keepAlive: true, + // }, + // }, + // { + // path: "sales", + // name: "", + // component: () => import("@/views/data/sales.vue"), + // meta: { + // title: "销售统计", + // affix: false, + // keepAlive: true, + // }, + // }, + // { + // path: "table", + // name: "", + // component: () => import("@/views/data/table.vue"), + // meta: { + // title: "台桌统计", + // affix: false, + // keepAlive: true, + // }, + // }, + // { + // path: "finance", + // name: "", + // component: () => import("@/views/data/finance.vue"), + // meta: { + // title: "财务报表" + // }, + // }, + // { + // path: "work", + // name: "workStatistics", + // component: () => import("@/views/data/work.vue"), + // meta: { + // title: "收银交班记录", + // affix: false, + // keepAlive: true, + // }, + // }, + // { + // path: "401", + // component: () => import("@/views/error/401.vue"), + // meta: { hidden: true }, + // }, + // { + // path: "404", + // component: () => import("@/views/error/404.vue"), + // meta: { hidden: true }, + // }, + // ], + // }, + // { // path: "/shop", // component: Layout, // meta: { diff --git a/src/views/index/index.vue b/src/views/index/index.vue index 801450b..b22c88d 100644 --- a/src/views/index/index.vue +++ b/src/views/index/index.vue @@ -1,5 +1,111 @@ \ No newline at end of file + + + + + \ No newline at end of file diff --git a/src/views/login/index.vue b/src/views/login/index.vue index d41322b..4bf459e 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -74,12 +74,19 @@ const accountList = reactive([ { username: "19107220837", type: 'danger', label: '快乐时光店铺' }, // { username: "18199991111", type: 'success', label: '草莓加盟主店可直接管理' }, { username: "18821670757", type: 'success', label: '高歌的小店' }, + { username: "18821670757", staffUserName: '18821670758', type: 'primary', label: '高歌的小店的员工-张三' }, { username: "191123456", type: 'primary', label: '酸橘子' }, ]); // 快捷模拟登录 function accountHandle(item) { state.loginForm.username = item.username; + if (item.staffUserName) { + state.loginForm.loginType = 1 + state.loginForm.staffUserName = item.staffUserName + } else { + state.loginForm.loginType = 0 + } state.loginForm.code = 666666 const d = new Date(); state.loginForm.password = `czg${d.getHours().toString().padStart(2, '0')}${d.getMinutes().toString().padStart(2, '0')}`;