Initial commit

This commit is contained in:
2026-06-05 17:46:51 +08:00
commit c04c890186
96 changed files with 6477 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
<view class="page">
<view class="safe-top" style="height: {{statusBarHeight}}px"></view>
<view class="nav">
<view class="nav-back" bindtap="onBack"></view>
<view class="nav-title">消息通知</view>
<view class="nav-right" bindtap="onReadAll">全部已读</view>
</view>
<scroll-view scroll-y="true" enhanced="true" show-scrollbar="false">
<view wx:if="{{list.length === 0}}" class="empty">
<text class="empty-emoji">🔔</text>
<text class="empty-tip">暂时没有新消息</text>
</view>
<view wx:for="{{list}}" wx:key="_id" class="notify-item {{item.isRead ? '' : 'unread'}}" bindtap="onItemTap" data-item="{{item}}">
<view class="n-avatar" style="background: {{item.gradient}}">{{item.fromNick[0]}}</view>
<view class="n-body">
<text class="n-text">{{item.fromNick}} {{item.action}}了你的{{item.target}}</text>
<text class="n-time">{{item.timeText}}</text>
</view>
<view wx:if="{{!item.isRead}}" class="unread-dot"></view>
</view>
<view style="height: 60rpx;"></view>
</scroll-view>
</view>