90 lines
3.9 KiB
HTML
Executable File
90 lines
3.9 KiB
HTML
Executable File
{include file="public/header" /}
|
|
<body>
|
|
<div class="x-body">
|
|
<div class="layui-card">
|
|
<div class="layui-card-header">会话信息</div>
|
|
<div class="layui-card-body">
|
|
<table class="layui-table" lay-skin="nob">
|
|
<tr>
|
|
<td width="120"><strong>会话ID:</strong></td>
|
|
<td>{$session.id}</td>
|
|
<td width="120"><strong>用户名:</strong></td>
|
|
<td>{$session.username}</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>用户余额:</strong></td>
|
|
<td>{$session.money}</td>
|
|
<td><strong>客服:</strong></td>
|
|
<td>{$session.admin_username|default='未分配'}</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>来源:</strong></td>
|
|
<td>
|
|
{switch name="session.source"}
|
|
{case value="1"}PC{/case}
|
|
{case value="2"}Game{/case}
|
|
{case value="3"}Portal{/case}
|
|
{/switch}
|
|
</td>
|
|
<td><strong>状态:</strong></td>
|
|
<td>
|
|
{switch name="session.status"}
|
|
{case value="0"}待分配{/case}
|
|
{case value="1"}进行中{/case}
|
|
{case value="2"}已结束{/case}
|
|
{/switch}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>开始时间:</strong></td>
|
|
<td>{$session.create_time|date='Y-m-d H:i:s',###}</td>
|
|
<td><strong>结束时间:</strong></td>
|
|
<td>{if condition="$session.end_time"}{$session.end_time|date='Y-m-d H:i:s',###}{else/}-{/if}</td>
|
|
</tr>
|
|
{if condition="$session.rating"}
|
|
<tr>
|
|
<td><strong>评分:</strong></td>
|
|
<td colspan="3">
|
|
<span style="color: #FFB800;">{$session.rating}星</span>
|
|
{if condition="$session.rating_content"}
|
|
<br><span style="color: #666;">{$session.rating_content}</span>
|
|
{/if}
|
|
</td>
|
|
</tr>
|
|
{/if}
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="layui-card" style="margin-top: 20px;">
|
|
<div class="layui-card-header">聊天记录</div>
|
|
<div class="layui-card-body" style="height: 400px; overflow-y: auto; background: #f8f8f8;">
|
|
{volist name="messages" id="msg"}
|
|
<div style="margin-bottom: 15px; {eq name='msg.sender_type' value='2'}text-align: right;{/eq}">
|
|
<div style="display: inline-block; max-width: 60%; text-align: left;">
|
|
<div style="font-size: 12px; color: #999; margin-bottom: 3px;">
|
|
{eq name="msg.sender_type" value="1"}
|
|
用户
|
|
{else/}
|
|
客服
|
|
{/eq}
|
|
· {$msg.create_time|date='Y-m-d H:i:s',###}
|
|
</div>
|
|
<div style="padding: 10px; background: {eq name='msg.sender_type' value='1'}#fff{else/}#1E9FFF{/eq};
|
|
color: {eq name='msg.sender_type' value='1'}#333{else/}#fff{/eq};
|
|
border-radius: 5px; word-break: break-all;">
|
|
{eq name="msg.msg_type" value="2"}
|
|
<img src="{$msg.content}" style="max-width: 300px;">
|
|
{else/}
|
|
{$msg.content}
|
|
{/eq}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{/volist}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|