Files
SupplierSystem/miniprogram/pages/notifications/notifications.wxml
T
Ubuntu deb3e72750
CI / server typecheck + tests (push) Canceled after 0s
CI / web typecheck + tests + miniprogram syntax (push) Canceled after 0s
CI / eslint (观察项,C7 骨架) (push) Canceled after 0s
CI / npm audit (critical 硬拦) (push) Canceled after 0s
chore: 以 AI 生鲜配送系统 当前版本作为 SupplierSystem 起点
来源仓库:jxc/ai-fresh-delivery
来源提交:f0b1a180e2deb7e4673b9d1c8542619f7bc0f73d
快照树:  09f679334ff38f0ff25e907961c94a8223bcaedd(与来源 HEAD 工作树逐字节一致,3801 个文件)

按约定本仓库不带任何历史提交:来源仓库的历史中含真实凭据
(生产 SSH 私钥 deploy/id_rsa_tencent、server/.env、.env.tencent/.env.production/.env.gitea、
deploy/小程序AppSecret.txt,其中 MP_APPSECRET / S3 AccessKey 经哈希比对与线上同值),
整包推送会把这些凭据永久带入本仓库,故只取「当前版本」的单提交快照。
供应商系统后续开发自本提交开始。
2026-10-08 17:35:43 +08:00

61 lines
1.9 KiB
Plaintext

<view class="page xd-page-pad">
<view class="page-atmosphere" aria-hidden="true"></view>
<view class="toolbar anim-rise anim-rise--delay">
<view class="section-head">
<view class="section-mark"></view>
<view class="toolbar-title">
系统通知
<text class="unread-count">未读 {{unreadCount}}</text>
</view>
</view>
<view
wx:if="{{unreadCount > 0}}"
class="mark-all"
bindtap="markAllRead"
>
<van-icon name="checked" size="14px" color="#059669" />
<text>全部已读</text>
</view>
</view>
<view wx:if="{{loading}}" class="state-box">
<van-loading size="24px" color="#059669">加载中…</van-loading>
</view>
<view wx:elif="{{!rows.length}}" class="state-box">
<van-empty description="暂无通知" />
</view>
<view wx:else class="list anim-rise anim-rise--delay-2">
<view
wx:for="{{rows}}"
wx:key="id"
class="notification {{item.is_read ? 'is-read' : 'unread'}}"
data-type="{{item.notify_type}}"
data-order="{{item.related_order_code}}"
bindtap="onNotificationTap"
>
<view class="notification-accent"></view>
<view class="notification-body">
<view class="notification-head">
<view class="notification-title">{{item.title}}</view>
<van-tag
wx:if="{{!item.is_read}}"
type="danger"
plain
size="medium"
custom-class="unread-tag"
>未读</van-tag>
</view>
<view wx:if="{{item.displayMeta}}" class="content-meta">{{item.displayMeta}}</view>
<view class="content">{{item.displayContent}}</view>
<view class="meta-row">
<van-icon name="clock-o" size="12px" color="#a1a1aa" />
<text class="meta-time">{{item.displayTime}}</text>
</view>
</view>
</view>
</view>
<app-tab-bar active="notifications" />
</view>