fix: make page
This commit is contained in:
@@ -489,7 +489,19 @@
|
|||||||
<!-- Scene Selection Popup -->
|
<!-- Scene Selection Popup -->
|
||||||
<uni-popup ref="scenePopup" type="center" :is-mask-click="false">
|
<uni-popup ref="scenePopup" type="center" :is-mask-click="false">
|
||||||
<view class="scene-popup">
|
<view class="scene-popup">
|
||||||
<view class="scene-title">选择祝福场景</view>
|
<view class="scene-header">
|
||||||
|
<text class="scene-title">选择祝福场景</text>
|
||||||
|
<text class="scene-subtitle">挑选一个场景,开启专属祝福</text>
|
||||||
|
<view class="scene-divider">
|
||||||
|
<view class="line"></view>
|
||||||
|
<uni-icons
|
||||||
|
type="cloud-upload-filled"
|
||||||
|
size="20"
|
||||||
|
color="#E6B800"
|
||||||
|
></uni-icons>
|
||||||
|
<view class="line"></view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<view class="scene-grid">
|
<view class="scene-grid">
|
||||||
<view
|
<view
|
||||||
class="scene-item"
|
class="scene-item"
|
||||||
@@ -497,8 +509,12 @@
|
|||||||
:key="index"
|
:key="index"
|
||||||
@tap="selectScene(scene)"
|
@tap="selectScene(scene)"
|
||||||
>
|
>
|
||||||
<view class="scene-icon-box" :style="{ background: scene.color }">
|
<view class="scene-icon-box" :style="{ background: scene.bgColor }">
|
||||||
<uni-icons :type="scene.icon" size="32" color="#fff"></uni-icons>
|
<uni-icons
|
||||||
|
:type="scene.icon"
|
||||||
|
size="32"
|
||||||
|
:color="scene.color"
|
||||||
|
></uni-icons>
|
||||||
</view>
|
</view>
|
||||||
<text class="scene-name">{{ scene.name }}</text>
|
<text class="scene-name">{{ scene.name }}</text>
|
||||||
</view>
|
</view>
|
||||||
@@ -930,38 +946,44 @@ const scenes = [
|
|||||||
{
|
{
|
||||||
name: "节日祝福",
|
name: "节日祝福",
|
||||||
value: "holiday",
|
value: "holiday",
|
||||||
icon: "calendar-filled",
|
icon: "notification-filled",
|
||||||
color: "#FF3B30",
|
color: "#FF3B30",
|
||||||
|
bgColor: "#FFF5F5",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "生日纪念",
|
name: "生日纪念",
|
||||||
value: "birthday",
|
value: "birthday",
|
||||||
icon: "gift-filled",
|
icon: "calendar-filled",
|
||||||
color: "#FF9500",
|
color: "#FF9500",
|
||||||
|
bgColor: "#FFF8E5",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "每日问候",
|
name: "每日问候",
|
||||||
value: "daily",
|
value: "daily",
|
||||||
icon: "notification-filled",
|
icon: "star-filled",
|
||||||
color: "#FFCC00",
|
color: "#FFCC00",
|
||||||
|
bgColor: "#FFFBE6",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "情绪表达",
|
name: "情绪表达",
|
||||||
value: "emotion",
|
value: "emotion",
|
||||||
icon: "heart-filled",
|
icon: "heart-filled",
|
||||||
color: "#AF52DE",
|
color: "#FF2D55",
|
||||||
|
bgColor: "#FFF0F5",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "人际关系",
|
name: "人际关系",
|
||||||
value: "relationship",
|
value: "relationship",
|
||||||
icon: "contact-filled",
|
icon: "gift-filled",
|
||||||
color: "#5856D6",
|
color: "#FF5E3A",
|
||||||
|
bgColor: "#FFF2F0",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "职场祝福",
|
name: "职场祝福",
|
||||||
value: "workplace",
|
value: "workplace",
|
||||||
icon: "vip-filled",
|
icon: "shop-filled",
|
||||||
color: "#007AFF",
|
color: "#8B572A",
|
||||||
|
bgColor: "#F9F0E6",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -2515,33 +2537,77 @@ function drawRoundRect(ctx, x, y, w, h, r, color) {
|
|||||||
.scene-popup {
|
.scene-popup {
|
||||||
width: 600rpx;
|
width: 600rpx;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 30rpx;
|
border-radius: 40rpx;
|
||||||
padding: 40rpx;
|
padding: 50rpx 40rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
border: 4rpx solid #f8e71c; /* 金色边框 */
|
||||||
|
box-shadow: 0 0 40rpx rgba(248, 231, 28, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.scene-header {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 40rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.scene-title {
|
.scene-title {
|
||||||
font-size: 36rpx;
|
font-size: 44rpx;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #333;
|
color: #d0021b; /* 深红色 */
|
||||||
margin-bottom: 40rpx;
|
margin-bottom: 12rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.scene-subtitle {
|
||||||
|
font-size: 24rpx;
|
||||||
|
color: #999;
|
||||||
|
margin-bottom: 30rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.scene-divider {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.scene-divider .line {
|
||||||
|
width: 100rpx;
|
||||||
|
height: 2rpx;
|
||||||
|
background: linear-gradient(
|
||||||
|
90deg,
|
||||||
|
rgba(230, 184, 0, 0),
|
||||||
|
rgba(230, 184, 0, 0.5),
|
||||||
|
rgba(230, 184, 0, 0)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
.scene-grid {
|
.scene-grid {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(3, 1fr);
|
grid-template-columns: repeat(2, 1fr);
|
||||||
gap: 30rpx;
|
gap: 30rpx;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-bottom: 40rpx;
|
margin-bottom: 50rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.scene-item {
|
.scene-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 16rpx;
|
gap: 20rpx;
|
||||||
|
background: #fff;
|
||||||
|
padding: 40rpx 0;
|
||||||
|
border-radius: 24rpx;
|
||||||
|
box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.06);
|
||||||
|
transition: all 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.scene-item:active {
|
||||||
|
transform: scale(0.98);
|
||||||
|
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.04);
|
||||||
}
|
}
|
||||||
|
|
||||||
.scene-icon-box {
|
.scene-icon-box {
|
||||||
@@ -2551,17 +2617,19 @@ function drawRoundRect(ctx, x, y, w, h, r, color) {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
box-shadow: 0 8rpx 20rpx rgba(0, 0, 0, 0.1);
|
margin-bottom: 8rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.scene-name {
|
.scene-name {
|
||||||
font-size: 26rpx;
|
font-size: 30rpx;
|
||||||
color: #666;
|
color: #333;
|
||||||
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
.skip-btn {
|
.skip-btn {
|
||||||
font-size: 28rpx;
|
font-size: 26rpx;
|
||||||
color: #999;
|
color: #bbb;
|
||||||
padding: 20rpx;
|
padding: 20rpx;
|
||||||
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user