From f658ca9baf41d2f099f466e01d92545b19cbca2c Mon Sep 17 00:00:00 2001 From: lSun <15893999301@qq.com> Date: Thu, 2 Jan 2025 16:15:19 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index.vue | 404 +++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 334 insertions(+), 70 deletions(-) diff --git a/pages/index.vue b/pages/index.vue index ad19dfa..ecdf0fd 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,77 +1,341 @@ + /* #ifndef APP-NVUE */ + page { + display: flex; + flex-direction: column; + box-sizing: border-box; + background-color: #FAFCFF; + min-height: 100%; + height: auto; + } + + view { + font-size: 14px; + line-height: inherit; + } + + /* #endif */ + .work-container { + background-color: #FAFCFF; + padding: 0 30rpx; + } + + .header { + padding: 50rpx 0; + + .header-text { + font-size: 36rpx; + font-weight: 700; + color: #333; + } + } + + + .function-area { + margin-top: 30rpx; + border-radius: 12rpx; + padding: 0rpx; + display: flex; + justify-content: space-between; + margin-bottom: 30rpx; + box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04); + + .function-item { + background-color: #FFFFFF; + border-radius: 12rpx; + padding: 40rpx; + display: flex; + align-items: center; + gap: 18rpx; + flex: 0 0 calc(50% - 30rpx); + box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04); + + } + + .icon-box { + width: 66rpx; + height: 66rpx; + display: flex; + align-items: center; + justify-content: center; + border-radius: 50%; + + &.menu { + background-color: #F5F5F5; + } + + &.order { + background-color: #FFF7F2; + } + } + + .function-text { + font-size: 28rpx; + color: #333; + font-weight: 600; + } + } + + .bottom-info { + margin-top: 30rpx; + border-radius: 12rpx; + padding: 0 0 0 0; + display: flex; + justify-content: space-between; + gap: 20rpx; + box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04); + + .qr-area, + .balance-area { + background-color: #FFFFFF; + border-radius: 12rpx; + padding: 80rpx; + box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04); + } + + .qr-area { + .qr-title { + font-size: 30rpx; + color: #333; + margin-bottom: 8rpx; + margin-top: -45rpx; + margin-left: -45rpx; + font-weight: 700; + } + + .qr-subtitle { + font-size: 24rpx; + color: #333; + margin-bottom: 20rpx; + margin-left: -45rpx; + } + + .qr-code { + width: 160rpx; + height: 160rpx; + margin-bottom: -60rpx; + image { + width: 100%; + height: 100%; + margin-left: 60rpx; + } + } + } + + .balance-area { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + + .balance-text { + text-align: center; + display: flex; + flex-direction: column; + gap: 8rpx; + margin-left: 0rpx; + + .wallet-icon { + width: 160rpx; + height: 160rpx; + margin-bottom: -60rpx; + image{ + width: 100%; + height: 100%; + margin-left: 60rpx; + } + } + + .balance-label { + font-size: 24rpx; + color: #333; + margin-top: -72rpx; + margin-left: -160rpx; + font-weight: 600; + } + + .balance-amount { + display: flex; + align-items: baseline; + margin-left: -50rpx; + .currency { + font-size: 24rpx; + color: #333; + margin-right: 4rpx; + } + + .amount { + font-size: 36rpx; + font-weight: 700; + color: #333; + } + } + } + } + } + + .text { + text-align: center; + font-size: 26rpx; + margin-top: 10rpx; + } + + .grid-item-box { + flex: 1; + /* #ifndef APP-NVUE */ + display: flex; + /* #endif */ + flex-direction: column; + align-items: center; + justify-content: center; + padding: 15px 0; + } + + .uni-margin-wrap { + width: 690rpx; + width: 100%; + ; + } + + .swiper { + height: 300rpx; + } + + .swiper-box { + height: 150px; + } + + .swiper-item { + /* #ifndef APP-NVUE */ + display: flex; + /* #endif */ + flex-direction: column; + justify-content: center; + align-items: center; + color: #fff; + height: 300rpx; + line-height: 300rpx; + } + + @media screen and (min-width: 500px) { + .uni-swiper-dot-box { + width: 400px; + /* #ifndef APP-NVUE */ + margin: 0 auto; + /* #endif */ + margin-top: 8px; + } + + .image { + width: 100%; + } + } + \ No newline at end of file