style(match): 美化「拆约推荐」标题行——渐变装饰条+AI徽章+副标题,头部底部分隔线

This commit is contained in:
2026-11-15 11:34:00 +08:00
parent a0faca80c7
commit feb71f5277
2 changed files with 65 additions and 7 deletions
@@ -54,7 +54,16 @@
<!-- 拆约推荐:组织者 + 参与者 + 匹配度,点击进入详细分析 -->
<view class="section ai-section">
<view class="ai-section-header">
<text class="section-title">拆约推荐</text>
<view class="ai-header-title">
<view class="ai-title-bar"></view>
<view class="ai-title-text">
<view class="ai-title-main">
<text class="section-title">拆约推荐</text>
<text class="ai-title-badge">AI</text>
</view>
<text class="ai-title-sub">按你的视角智能匹配共拆搭子</text>
</view>
</view>
<view class="ai-header-actions">
<button class="refresh-btn" bindtap="onRefreshAI" disabled="{{aiRefreshing || aiLoading}}">
<text wx:if="{{!aiRefreshing}}">刷新</text>
@@ -116,12 +116,67 @@
justify-content: space-between;
align-items: center;
margin-bottom: 20rpx;
padding-bottom: 16rpx;
border-bottom: 1rpx solid #f0f0f0;
}
.ai-header-title {
display: flex;
align-items: center;
gap: 14rpx;
flex: 1;
min-width: 0;
}
.ai-title-bar {
width: 8rpx;
height: 52rpx;
border-radius: 4rpx;
background: linear-gradient(180deg, #4A90E2, #7AB3F0);
}
.ai-title-text {
display: flex;
flex-direction: column;
min-width: 0;
}
.ai-title-main {
display: flex;
align-items: center;
gap: 10rpx;
}
.ai-section-header .section-title {
margin-bottom: 0;
}
.ai-title-badge {
font-size: 18rpx;
font-weight: 700;
color: #ffffff;
background: linear-gradient(135deg, #722ed1, #eb2f96);
border-radius: 8rpx;
padding: 2rpx 10rpx;
line-height: 1.5;
}
.ai-title-sub {
font-size: 20rpx;
color: #999999;
margin-top: 2rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.ai-header-actions {
display: flex;
align-items: center;
gap: 12rpx;
flex-shrink: 0;
}
.refresh-btn {
padding: 8rpx 24rpx;
font-size: 24rpx;
@@ -136,12 +191,6 @@
opacity: 0.6;
}
.ai-header-actions {
display: flex;
align-items: center;
gap: 12rpx;
}
.theme-btn {
padding: 8rpx 24rpx;
font-size: 24rpx;