feat: 不固定头部

This commit is contained in:
2025-11-11 21:00:26 +08:00
parent 4a13a035de
commit 3e136a1db4
3 changed files with 12 additions and 8 deletions
+12 -8
View File
@@ -53,7 +53,7 @@
<image <image
@click="goShare" @click="goShare"
src="/static/home/shop-go.png" src="/static/home/shop-go.png"
style="width: 92rpx; height: 30rpx" style="width: 75rpx; height: 30rpx"
></image> ></image>
</view> </view>
</view> </view>
@@ -200,27 +200,31 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.content {
height: auto;
overflow: auto;
}
.top-box { .top-box {
width: 100%; width: 100%;
padding-bottom: 24rpx; padding-bottom: 24rpx;
background: linear-gradient(270deg, #af39c4 0%, #7732ff 100%); background: linear-gradient(270deg, #af39c4 0%, #7732ff 100%);
.swiper-box { .swiper-box {
position: relative; position: relative;
margin-bottom: 50rpx; margin-bottom: 20rpx;
.swiper-card { .swiper-card {
padding: 12rpx 32rpx 20rpx; padding: 12rpx 32rpx 0;
} }
.swiper-title { .swiper-title {
padding: 3rpx 10rpx; padding: 3rpx 10rpx;
position: absolute; // position: absolute;
left: -14rpx; // left: -14rpx;
top: 164rpx; // top: 164rpx;
height: 56rpx; height: 56rpx;
width: 702rpx; width: 702rpx;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
margin: 0 28rpx; margin: 0 auto;
background-color: #f0e7fe; background-color: #f0e7fe;
border-radius: 8rpx; border-radius: 8rpx;
} }
@@ -320,7 +324,7 @@ export default {
} }
.setting-view { .setting-view {
width: 100%; width: 100%;
height: calc(100% - 88rpx - var(--status-bar-height)); // height: calc(100% - var(--status-bar-height));
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 22 KiB