完善测试建表并统一前端格式

This commit is contained in:
yml2213
2026-07-14 01:32:14 +08:00
parent 2efcede800
commit 2ca6fd9306
36 changed files with 714 additions and 478 deletions
@@ -206,11 +206,17 @@ function handleTabChange(tab: string) {
<span class="tab-label">
<el-icon><ChatDotRound /></el-icon>
聊天
<em v-if="unreadTotal > 0" class="tab-badge">{{ unreadTotal > 99 ? '99+' : unreadTotal }}</em>
<em v-if="unreadTotal > 0" class="tab-badge">{{
unreadTotal > 99 ? '99+' : unreadTotal
}}</em>
</span>
</template>
<div v-if="loading && conversations.length === 0" class="message-loading" v-loading="loading" />
<div
v-if="loading && conversations.length === 0"
class="message-loading"
v-loading="loading"
/>
<div v-else-if="!loading && conversations.length === 0" class="empty-panel">
<el-empty description="暂无会话">
@@ -265,7 +271,9 @@ function handleTabChange(tab: string) {
<span class="tab-label">
<el-icon><Bell /></el-icon>
通知
<em v-if="notificationUnreadCount > 0" class="tab-badge">{{ notificationUnreadCount > 99 ? '99+' : notificationUnreadCount }}</em>
<em v-if="notificationUnreadCount > 0" class="tab-badge">{{
notificationUnreadCount > 99 ? '99+' : notificationUnreadCount
}}</em>
</span>
</template>
@@ -280,10 +288,15 @@ function handleTabChange(tab: string) {
:loading="notiSubmitting"
:disabled="notificationUnreadCount === 0"
@click="markAllNotiRead"
>全部已读</el-button>
>全部已读</el-button
>
</div>
<div v-if="notiLoading && notifications.length === 0" class="message-loading" v-loading="notiLoading" />
<div
v-if="notiLoading && notifications.length === 0"
class="message-loading"
v-loading="notiLoading"
/>
<div v-else-if="!notiLoading && notifications.length === 0" class="empty-panel">
<el-empty description="暂无站内信" />
@@ -307,13 +320,15 @@ function handleTabChange(tab: string) {
v-if="item.biz_type === 'order' && item.biz_id"
size="small"
@click="router.push(`/orders/${item.biz_id}`)"
>查看订单</el-button>
>查看订单</el-button
>
<el-button
v-if="!item.read_at"
size="small"
type="primary"
@click="markNotiRead(item)"
>已读</el-button>
>已读</el-button
>
</div>
</div>