From 8718429ad1de1a4bd0aba64e41b2543466fb1373 Mon Sep 17 00:00:00 2001 From: xiayebo <364530740@qq.com> Date: Sat, 29 Nov 2025 21:00:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4pages.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 - src/pages.json | 150 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 150 insertions(+), 1 deletion(-) create mode 100644 src/pages.json diff --git a/.gitignore b/.gitignore index 201f3d7..9c8acd8 100644 --- a/.gitignore +++ b/.gitignore @@ -31,7 +31,6 @@ src/types # 单独把这个文件排除掉,用以解决部分电脑生成的 auto-import.d.ts 的API不完整导致类型提示报错问题 !src/types/auto-import.d.ts src/manifest.json -src/pages.json # 2025-10-15 by 菲鸽: lock 文件还是需要加入版本管理,今天又遇到版本不一致导致无法运行的问题了。 # pnpm-lock.yaml diff --git a/src/pages.json b/src/pages.json new file mode 100644 index 0000000..1c87b8d --- /dev/null +++ b/src/pages.json @@ -0,0 +1,150 @@ +{ + "globalStyle": { + "navigationStyle": "default", + "navigationBarTitleText": "unibest", + "navigationBarBackgroundColor": "#f8f8f8", + "navigationBarTextStyle": "black", + "backgroundColor": "#FFFFFF" + }, + "easycom": { + "autoscan": true, + "custom": { + "^fg-(.*)": "@/components/fg-$1/fg-$1.vue", + "^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)": "z-paging/components/z-paging$1/z-paging$1.vue", + "^wd-(.*)": "wot-design-uni/components/wd-$1/wd-$1.vue" + } + }, + "pages": [ + // GENERATED BY UNI-PAGES, PLATFORM: H5 + { + "path": "pages/index/index", + "type": "home", + "style": { + "navigationBarTitleText": "首页", + "navigationStyle": "custom" + } + }, + { + "path": "pages/finance/credit", + "type": "page", + "style": { + "navigationBarTitleText": "信用额度", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/finance/settlement", + "type": "page", + "style": { + "navigationBarTitleText": "应结账款", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/goods/cart", + "type": "page", + "style": { + "navigationBarTitleText": "购物车" + } + }, + { + "path": "pages/goods/detail", + "type": "page", + "style": { + "navigationBarTitleText": "商品详情", + "navigationBarBackgroundColor": "#ffffff", + "navigationBarTextStyle": "black" + } + }, + { + "path": "pages/login/index", + "type": "page", + "style": { + "navigationBarTitleText": "登录", + "navigationBarBackgroundColor": "#ffffff", + "navigationStyle": "custom" + } + }, + { + "path": "pages/me/me", + "type": "page", + "style": { + "navigationBarTitleText": "我的", + "navigationBarBackgroundColor": "#fff", + "navigationBarTextStyle": "black", + "navigationStyle": "custom" + } + }, + { + "path": "pages/member/index", + "type": "page", + "style": { + "navigationBarTitleText": "会员中心", + "navigationBarBackgroundColor": "#1a1a1a", + "navigationBarTextStyle": "white" + } + }, + { + "path": "pages/order/confirm", + "type": "page", + "style": { + "navigationBarTitleText": "确认订单" + } + }, + { + "path": "pages/order/detail", + "type": "page", + "style": { + "navigationBarTitleText": "订单详情" + } + }, + { + "path": "pages/order/list", + "type": "page", + "style": { + "navigationBarTitleText": "我的订单", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/sort/index", + "type": "page", + "style": { + "navigationBarTitleText": "分类", + "disableScroll": true, + "navigationStyle": "custom" + } + } + ], + "subPackages": [], + "tabBar": { + "custom": true, + "color": "#999999", + "selectedColor": "#018d71", + "backgroundColor": "#F8F8F8", + "borderStyle": "black", + "height": "50px", + "fontSize": "10px", + "iconWidth": "24px", + "spacing": "3px", + "list": [ + // GENERATED BY UNI-PAGES, PLATFORM: H5 + { + "text": "首页", + "pagePath": "pages/index/index" + }, + { + "text": "分类", + "pagePath": "pages/sort/index" + }, + { + "text": "购物车", + "pagePath": "pages/goods/cart" + }, + { + "text": "我的", + "pagePath": "pages/me/me" + } + ] + } +} \ No newline at end of file