From 260f70e59eebfa09281d5d57173337efd210e7dc Mon Sep 17 00:00:00 2001 From: huliyong <2783385703@qq.com> Date: Sun, 20 Oct 2024 23:41:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/base/tabbar.vue | 4 +- pages.json | 75 +++--- pages/index/cart.vue | 259 -------------------- pages/index/center.vue | 4 +- pages/index/index.vue | 12 +- pages/index/order.vue | 260 --------------------- {pages/login => pages_order/auth}/login.vue | 0 {pages/login => pages_order/auth}/wxUserInfo.vue | 4 +- {pages => pages_order}/autonym/autonym.vue | 0 {pages => pages_order}/record/record.vue | 16 +- .../static}/autonym/autoym-bg.png | Bin .../image => pages_order/static}/login/user.png | Bin static/image/cart/1.png | Bin 1933 -> 0 bytes static/image/cart/2.png | Bin 5540 -> 0 bytes static/image/product/favorable.png | Bin 282 -> 0 bytes 15 files changed, 58 insertions(+), 576 deletions(-) delete mode 100644 pages/index/cart.vue delete mode 100644 pages/index/order.vue rename {pages/login => pages_order/auth}/login.vue (100%) rename {pages/login => pages_order/auth}/wxUserInfo.vue (96%) rename {pages => pages_order}/autonym/autonym.vue (100%) rename {pages => pages_order}/record/record.vue (96%) rename {static/image => pages_order/static}/autonym/autoym-bg.png (100%) rename {static/image => pages_order/static}/login/user.png (100%) delete mode 100644 static/image/cart/1.png delete mode 100644 static/image/cart/2.png delete mode 100644 static/image/product/favorable.png diff --git a/components/base/tabbar.vue b/components/base/tabbar.vue index 04a4895..361388f 100644 --- a/components/base/tabbar.vue +++ b/components/base/tabbar.vue @@ -48,7 +48,7 @@ if(index == this.select){ return } - uni.redirectTo({ + uni.reLaunch({ url: item.pagePath }) }, @@ -72,7 +72,7 @@ height: 120rpx; // padding-bottom: env(safe-area-inset-bottom); padding: 10rpx 0rpx; - z-index: 999999; + z-index: 9999; bottom: 0; left: 0; color: #BCBCBC; diff --git a/pages.json b/pages.json index 98e4d68..0325ec6 100644 --- a/pages.json +++ b/pages.json @@ -1,15 +1,6 @@ { - "pages": [{ - "path": "pages/login/login", - "style": { - "navigationBarTitleText": "登录" - } - }, { - "path": "pages/login/wxUserInfo", - "style": { - "navigationBarTitleText": "用户信息" - } - }, { + "pages": [ + { "path": "pages/index/index", "style": { "navigationBarTitleText": "打卡" @@ -20,34 +11,44 @@ "style": { "navigationBarTitleText": "我的" } - }, - { - "path": "pages/record/record", - "style": { - "navigationBarTitleText": "打卡记录" - } - }, - { - "path" : "pages/autonym/autonym", - "style" : - { - "navigationBarTitleText" : "" - } } ], - // "preloadRule": { - // "pages/index/index": { - // "network": "all", - // "packages": ["pages_order"] - // } - // }, - // "subPackages": [{ - // "root": "pages_order", - // "pages": [{ - // "path": "order/orderDetail" - // } - // ] - // }], + "preloadRule": { + "pages/index/index": { + "network": "all", + "packages": ["pages_order"] + } + }, + "subPackages": [{ + "root": "pages_order", + "pages": [ + { + "path": "auth/login", + "style": { + "navigationBarTitleText": "登录" + } + }, + { + "path": "auth/wxUserInfo", + "style": { + "navigationBarTitleText": "用户信息" + } + }, + { + "path": "record/record", + "style": { + "navigationBarTitleText": "打卡记录" + } + }, + { + "path" : "autonym/autonym", + "style" : + { + "navigationBarTitleText" : "" + } + } + ] + }], "globalStyle": { "navigationBarTextStyle": "black", "navigationBarTitleText": "酒店桌布", diff --git a/pages/index/cart.vue b/pages/index/cart.vue deleted file mode 100644 index 4c9a7c2..0000000 --- a/pages/index/cart.vue +++ /dev/null @@ -1,259 +0,0 @@ - - - - - \ No newline at end of file diff --git a/pages/index/center.vue b/pages/index/center.vue index 802bca3..4a5296d 100644 --- a/pages/index/center.vue +++ b/pages/index/center.vue @@ -55,11 +55,11 @@ clickMenu(index){ if(index == 1){ uni.navigateTo({ - url: "/pages/record/record" + url: "/pages_order/record/record" }) }else if(index == 2){ uni.navigateTo({ - url: "/pages/autonym/autonym" + url: "/pages_order/autonym/autonym" }) } } diff --git a/pages/index/index.vue b/pages/index/index.vue index 5e57b8f..aebf307 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -42,7 +42,7 @@ - + @@ -50,8 +50,8 @@ - - diff --git a/pages/login/login.vue b/pages_order/auth/login.vue similarity index 100% rename from pages/login/login.vue rename to pages_order/auth/login.vue diff --git a/pages/login/wxUserInfo.vue b/pages_order/auth/wxUserInfo.vue similarity index 96% rename from pages/login/wxUserInfo.vue rename to pages_order/auth/wxUserInfo.vue index 3f229ef..933745c 100644 --- a/pages/login/wxUserInfo.vue +++ b/pages_order/auth/wxUserInfo.vue @@ -46,7 +46,7 @@ data() { return { userInfo: { - headImage: '/static/image/login/user.png', //设置了一个本地默认头像 + headImage: '../static/login/user.png', //设置了一个本地默认头像 nickName: '', name: '' } @@ -91,7 +91,7 @@ // } // }) - uni.navigateTo({ + uni.reLaunch({ url: "/pages/index/index" }) }) diff --git a/pages/autonym/autonym.vue b/pages_order/autonym/autonym.vue similarity index 100% rename from pages/autonym/autonym.vue rename to pages_order/autonym/autonym.vue diff --git a/pages/record/record.vue b/pages_order/record/record.vue similarity index 96% rename from pages/record/record.vue rename to pages_order/record/record.vue index 98d8972..45aca35 100644 --- a/pages/record/record.vue +++ b/pages_order/record/record.vue @@ -2,7 +2,15 @@