feat: 站内通知
All checks were successful
构建并部署前端到生产环境 / build-and-deploy (push) Successful in 1m29s

This commit is contained in:
luo
2026-07-25 11:08:03 +08:00
parent 3929156ef4
commit 9c1c296d2e
10 changed files with 394 additions and 3 deletions

View File

@@ -29,6 +29,14 @@
</view>
<view class="function-name">套餐订购</view>
</view>
<view class="function-item interactive card-interactive" @tap="$emit('enter', 'notifications')" role="button"
tabindex="0">
<view class="function-icon function-icon-badge">
<image src="/static/tips.png" mode="aspectFit" alt="站内通知"></image>
<view v-if="unreadCount > 0" class="unread-badge">{{ unreadCount > 99 ? '99+' : unreadCount }}</view>
</view>
<view class="function-name">站内通知</view>
</view>
<view class="function-item interactive card-interactive" @tap="$emit('enter', 'order-list')" role="button"
tabindex="0">
<view class="function-icon">
@@ -132,6 +140,10 @@
walletBalance: {
type: [Number, String],
default: 0
},
unreadCount: {
type: Number,
default: 0
}
});
@@ -188,6 +200,22 @@
}
}
.function-icon-badge { position: relative; }
.unread-badge {
position: absolute;
top: -8rpx;
right: -12rpx;
min-width: 34rpx;
height: 34rpx;
padding: 0 8rpx;
border-radius: 20rpx;
background: var(--danger);
color: #fff;
font-size: 18rpx;
line-height: 34rpx;
text-align: center;
}
.function-name {
font-size: 28rpx;
font-weight: 500;