fix: gretting page
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="wallpaper-page">
|
||||
<NavBar title="精美壁纸" />
|
||||
<NavBar title="新春精美壁纸" />
|
||||
|
||||
<!-- Category Tabs -->
|
||||
<view class="category-tabs">
|
||||
@@ -41,12 +41,6 @@
|
||||
@tap="previewImage(index)"
|
||||
/>
|
||||
<view class="action-overlay">
|
||||
<view
|
||||
class="action-btn download"
|
||||
@tap.stop="downloadWallpaper(item)"
|
||||
>
|
||||
<text class="icon">↓</text>
|
||||
</view>
|
||||
<button
|
||||
class="action-btn share"
|
||||
open-type="share"
|
||||
@@ -55,6 +49,12 @@
|
||||
>
|
||||
<text class="icon">➦</text>
|
||||
</button>
|
||||
<view
|
||||
class="action-btn download"
|
||||
@tap.stop="downloadWallpaper(item)"
|
||||
>
|
||||
<text class="icon">↓</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -244,46 +244,21 @@ const shareWallpaper = (item) => {};
|
||||
<style lang="scss" scoped>
|
||||
.wallpaper-page {
|
||||
height: 100vh;
|
||||
background-color: #7a0909; /* Dark Red Background */
|
||||
background-color: #ffffff;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.nav-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 16rpx 24rpx;
|
||||
/* background: #7A0909; */
|
||||
.category-tabs {
|
||||
padding: 0;
|
||||
background-color: #ffffff;
|
||||
border-bottom: 1rpx solid #eeeeee;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.back {
|
||||
font-size: 50rpx;
|
||||
margin-right: 24rpx;
|
||||
line-height: 1;
|
||||
color: #ffd700; /* Gold */
|
||||
/* 增大点击区域 */
|
||||
padding: 20rpx;
|
||||
margin-left: -20rpx;
|
||||
}
|
||||
|
||||
.nav-title {
|
||||
font-size: 34rpx;
|
||||
font-weight: 600;
|
||||
color: #ffd700; /* Gold */
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
margin-right: 50rpx; /* Balance back button */
|
||||
}
|
||||
|
||||
.category-tabs {
|
||||
padding: 20rpx 0;
|
||||
/* background-color: #7A0909; */
|
||||
}
|
||||
|
||||
.tabs-scroll {
|
||||
white-space: nowrap;
|
||||
width: 100%;
|
||||
@@ -291,51 +266,54 @@ const shareWallpaper = (item) => {};
|
||||
|
||||
.tabs-content {
|
||||
display: inline-flex;
|
||||
padding: 0 24rpx;
|
||||
gap: 20rpx;
|
||||
padding: 0 30rpx;
|
||||
}
|
||||
|
||||
.tab-item {
|
||||
padding: 12rpx 32rpx;
|
||||
border-radius: 999rpx;
|
||||
font-size: 28rpx;
|
||||
color: #ffd700;
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
border: 2rpx solid transparent;
|
||||
padding: 24rpx 30rpx;
|
||||
font-size: 30rpx;
|
||||
color: #999999;
|
||||
position: relative;
|
||||
transition: all 0.3s;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.tab-item.active {
|
||||
background: linear-gradient(90deg, #ff3b30 0%, #ff9500 100%);
|
||||
color: #fff;
|
||||
border-color: #ffd700;
|
||||
font-weight: 600;
|
||||
box-shadow: 0 4rpx 12rpx rgba(255, 215, 0, 0.3);
|
||||
color: #e60012;
|
||||
font-weight: bold;
|
||||
|
||||
&::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 80rpx;
|
||||
height: 4rpx;
|
||||
background-color: #e60012;
|
||||
border-radius: 2rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.wallpaper-scroll {
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
/* padding: 24rpx; */
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.grid-container {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
padding: 24rpx;
|
||||
justify-content: space-between;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 30rpx;
|
||||
padding: 30rpx;
|
||||
}
|
||||
|
||||
.grid-item {
|
||||
width: 340rpx;
|
||||
height: 600rpx;
|
||||
border-radius: 24rpx;
|
||||
border-radius: 32rpx;
|
||||
overflow: hidden;
|
||||
margin-bottom: 24rpx;
|
||||
position: relative;
|
||||
box-shadow: 0 8rpx 16rpx rgba(0, 0, 0, 0.3);
|
||||
background: #333;
|
||||
background: #f5f5f5;
|
||||
}
|
||||
|
||||
.wallpaper-img {
|
||||
@@ -356,22 +334,29 @@ const shareWallpaper = (item) => {};
|
||||
width: 64rpx;
|
||||
height: 64rpx;
|
||||
border-radius: 50%;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
backdrop-filter: blur(4px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: 1rpx solid rgba(255, 255, 255, 0.3);
|
||||
border: 1rpx solid rgba(255, 255, 255, 0.2);
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
line-height: 1;
|
||||
|
||||
&::after {
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
|
||||
.action-btn.share .icon {
|
||||
font-size: 30rpx;
|
||||
}
|
||||
|
||||
.action-btn .icon {
|
||||
color: #fff;
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.action-btn.share .icon {
|
||||
font-size: 28rpx;
|
||||
font-size: 36rpx;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.loading-state,
|
||||
@@ -379,7 +364,7 @@ const shareWallpaper = (item) => {};
|
||||
.no-more {
|
||||
text-align: center;
|
||||
padding: 40rpx;
|
||||
color: rgba(255, 255, 255, 0.6);
|
||||
color: #999999;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user