<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script type="text/javascript" src="/static/jquery-2.2.4.min.js"></script>
    <script type="text/javascript" src="/static/layer/layer.js"></script>
    <script type="text/javascript" src="/admin/js/common.js"></script>
    <link rel="stylesheet" href="/static/bootstrap-3.3.7/css/bootstrap.css">
    <link rel="stylesheet" href="/static/h5/css/common.css">
    <title>投诉详情</title>
    <style>
        body{
            background-color: #F1F1F1;
        }
        .container{
            max-width: 100vw;
            height: auto;
            margin: 0;
            padding: 0;
            margin-bottom: 60px;
        }
        .public-info{
            width: 100%;
            height: 32vw;
            background: #FFFFFF;
        }
        .public-info .left-box{
            width: 22vw;
            height: 27vw;
            padding: 0vw 3vw;
            margin-top: 5vw;
            display: inline-block;
            float: left;
        }
        .public-info .left-box .title{
            width:16vw;
            height:16vw;
            line-height: 16vw;
            background: #E7F0F9;
            border-radius: 10px;
            font-size: 32px;
            font-family: PingFang SC;
            font-weight: bold;
            color: var(--themeColor);
            text-align: center;
        }
        .public-info .right-box{
            width: 78vw;
            height: 32vw;
            display: inline-block;
            float: left;
        }
        .public-info .right-box .name-box{
            width: 100%;
            height: 16vw;
            overflow: hidden;
        }
        .public-info .right-box .name-box .left-name-box{
            width: 44%;
            height: 16vw;
            line-height: 16vw;
            display: inline-block;
            float: left;
            font-size: 25px;
            font-weight: bold;
            color: #333333;
            overflow: hidden;
        }
        .public-info .right-box .name-box .right-status-box{
            width: 13vw;
            height: 5vw;
            line-height: 5vw;
            border-radius: 20px;
            color: #ffffff;
            display: inline-block;
            float: right;
            text-align: center;
            font-size: 13px;
            margin-top: 5.5vw;
            margin-right: 4vw;
        }
        .public-info .right-box .name-box  .color1{
            background-color: #284a94;
        }
        .public-info .right-box .name-box  .color2{
            background-color: #05D8DA;
        }
        .public-info .right-box .name-box  .color3{
            background-color: #437EFF;
        }
        .public-info .right-box .name-box  .color4{
            background-color: #F79F2D;
        }
        .public-info .right-box .name-box  .color4{
            background-color: #089857;
        }

        .public-info .right-box .info-user-box{
            width: 100%;
            height: 8vw;
            line-height: 8vw;
        }
        .public-info .right-box .info-user-box .one{
            width: 50%;
            height: 100%;
            display: inline-block;
            float: left;
            overflow: hidden;
        }
        .public-info .right-box .info-user-box .one .img{
            width: 3.3vw;
            height: 3.3vw;
            display: inline-block;
        }
        .public-info .right-box .info-user-box .one .img img{
            width: 100%;
            height: 100%;
        }
        .public-info .right-box .info-user-box text{
            font-size: 14px;
            font-weight: 400;
            color: #666666;
        }
        .public-info-content{
            width: 100%;
            height: auto;
            margin-top: 1vw;
            background-color: #fff;
        }
        .header{
            width: 100%;
            height: 12vw;
        }
        .header .header-left {
            width: 60vw;
            height: 12vw;
            line-height: 12vw;
            display: inline-block;
            float: left;
        }
        .header .header-right{
            width: 40vw;
            height: 12vw;
            line-height: 12vw;
            display: inline-block;
            float: right;
            padding-right: 4vw;
            font-size: 14px;
            font-weight: 400;
            color: #666666;
            text-align: right;
        }
        .header .header-left .line-box{
            width: 0.8vw;
            height: 3.4vw;
            background: var(--themeColor);
            border-radius: 3px;
            display: inline-block;
            float: left;
            margin-left: 2vw;
            margin-top: 4.3vw;
            margin-right: 2vw;
        }
        .header .header-left .title{
            width: 55vw;
            height: 12vw;
            font-size: 19px;
            font-weight: bold;
            color: #333333;
            display: inline-block;
            float: left;
        }
        .public-info-content .content-box{
            width: 100%;
            height: auto;
            padding: 1vw;
        }
        .public-info-content .content-box div{
            width: 100%;
            background: #F7F7F7;
            border-radius: 10px;
            padding: 1vw;
            min-height: 20vw;
            word-wrap:break-word;
        }
        .public-info-content .voices-box{
            width: 100%;
            height: 16vw;
            line-height: 16vw;
            text-align: right;
            padding: 1vw;
        }
        .public-info-taskImg{
            width: 100%;
            height: auto;
            background-color: #fff;
            margin-top: 1vw;
        }
        .public-info-taskImg .img-box{
            width: 100%;
            height: auto;
            overflow: hidden;
        }
        .public-info-taskImg .img-box .img-all-box{
            width: 100%;
            height: auto;
            padding: 0vw 4vw;
            overflow: hidden;
        }
        .public-info-taskImg .img-box .img-all-box .img{
            width: 22vw;
            height: 22vw;
            display: inline-block;
            float: left;
            margin-right: 1vw;
            margin-bottom: 1vw;
        }
        .public-info-taskImg .img-box .img-all-box .img img{
            width: 100%;
            height: 100%;
        }
        .public-info-taskImg .img-box .img-all-box .img video{
            width: 100%;
            height: 100%;
        }
        .public-info-taskImg .img-box .bottom-title-box{
            width: 100%;
            height: 10vw;
            line-height: 10vw;
            text-align: center;
            font-size: 12px;
            color: #666666;
        }
        .repairs-box{
            width: 100%;
            height: auto;
            margin-top: 1vw;
            background-color: #fff;
        }
        .repairs-matter{
            width: 100%;
            height: 10vw;
            line-height: 10vw;
            border-bottom: 1px solid #f1f1f1;
            padding: 0vw 4vw;
            overflow: hidden;
        }
        .repairs-matter .title{
            font-size: 17px;
            font-family: PingFang SC;
            font-weight: 500;
            color: #666666;
            float: left;
        }
        .repairs-matter .content{
            font-weight: 500;
            color: #666666;
            float: right;
        }
        .repairs-type{
            width: 100%;
            height: 10vw;
            line-height: 10vw;
            border-bottom: 1px solid #f1f1f1;
            padding: 0vw 4vw;
            overflow: hidden;
            padding-bottom: 1vw;
        }
        .repairs-type .title{
            font-size: 17px;
            font-family: PingFang SC;
            font-weight: 500;
            color: #666666;
            float: left;
        }
        .repairs-type .content{
            font-weight: 500;
            color: #666666;
            float: right;
        }
        .execute-user{
            width: 100%;
            height: auto;
            background-color: #fff;
            margin-top: 1vw;
        }
        .execute-user .execute-user-name{
            width: 100%;
            height: auto;
            overflow: hidden;
        }
        .execute-user .execute-user-name .user-info{
            width: 100%;
            height: 10vw;
            line-height: 10vw;
            padding: 0vw 4vw;
        }
        .execute-user .execute-user-name .user-info .name{
            font-size: 17px;
            font-weight: 500;
            color: #666666;
            float: left;
        }
        .execute-user .execute-user-name .user-info .status{
            font-weight: 500;
            float: right;
        }
        .execute-user .execute-user-name .user-info .status text{
            margin-left: 1vw;
            font-weight: 500;
            color: #666666;
        }
        .cancel-cause{
            width: 100%;
            height: auto;
            margin-top: 1vw;
            /*padding: 0vw 2vw;*/
            background-color: #fff;
            padding-bottom: 1vw;
        }
        .cancel-cause .title{
            width: 100%;
            height: 12vw;
            line-height: 12vw;
            font-size: 19px;
            font-weight: bold;
            color: var(--themeColor);

        }
        .cancel-cause .content{
            width: calc( 100% - 16px);
            background: #F7F7F7;
            border-radius: 10px;
            padding: 1vw;
            min-height: 20vw;
            word-wrap: break-word;
            margin: 0px 8px 8px;
        }
        .footer-back{
            position: fixed;
            z-index: 1000;
            width: 100%;
            height: 45px;
            line-height: 45px;
            background-color: #ffffff;
            bottom: 0;
            left: 0;
            box-shadow: 0px 0px 10px 0px rgba(26, 25, 26, 0.05);
            display: table-cell;
            vertical-align: middle;
            text-align: center;
        }
        .footer-back a img{
            width: 43px;
            height: 43px;
        }
        .convey-box{
            width: 100%;
            height: 12vw;
            background-color: #fff;
            margin-top: 1vw;
        }
        .convey-route-box{
            width: 100%;
            height: 32vw;
            background-color: #fff;
            margin-top: 1vw;
        }
        .patient-info-box{
            width: 100%;
            height: 62vw;
            background-color: #fff;
            margin-top: 1vw;
        }
        .pay-status{
            width: 13vw;
            height: 100%;
            display: inline-block;
            float: left;
        }
        .pay-status .pay{
            width: 13vw;
            height: 5vw;
            line-height: 5vw;
            border-radius: 20px;
            color: #ffffff;
            display: inline-block;
            text-align: center;
            font-size: 13px;
            margin-top: 5.5vw;
            background-color: var(--themeColor);
        }
    </style>
