From 8f05bf39ce88fde8747c59590a12b980fb1fc401 Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Thu, 14 Dec 2023 16:00:46 +0800 Subject: [PATCH] home --- common/style/layout.css | 18 ++++---- pages/home/home.vue | 94 ++++++++++++++++++++++++----------------- 2 files changed, 66 insertions(+), 46 deletions(-) diff --git a/common/style/layout.css b/common/style/layout.css index 693f188..33a0ab7 100644 --- a/common/style/layout.css +++ b/common/style/layout.css @@ -86,17 +86,19 @@ uni-button:after { line-height: 48rpx; } .cancel_icon::before { - content: "\e6dc"; + content: "\e6db"; } .cancel_icon { display: block; - width: 100rpx; - height: 100rpx; - font-size: 50rpx; - color: #fff; - line-height: 100rpx; + width: 60rpx; + height: 60rpx; + font-size: 40rpx; + color: #000; + line-height: 60rpx; text-align: center; - background-color: #E9B451; + border: 1px solid #999; + border-radius: 50%; + transform: rotate(-90deg); } /** 内容 */ @@ -107,7 +109,7 @@ uni-button:after { .zd_content { width: 100%; height: auto; - padding: 92rpx 15rpx 82rpx 14rpx; + padding: 92rpx 14rpx 82rpx 14rpx; } .zd_wrapper { width: 100%; diff --git a/pages/home/home.vue b/pages/home/home.vue index 34db3a5..b8c49a1 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -11,7 +11,7 @@ {{$t('home.exit')}} - + @@ -19,18 +19,17 @@ - - - - - {{e.name}} - - - + + + + {{e.name}} + + + @@ -79,6 +78,8 @@ @import '../../common/style/mixin.styl'; .zd_content padding-top 0 + padding-bottom 0 + height 100% .header height 86rpx _font(36rpx,86rpx,#333,,center) @@ -109,7 +110,12 @@ .exit-text _font(24rpx,47rpx,#fff,,right) padding-left 10rpx +.zd_home_wrapper + height calc(100% - 286rpx) + overflow hidden + overflow-y auto .menu-wrap + _wh(100%, auto) _fj(flex-start,flex-start,,wrap) align-content: flex-start .menu-item @@ -132,39 +138,51 @@ _font(28rpx, 38rpx, #444,,center) .sec_menu_wraper position fixed - top 0 + bottom 0 + left 0 + width 100% + height 70% + background-color #f4f5f5 + box-shadow 0 -8px 16px 0 rgba(28,31,33,.1) + border-top-left-radius 20rpx + border-top-right-radius 20rpx + z-index 2017 + transition all .3s +.modal + position fixed + bottom 0 left 0 _wh(100%, 100%) - background-color rgba(0, 0, 0, .9) - z-index 2017 - flex-direction column + background-color rgba(0,0,0,0.8) + z-index 2010 .sec_menu_w - _fj() - _wh(100%, calc(100% - 100rpx)) - padding 0 24rpx + width calc(100% - 76rpx) + margin 30rpx auto 0 auto + _fj(flex-start) flex-wrap wrap - align-content center - &::after - content '' - display block - _wh(30%,0) -.sec_menu-col - background-color transparent - border none - height auto -.sec_menu-col_inner - _fj(center) - _wh(160rpx, 160rpx) - border-radius 50% - background-color $yellow - margin 0 auto +.sec_menu-item + _wh(32%, 150rpx) + margin-bottom 20rpx + background-color #fff + border 2px solid #dfe2e6 + border-radius 20rpx + &:nth-child(3n+2) + margin-left 2% + margin-right 2% .menu-name_inner - color #fff - padding 0 20rpx + _wh(100%, 100%) + _fj(center) + _font(28rpx, 34rpx, #444,,center) + padding 10rpx + overflow hidden .cancel - _wh(100%, 100rpx) - padding 0 24rpx - overflow hidden - background-color rgba(255, 255, 255, .3) - box-shadow 0 1rpx 4rpx 0 rgba(160,160,160,0.9) + _wh(calc(100% - 76rpx), 100rpx) + margin 0 auto + padding 20rpx 0 + overflow hidden + border-bottom 1px solid #c5c6c7 +.show + transform: translateY(0) +.hidden + transform: translateY(100%)