From cb4142ab6f88ed7827b78af4a59b6f66329fe03f Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Fri, 19 Jan 2024 17:07:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/home.vue | 71 +++++++++++++++++++++++++------------ pages/login/login.vue | 15 ++++---- static/image/menu/RF05.png | Bin 2249 -> 1341 bytes 3 files changed, 58 insertions(+), 28 deletions(-) diff --git a/pages/home/home.vue b/pages/home/home.vue index a51ffb6..f815c5b 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -22,12 +22,13 @@ - + + - - {{e.name}} + + {{e.name}} @@ -40,7 +41,7 @@ export default { data() { return { - userName: '', + userName: 'admin', menuList: [], show: false, secM: [] @@ -108,29 +109,30 @@ .userInfo _fj(,flex-start,column) .p1 - _font(34rpx,1,#fff) + _font(32rpx,1,#fff) padding-bottom 18rpx .p2 - _font(26rpx,1,#fff) + _font(28rpx,1,#fff) .exit _fj() - height 47rpx - padding 0 15rpx + height 48rpx + padding 0 20rpx border 1px solid #FF967C border-radius 20rpx .icon-exit _wh(22rpx, 22rpx) _bis('../../static/image/exit.png',22rpx) .exit-text - _font(24rpx,47rpx,#fff,,right) + _font(28rpx,48rpx,#fff,,right) padding-left 10rpx .zd_home_wrapper _wh(100%, calc(100% - 208rpx)) background-color #fff border-radius: 12rpx; - padding: 14rpx; + padding: 24rpx 14rpx; margin-bottom: 24rpx; overflow-y auto + box-shadow 0 4rpx 10rpx 2rpx rgba(0,0,0,.1) .menu-wrap _wh(100%, auto) _fj(flex-start,flex-start,,wrap) @@ -140,26 +142,30 @@ flex-direction column _wh(30%, auto) margin-bottom 40rpx - _font(26rpx, 60rpx,#e74f1a,,center) + _font(26rpx, 28rpx,#e74f1a,,center) &:nth-child(3n+2) margin-left 5% margin-right 5% ::v-deep .menu-img _wh(100%, auto) + margin-bottom 16rpx img position relative opacity 1 _wh(55%, auto) + background-color: #f3f5f8 + box-shadow 8rpx 6rpx 10rpx 0px rgba(0,0,0,0.1) + padding 16rpx + border-radius 50% margin 0 auto 0.2rpx .menu-name - _font(28rpx, 38rpx, #444,,center) + _font(28rpx, 30rpx, #444,,center) .sec_menu_wraper position fixed bottom 0 left 0 width 100% - height 70% - background-color rgba(246, 246, 246, 1) + background-color #f4f5f5 box-shadow 0 -8px 16px 0 rgba(28,31,33,.1) border-top-left-radius 20rpx border-top-right-radius 20rpx @@ -178,20 +184,27 @@ _fj(flex-start) flex-wrap wrap .sec_menu-item - _wh(32%, 150rpx) + _wh(30%, 120rpx) margin-bottom 20rpx - background-color #fff - border 2px solid #dfe2e6 - border-radius 20rpx + border-radius 10rpx + background-size 40% auto + background-position right 90% + background-repeat no-repeat &:nth-child(3n+2) - margin-left 2% - margin-right 2% + margin-left 5% + margin-right 5% .menu-name_inner _wh(100%, 100%) _fj(center) - _font(28rpx, 34rpx, #444,,center) + _font(28rpx, 30rpx, #fff,,center) + border-radius 10rpx padding 10rpx overflow hidden +.line + _wh(90rpx, 10rpx) + background-color #e0e0e1 + border-radius 4rpx + margin 20rpx auto 40rpx .cancel _wh(calc(100% - 76rpx), 100rpx) margin 0 auto @@ -202,4 +215,18 @@ transform: translateY(0) .hidden transform: translateY(100%) +.bgc_1 + background linear-gradient(to right, rgba(73,102,255,0.8) 0%, rgba(117,142,255,0.8) 100%) +.bgc_2 + background linear-gradient(to right, rgba(254, 168, 20,0.8) 0%, rgba(255, 177, 1,0.8) 100%) +.bgc_3 + background linear-gradient(to right, rgba(0, 228, 153,0.8) 0%, rgba(0, 241, 197,0.8) 100%) +.bgc_4 + background linear-gradient(to right, rgba(162, 86, 171,0.8) 0%, rgba(183,120,190,0.8) 100%) +.bgc_5 + background linear-gradient(to right, rgba(146, 94, 52,0.8) 0%, rgba(162, 116, 79,0.8) 100%) +.bgc_6 + background linear-gradient(to right, rgba(83, 191, 194,0.8) 0%, rgba(119, 198, 201,0.8) 100%) +.bgc_7 + background linear-gradient(to right, rgba(244, 97, 61,0.8) 0%, rgba(245, 130, 102,0.8) 100%) diff --git a/pages/login/login.vue b/pages/login/login.vue index be6733a..7c8b4f7 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -84,9 +84,9 @@ }) }, async toLogin() { - // uni.redirectTo({ - // url: '/pages/home/home' - // }) + uni.redirectTo({ + url: '/pages/home/home' + }) this.disabled = true if (this.user === '') { uni.showToast({ @@ -143,11 +143,11 @@