<?php
/**
 * 公共查单模块 PC端
 */
if (!defined('IN_CRONLITE')) die();

?>
<!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">
    <title><?= '订单管理 - ' . $conf['sitename'] ?></title>
    <meta name="keywords" content="<?= $conf['keywords'] ?>">
    <meta name="description" content="<?= $conf['description'] ?>">
    <!-- Vendor styles -->
    <link rel="icon" href="<?php echo $cdnserver; ?>assets/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" type="text/css" href="<?php echo $cdnserver; ?>assets/layui/css/layui.css"/>
</head>
<body>
<style>
    .qt-header {
        height: 4em;
        line-height: 4em;
        box-shadow: 3px 3px 16px #eee;
        margin: 1em;
        font-size: 1.1em;
    }

    .qt-header > input {
        height: 2.5em;
        width: 100%;
        border: none;
        text-indent: 2.5em;
        border-radius: 0.5em;
        font-size: 0.9em;
    }

    .qt-header > span {
        position: absolute;
        margin-left: 0.8em;
        font-size: 0.9em;
    }

    .qt-card {
        box-shadow: 0px 0px 16px #e5e8eb;
        border-radius: 0.5em;
    }

    .qt-card img {
        width: 6em;
        max-width: 100%;
        height: 6em;
        border-radius: 0.5em;
        box-shadow: 3px 3px 16px #eee;
    }

    .qt-btn {
        border-radius: 0.5em;
        border: solid 1px #eee;
    }

    @media screen and (min-width: 960px) {
        .comme {
            width: 60%;
            margin-top: 1em;
            margin-bottom: 1em;
        }

        body {
            <?= background::image() == false ? 'background:#f5f5f5;' : background::image() ?>;
        }
    }
</style
<body>
<div class="layui-fluid comme" style="opacity:0.98;padding: 0">
    <div class="layui-row">
        <div class="layui-col-md12" style="color: #111">
            <div class="layui-card">
                <div class="layui-card-header"
                     style="background: linear-gradient(to right, #7f7fd5, #86a8e7, #91eae4);height: auto;font-size: 1.4em;text-align: center;background-color: #6745cd;color:white;box-shadow: 8px 0 15px #ccc">
                    <a href="./" class="layui-icon layui-icon-left"
                       style="position:absolute;left: 1em;color: white"></a>我的订单
                </div>
                <div class="layui-card-body" style="padding: 0">
                    <div class="layui-card">
                        <div class="layui-card-header qt-header">
                            <span class="layui-icon layui-icon-search" style="cursor: pointer"
                                  onclick="OrderManagement.OrderQuery('OrderAll',$('#query').val())"></span>
                            <input type="text" id="query"
                                   onkeydown="if(event.keyCode==13){OrderManagement.OrderQuery('OrderAll',$('#query').val())}"
                                   placeholder="搜索我的订单" autocomplete="off">
                        </div>
                        <div class="layui-card-body" style="padding: 0">
                            <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                                <ul class="layui-tab-title">
                                    <li class="layui-this">全部</li>
                                    <li>已完成</li>
                                    <li>待处理</li>
                                    <li>异常</li>
                                    <li>处理中</li>
                                    <li>已退款</li>
                                </ul>
                                <div class="layui-tab-content"
                                     style="padding: 1em;padding-bottom: 3em;overflow:hidden;overflow-y: auto;max-height: 66vh">
                                    <div class="layui-tab-item layui-show layui-row layui-col-space10"
                                         id="order_all"></div>
                                    <div class="layui-tab-item layui-row layui-col-space10" id="order_a"></div>
                                    <div class="layui-tab-item layui-row layui-col-space10" id="order_b"></div>
                                    <div class="layui-tab-item layui-row layui-col-space10" id="order_c"></div>
                                    <div class="layui-tab-item layui-row layui-col-space10" id="order_d"></div>
                                    <div class="layui-tab-item layui-row layui-col-space10" id="order_e"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-col-md12" style="box-shadow: -6px 0 16px #eee;">
            <div class="layui-card">
                <div class="layui-card-body layui-text" style="text-align: center">
                    <p><?= $conf['notice_check'] ?></p>
                    <p>© <?= $conf['sitename'] ?>. All rights reserved.</p>
                    <?= $conf['notice_bottom'] ?>
                    <p><?= $conf['statistics'] ?></p>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="<?= $cdnpublic ?>jquery/3.4.1/jquery.min.js"></script>
<script src="<?php echo $cdnserver; ?>assets/layui/layui.all.js"></script>
<script src="<?php echo $cdnserver; ?>assets/js/main.js?var=<?= $accredit['versions'] ?>"></script>
<script>logo = "<?=$conf['logo']?>"</script>
<script src="/template/public/template.js?var=<?= $accredit['versions'] ?>"></script>
<script>
    OrderManagement.OrderQuery('OrderAll'); // 进入页面查询全部订单
</script>
</html>