</head>
<body>
<div class="container">
    <div class="header" style="background: #fff">
        <div class="header-left">
            <div class="line-box"></div>
            <div class="title">订单申请信息</div>
        </div>
    </div>
    <div class="public-info">
        <div class="left-box">
            <div class="title">工</div>
        </div>
        <div class="right-box">
            <div class="name-box">
                <div class="left-name-box">投诉</div>
<!--                <div class="right-status-box color1">111</div>-->
            </div>

            <div class="info-user-box">
                <div class="one">
                    <div class="img">
                        <img src="/img/h5/icon-ren.png" alt="">
                    </div>
                    <text>{$info['user_name']}</text>
                </div>
                <div class="one">
                    <div class="img">
                        <img src="/img/h5/icon-date.png" alt="">
                    </div>
                    <text>{$info['create_time']}</text>
                </div>
            </div>
            <div class="info-user-box">
                <div class="one">
                    <div class="img">
                        <img src="/img/h5/icon-bumen.png" alt="">
                    </div>
                    <span>{$info['dep_name']}</span>
                </div>
                <div class="one">
                    <div class="img">
                        <img src="/img/h5/icon-dianhua.png" alt="">
                    </div>
                    <span>{$info['mobile']}</span>
                </div>
            </div>
        </div>
    </div>

    <!--   任务内容-->
    <div class="public-info-content">
        <div class="header">
            <div class="header-left">
                <div class="line-box"></div>
                <div class="title">投诉内容</div>
            </div>
        </div>
        <div class="content-box">
            <div>{$info['content']}</div>
        </div>
        {if($info['voices'])}
        <div class="voices-box">
            <audio src="{$info['voices']}" controls="controls">
            </audio>
        </div>
        {/if}
    </div>
    <!--    任务图片-->
    {if !empty($info['images']) || !empty($info['videos'])}
    <div class="public-info-taskImg">
        <div class="header">
            <div class="header-left">
                <div class="line-box"></div>
                <div class="title">任务图片</div>
            </div>
        </div>
        <div class="img-box">
            <div class="img-all-box">
                {if($info['images'])}
                {foreach $info['images'] as $k=>$v}
                <div class="img">
                    <img src="{$v}" onclick="open_img(this)" alt="">
                </div>
                {/foreach}
                {/if}
                {if($info['videos'])}
                {foreach $info['videos'] as $k=>$v}
                <div class="img">
                    <video  src="{$v}" style="object-fit: fill;" onclick="playVideo(this)"></video>
                </div>
                {/foreach}
                {/if}
            </div>
            <div class="bottom-title-box">(点击可查看图片、视频详情信息)</div>
        </div>
    </div>
    {/if}
    <!--    处理意见-->

    <div class="cancel-cause">
        <div class="header">
            <div class="header-left">
                <div class="line-box"></div>
                <div class="title" style="color: #284a94">处理信息</div>
            </div>
        </div>
        <div class="header">
            <div class="header-left">
                <div class="line-box"></div>
                <div class="title" >处理意见</div>
            </div>
        </div>
        <div class="content">
           {$info['note']}
        </div>
    </div>


    {if $info['order_id'] > 0}
    <div class="execute-user">
        <div class="header">
            <div class="header-left">
                <div class="line-box"></div>
                <div class="title" style="color:#284a94;">关联订单</div>
            </div>
        </div>
        <div class="execute-user-name" style="margin-top:5px">
            <div class="header" onclick="goOrderDetail('{$info.order_id}')">
                <div class="header-left">
                    <div class="line-box"></div>
                    <div class="title">查看关联订单</div>
                </div>
                <div class="header-right" style="color:#284a94;font-weight: 600"> > </div>
            </div>
        </div>
    </div>

    <div class="footer-back">
        <a href="javascript:;" onclick="javascript:history.back(-1);"><img src="/img/back.png"></a>
    </div>
    {/if}
</div>
</body>
</html>

<script>
    var orgId = "{$info['org_id']}";
    function ordersSubDetails(obj) {
        var  id = $(obj).attr('data-id');
        var  org = $(obj).attr('data-orgId');
        var  url = "{:url('Statistics/ordersSubDetails')}?id="+id+'&orgId='+org;

        window.location.href=url;
    }

    function playVideo(obj) {
        var obj =$(obj);
        var src  = obj.attr('src');
        var  url  = "{:url('Statistics/videoPlay')}?url="+src+'&orgId='+orgId;
        window.location.href=url;
    }
    function goOrderDetail(id){
        var url = "{:url('Statistics/ordersDetails')}?id="+id+'&orgId='+orgId;
        window.location.href=url;
    }

</script>