{extend name="common/common2" /}
{block name="main"}
<style>
    .custom-table th,td{
        padding: 10px;
    }
    .custom-table th{
        width: 120px;
        text-align: left;
    }

</style>
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <!--<div class="ibox-title">-->
                <!--<h5>详情</h5>-->
                <!--<div class="ibox-tools">-->
                    <!--<a class="toback" href="{:url('index')}">-->
                        <!--返回上一页-->
                    <!--</a>-->
                <!--</div>-->
            <!--</div>-->

            <div class="ibox-content">
                <table class="table custom-table table-bordered">
                    <tbody>
                    <tr>
                        <th>投诉人</th><td>{$info['realName']}</td>
                    </tr>
                    <tr>
                        <th>时间</th><td>{$info['create_time']}</td>
                    </tr>
                    <tr>
                        <th>部门</th><td>{$info['depName']}</td>
                    </tr>
                    <tr>
                        <th>内容</th><td>{$info['content']}</td>
                    </tr>
                    <tr>
                        <th>处理意见</th><td>{$info['note']}</td>
                    </tr>
                    {if !empty($info['voices'])}
                    <tr>
                        <th>语音</th><td><audio src="{$info['voices']}" controls></audio></td>
                    </tr>
                    {/if}
                    {if !empty($info['images'])}
                    <tr>
                        <th>图片</th>
                        <td>
                            <p>
                                {foreach $info['images'] as $key=>$val}
                                <img onclick="open_img(this)" src="{$val}"  width="60" height="60">
                                {/foreach}
                            </p>
                        </td>
                    </tr>
                    {/if}

                    {if !empty($info['videos'])}
                    <tr>
                        <th>视频</th>
                        <td  style="width: 200px!important;height: 200px;!important;">

                            <video style="width: 200px!important;height: 200px;!important;" src="{$info['videos']}" controls="controls">
                            </video>
                        </td>
                    </tr>
                    {/if}
                    <tr>
                        <th>状态</th><td>{$info['statusTxt']}</td>
                    </tr>

                    <th>操作</th>
                    <td>
                        {if $info.status==0}
                            <a url="{:url('edit',[],'')}/id/{$info.id}" href="javascript:;" data-title="直接处理" onclick="layer_open(this,1)"><span class="label label-primary" title="直接处理">直接处理</span></a>
                            <a url="{:url('send',[],'')}/id/{$info.id}" href="javascript:;" data-title="转任务" onclick="layer_open(this,1)"><span class="label label-primary" title="转任务">转任务</span></a>
                            <a url="{:url('ts_send',[],'')}/id/{$info.id}" href="javascript:;" data-title="转单" onclick="layer_open(this,1)"><span class="label label-primary" title="转单">转单</span></a>
                        {/if}
                        {if $info.order_id > 0 && $info.status==1}
                         {if $info.to_from==0}
                          <a url="{:url('Orders/zg_detail',['id'=>$info['order_id']])}" href="javascript:;" data-title="订单详情" onclick="layer_open(this,1)"><span class="label label-primary" title="订单详情">订单详情</span></a>
                          {else}
                          <a url="{:url('Complain/tsDetail',['id'=>$info['order_id']])}" href="javascript:;" data-title="投诉详情" onclick="layer_open(this,1)"><span class="label label-primary" title="投诉详情">投诉详情</span></a>
                           {/if}
                        {/if}
                    </td>

                    </tbody>
                </table>

            </div>
        </div>
    </div>
</div>
{/block}
{block name="script"}

{/block}