优化:查看私信按钮移入管理操作列表,取消独立站长操作区
This commit is contained in:
@@ -316,6 +316,9 @@
|
||||
<button
|
||||
style="flex:1; padding: 5px; border-radius: 4px; font-size: 11px; background: #dbeafe; border: 1px solid #3b82f6; cursor: pointer;"
|
||||
x-on:click="freezeUser()">🧊 冻结</button>
|
||||
<button
|
||||
style="flex:1; padding: 5px; border-radius: 4px; font-size: 11px; background: #f3e8ff; border: 1px solid #a855f7; cursor: pointer;"
|
||||
x-on:click="loadWhispers()">🔍 私信</button>
|
||||
</div>
|
||||
</div>
|
||||
{{-- 禁言表单 --}}
|
||||
@@ -330,30 +333,21 @@
|
||||
</div>
|
||||
@endif
|
||||
|
||||
{{-- 站长专属操作 --}}
|
||||
@if (Auth::user()->user_level >= (int) \App\Models\Sysparam::getValue('superlevel', '100'))
|
||||
<div style="padding: 0 16px 12px;" x-show="userInfo.username !== window.chatContext.username">
|
||||
<div style="font-size: 11px; color: #7c3aed; margin-bottom: 6px; font-weight: bold;">站长操作</div>
|
||||
<button
|
||||
style="width: 100%; padding: 5px; border-radius: 4px; font-size: 11px; background: #f3e8ff; border: 1px solid #a855f7; cursor: pointer;"
|
||||
x-on:click="loadWhispers()">🔍 查看私信记录</button>
|
||||
</div>
|
||||
{{-- 私信记录展示区 --}}
|
||||
<div x-show="showWhispers"
|
||||
style="display: none; padding: 0 16px 12px; max-height: 200px; overflow-y: auto;">
|
||||
<div style="font-size: 11px; color: #666; margin-bottom: 4px;"
|
||||
x-text="'最近 ' + whisperList.length + ' 条悄悄话:'"></div>
|
||||
<template x-for="w in whisperList" :key="w.id">
|
||||
<div style="font-size: 11px; padding: 3px 0; border-bottom: 1px solid #f0f0f0;">
|
||||
<span style="color: #6366f1;" x-text="w.from_user"></span>
|
||||
→ <span style="color: #059669;" x-text="w.to_user"></span>:
|
||||
<span x-text="w.content"></span>
|
||||
<span style="color: #aaa; font-size: 10px;" x-text="'(' + w.sent_at + ')'"></span>
|
||||
</div>
|
||||
</template>
|
||||
<div x-show="whisperList.length === 0" style="font-size: 11px; color: #aaa;">暂无悄悄话记录</div>
|
||||
</div>
|
||||
@endif
|
||||
{{-- 私信记录展示区(管理员查看) --}}
|
||||
<div x-show="showWhispers"
|
||||
style="display: none; padding: 0 16px 12px; max-height: 200px; overflow-y: auto;">
|
||||
<div style="font-size: 11px; color: #666; margin-bottom: 4px;"
|
||||
x-text="'最近 ' + whisperList.length + ' 条悄悄话:'"></div>
|
||||
<template x-for="w in whisperList" :key="w.id">
|
||||
<div style="font-size: 11px; padding: 3px 0; border-bottom: 1px solid #f0f0f0;">
|
||||
<span style="color: #6366f1;" x-text="w.from_user"></span>
|
||||
→ <span style="color: #059669;" x-text="w.to_user"></span>:
|
||||
<span x-text="w.content"></span>
|
||||
<span style="color: #aaa; font-size: 10px;" x-text="'(' + w.sent_at + ')'"></span>
|
||||
</div>
|
||||
</template>
|
||||
<div x-show="whisperList.length === 0" style="font-size: 11px; color: #aaa;">暂无悄悄话记录</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user