From d1cdc53f6a8c1aaaad670264ca818231dbce099c Mon Sep 17 00:00:00 2001 From: jacobxu666 Date: Wed, 24 Jun 2026 19:20:32 +0800 Subject: [PATCH] feat: update tabBar to 3 items, add qrcode page skeleton, rename app Co-Authored-By: Claude --- src/pages.json | 202 +++++++++++++++------------- src/pages/profile/index.vue | 2 +- src/pages/qrcode/index.vue | 12 ++ src/static/tabbar/qrcode-active.png | Bin 0 -> 67 bytes src/static/tabbar/qrcode.png | Bin 0 -> 67 bytes 5 files changed, 120 insertions(+), 96 deletions(-) create mode 100644 src/pages/qrcode/index.vue create mode 100644 src/static/tabbar/qrcode-active.png create mode 100644 src/static/tabbar/qrcode.png diff --git a/src/pages.json b/src/pages.json index f5f3155..132a3ae 100644 --- a/src/pages.json +++ b/src/pages.json @@ -1,97 +1,109 @@ { - "easycom": { - "autoscan": true, - "custom": { - "^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue" - } - }, - "pages": [ - { - "path": "pages/index/index", - "style": { - "navigationBarTitleText": "文旅专区" - } - }, - { - "path": "pages/login/login", - "style": { - "navigationBarTitleText": "登录" - } - }, - { - "path": "pages/profile/index", - "style": { - "navigationBarTitleText": "个人中心" - } - } - ], - "subPackages": [ - { - "root": "packages/user", - "pages": [ - { - "path": "pages/card/list", - "style": { - "navigationBarTitleText": "年卡列表" - } - }, - { - "path": "pages/card/detail", - "style": { - "navigationBarTitleText": "年卡详情" - } - }, - { - "path": "pages/card/buy", - "style": { - "navigationBarTitleText": "确认购买" - } - }, - { - "path": "pages/card/activate", - "style": { - "navigationBarTitleText": "激活年卡" - } - }, - { - "path": "pages/card/qrcode", - "style": { - "navigationBarTitleText": "入园码" - } - }, - { - "path": "pages/card/bind", - "style": { - "navigationBarTitleText": "绑定年卡" - } - } - ] - } - ], - "globalStyle": { - "navigationBarTextStyle": "black", - "navigationBarTitleText": "湖南12301", - "navigationBarBackgroundColor": "#FFFFFF", - "backgroundColor": "#F5F5F5" - }, - "tabBar": { - "color": "#7A7E83", - "selectedColor": "#4A90D9", - "borderStyle": "white", - "backgroundColor": "#ffffff", - "list": [ - { - "pagePath": "pages/index/index", - "text": "首页", - "iconPath": "static/tabbar/home.png", - "selectedIconPath": "static/tabbar/home-active.png" - }, - { - "pagePath": "pages/profile/index", - "text": "我的", - "iconPath": "static/tabbar/profile.png", - "selectedIconPath": "static/tabbar/profile-active.png" - } - ] - } + "easycom": { + "autoscan": true, + "custom": { + "^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue" + } + }, + "pages": [ + { + "path": "pages/index/index", + "style": { + "navigationBarTitleText": "爱上萍乡" + } + }, + { + "path": "pages/qrcode/index", + "style": { + "navigationBarTitleText": "入园码" + } + }, + { + "path": "pages/login/login", + "style": { + "navigationBarTitleText": "登录" + } + }, + { + "path": "pages/profile/index", + "style": { + "navigationBarTitleText": "个人中心" + } + } + ], + "subPackages": [ + { + "root": "packages/user", + "pages": [ + { + "path": "pages/card/list", + "style": { + "navigationBarTitleText": "年卡列表" + } + }, + { + "path": "pages/card/detail", + "style": { + "navigationBarTitleText": "年卡详情" + } + }, + { + "path": "pages/card/buy", + "style": { + "navigationBarTitleText": "确认购买" + } + }, + { + "path": "pages/card/activate", + "style": { + "navigationBarTitleText": "激活年卡" + } + }, + { + "path": "pages/card/qrcode", + "style": { + "navigationBarTitleText": "入园码" + } + }, + { + "path": "pages/card/bind", + "style": { + "navigationBarTitleText": "绑定年卡" + } + } + ] + } + ], + "globalStyle": { + "navigationBarTextStyle": "black", + "navigationBarTitleText": "爱上萍乡", + "navigationBarBackgroundColor": "#FFFFFF", + "backgroundColor": "#F5F5F5" + }, + "tabBar": { + "color": "#7A7E83", + "selectedColor": "#4A90D9", + "borderStyle": "white", + "backgroundColor": "#ffffff", + "list": [ + { + "pagePath": "pages/index/index", + "text": "首页", + "iconPath": "static/tabbar/home.png", + "selectedIconPath": "static/tabbar/home-active.png" + }, + { + "pagePath": "pages/qrcode/index", + "text": "入园码", + "iconPath": "static/tabbar/qrcode.png", + "selectedIconPath": "static/tabbar/qrcode-active.png" + }, + { + "pagePath": "pages/profile/index", + "text": "我的", + "iconPath": "static/tabbar/profile.png", + "selectedIconPath": "static/tabbar/profile-active.png" + } + ] + } } diff --git a/src/pages/profile/index.vue b/src/pages/profile/index.vue index 2bd19ec..a269c27 100644 --- a/src/pages/profile/index.vue +++ b/src/pages/profile/index.vue @@ -6,7 +6,7 @@ diff --git a/src/pages/qrcode/index.vue b/src/pages/qrcode/index.vue new file mode 100644 index 0000000..79d6524 --- /dev/null +++ b/src/pages/qrcode/index.vue @@ -0,0 +1,12 @@ + + + + + diff --git a/src/static/tabbar/qrcode-active.png b/src/static/tabbar/qrcode-active.png new file mode 100644 index 0000000000000000000000000000000000000000..7b64fd2cabc770b3f923ffcd2161ad3526d39751 GIT binary patch literal 67 zcmeAS@N?(olHy`uVBq!ia0vp^j3CUx1SBVv2j2ryJf1F&Ar*6yfA9k(7#Ub4ZukL3 O89ZJ6T-G@yGywp6LJb7~ literal 0 HcmV?d00001 diff --git a/src/static/tabbar/qrcode.png b/src/static/tabbar/qrcode.png new file mode 100644 index 0000000000000000000000000000000000000000..7b64fd2cabc770b3f923ffcd2161ad3526d39751 GIT binary patch literal 67 zcmeAS@N?(olHy`uVBq!ia0vp^j3CUx1SBVv2j2ryJf1F&Ar*6yfA9k(7#Ub4ZukL3 O89ZJ6T-G@yGywp6LJb7~ literal 0 HcmV?d00001