diff --git a/src/components/AppFooter.vue b/src/components/AppFooter.vue index f40a7b0..39e3ebf 100644 --- a/src/components/AppFooter.vue +++ b/src/components/AppFooter.vue @@ -22,13 +22,18 @@ const props = defineProps({ const isIOS = uni.getDeviceInfo().osName === "ios"; const tabs = { - 首页: "home", + VIP: "vip", 智能弓: "mall", 计分本: "tab-point-book", 勋章: "medal", 个人中心: "user", }; const onTabChange = (index) => { + if (index === 0) { + return uni.navigateTo({ + url: "/pages/be-vip", + }); + } if (index === 1) { return uni.navigateTo({ url: "/pages/device-intro", @@ -50,11 +55,6 @@ const onTabChange = (index) => { } // props.onChange(index); }; -const getTabSrc = (key, index) => { - return `../static/tab-${tabs[key]}${ - props.selected === index ? "" : "-o" - }.png`; -}; @@ -83,26 +83,27 @@ const getTabSrc = (key, index) => { width: 100vw; position: relative; display: flex; - justify-content: space-around; + justify-content: center; align-items: center; background: linear-gradient( 180deg, rgba(70, 55, 34, 0.75) 0%, - rgba(5, 11, 25, 0.58) 100% + rgba(5, 11, 25, 0.58) 77% ), #000000; - box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(0, 0, 0, 0.06); + /* box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(0, 0, 0, 0.06); */ } .footer > button { display: flex; flex-direction: column; align-items: center; justify-content: center; - width: 20%; + width: 19%; + color: #8e7d5c; } .footer > button > image { - width: 44rpx; - height: 44rpx; + width: 46rpx; + height: 46rpx; } .footer > button > text { font-weight: 500; @@ -111,10 +112,11 @@ const getTabSrc = (key, index) => { } .point-book-tab { overflow: unset; + margin: 0 1%; } .point-book-tab > image { width: 144rpx !important; height: 144rpx !important; - transform: translateY(-10rpx); + transform: translateY(-20rpx); } diff --git a/src/components/TopRank.vue b/src/components/TopRank.vue index d6ca869..0273f7e 100644 --- a/src/components/TopRank.vue +++ b/src/components/TopRank.vue @@ -132,6 +132,7 @@ onBeforeUnmount(() => { align-items: center; height: 80rpx; margin-top: 20rpx; + margin-left: 1rpx; } .rank-item > view:first-child { position: relative; diff --git a/src/static/announce.png b/src/static/announce.png index 35e5d09..a2cf2c2 100644 Binary files a/src/static/announce.png and b/src/static/announce.png differ diff --git a/src/static/tab-home-o.png b/src/static/tab-home-o.png deleted file mode 100644 index abed1d5..0000000 Binary files a/src/static/tab-home-o.png and /dev/null differ diff --git a/src/static/tab-home.png b/src/static/tab-home.png deleted file mode 100644 index 7de0312..0000000 Binary files a/src/static/tab-home.png and /dev/null differ diff --git a/src/static/tab-mall-o.png b/src/static/tab-mall-o.png deleted file mode 100644 index 88537ad..0000000 Binary files a/src/static/tab-mall-o.png and /dev/null differ diff --git a/src/static/tab-mall.png b/src/static/tab-mall.png index 7014218..88537ad 100644 Binary files a/src/static/tab-mall.png and b/src/static/tab-mall.png differ diff --git a/src/static/tab-medal-o.png b/src/static/tab-medal-o.png deleted file mode 100644 index 6b96f8e..0000000 Binary files a/src/static/tab-medal-o.png and /dev/null differ diff --git a/src/static/tab-medal.png b/src/static/tab-medal.png index af828cf..6b96f8e 100644 Binary files a/src/static/tab-medal.png and b/src/static/tab-medal.png differ diff --git a/src/static/tab-point-book.png b/src/static/tab-point-book.png index cb2afe0..b4f9ce8 100644 Binary files a/src/static/tab-point-book.png and b/src/static/tab-point-book.png differ diff --git a/src/static/tab-user.png b/src/static/tab-user.png new file mode 100644 index 0000000..0595d24 Binary files /dev/null and b/src/static/tab-user.png differ diff --git a/src/static/tab-vip.png b/src/static/tab-vip.png index 0d5e3c5..074be8c 100644 Binary files a/src/static/tab-vip.png and b/src/static/tab-vip.png differ