From 95832a6288c97afd94c6a3764aead6acc091d85f Mon Sep 17 00:00:00 2001
From: xiayebo <364530740@qq.com>
Date: Fri, 28 Nov 2025 17:57:03 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.husky/commit-msg | 1 -
.husky/pre-commit | 1 -
src/pages/goods/cart.vue | 13 ++++++++++++
src/pages/index/index.vue | 44 ++-------------------------------------
src/pages/sort/index.vue | 13 ++++++++++++
src/tabbar/config.ts | 18 ++++++++++++++++
6 files changed, 46 insertions(+), 44 deletions(-)
delete mode 100644 .husky/commit-msg
delete mode 100644 .husky/pre-commit
create mode 100644 src/pages/goods/cart.vue
create mode 100644 src/pages/sort/index.vue
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 @@
-
-
-
-
-
- unibest
-
-
- 最好用的 uniapp 开发模板
-
-
-
- {{ description }}
-
-
- 作者:
-
- 菲鸽
-
-
-
- 官网地址:
-
- https://unibest.tech
-
-
+
+ 首页
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: '我的',