diff --git a/.husky/commit-msg b/.husky/commit-msg deleted file mode 100644 index 36158d9..0000000 --- a/.husky/commit-msg +++ /dev/null @@ -1 +0,0 @@ -npx --no-install commitlint --edit "$1" \ No newline at end of file diff --git a/.husky/pre-commit b/.husky/pre-commit deleted file mode 100644 index c3ec64b..0000000 --- a/.husky/pre-commit +++ /dev/null @@ -1 +0,0 @@ -npx lint-staged --allow-empty \ No newline at end of file diff --git a/src/pages/goods/cart.vue b/src/pages/goods/cart.vue new file mode 100644 index 0000000..28e6fab --- /dev/null +++ b/src/pages/goods/cart.vue @@ -0,0 +1,13 @@ + + + diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 27b81b8..763c110 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -1,53 +1,13 @@ diff --git a/src/pages/sort/index.vue b/src/pages/sort/index.vue new file mode 100644 index 0000000..7070b06 --- /dev/null +++ b/src/pages/sort/index.vue @@ -0,0 +1,13 @@ + + + diff --git a/src/tabbar/config.ts b/src/tabbar/config.ts index 141c07a..43dd15e 100644 --- a/src/tabbar/config.ts +++ b/src/tabbar/config.ts @@ -52,6 +52,24 @@ export const customTabbarList: CustomTabBarItem[] = [ icon: 'i-carbon-home', // badge: 'dot', }, + { + pagePath: 'pages/sort/index', + text: '分类', + // 1)在fg-tabbar.vue页面上引入一下并注释掉(见tabbar/index.vue代码第2行) + // 2)配置到 unocss.config.ts 的 safelist 中 + iconType: 'uiLib', + icon: 'add-circle', + // badge: 10, + }, + { + pagePath: 'pages/goods/cart', + text: '购物车', + // 1)在fg-tabbar.vue页面上引入一下并注释掉(见tabbar/index.vue代码第2行) + // 2)配置到 unocss.config.ts 的 safelist 中 + iconType: 'unocss', + icon: 'i-clarity-shopping-cart-line', + // badge: 10, + }, { pagePath: 'pages/me/me', text: '我的',