<?php
/**
 * Author：晴天 QQ：1186258278
 * Creation：2020/3/6 17:11
 * Filename：shop.php
 */
if (!defined('IN_CRONLITE')) die();
?>
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"/>
    <title><?= $conf['sitename'] ?></title>
    <meta name="keywords" content="<?= $conf['keywords'] ?>">
    <meta name="description" content="<?= $conf['description'] ?>">
    <link rel="stylesheet" type="text/css" href="<?php echo $cdnserver; ?>assets/layui/css/layui.css"/>
    <link rel="stylesheet" type="text/css"
          href="<?php echo $cdnserver; ?>assets/AppStore/css/style_shop.css"/>
    <link href="<?= $cdnpublic ?>Swiper/4.5.1/css/swiper.min.css" rel="stylesheet">
    <link href="<?php echo $cdnpublic ?>limonte-sweetalert2/7.33.1/sweetalert2.min.css" rel="stylesheet">
    <link href="<?php echo $cdnpublic ?>twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
    <link href="<?php echo $cdnpublic ?>animate.css/3.7.2/animate.min.css" rel="stylesheet">
    <!--[if lt IE 9]>
    <script src="<?php echo $cdnpublic ?>html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="<?php echo $cdnpublic ?>respond.js/1.4.2/respond.min.js"></script>
  <![endif]-->
</head>
<body style="background-color: #F2F2F2;padding: 0;margin: 0;overflow-x: hidden">
<div class="layui-container" style="padding: 0">
    <div class="layui-row layui-col-space10" style="padding: 0">
        <div class="layui-col-xs12" style="padding: 0;margin-bottom: 4em;">
            <div class="layui-card" style="background-color: rgba(0,0,0,0);padding: 0">
                <div class="layui-card-body" style="padding: 0;background-color: white">
                    <a href="/?cid=<?= ($_GET['cid']) ?>" class="layui-icon layui-icon-left return"></a>
                    <div class="swiper-container" style="width: 100%;max-height: 65vh">
                        <div class="swiper-wrapper" id="picture"></div>
                        <!-- Add Pagination -->
                        <div class="swiper-pagination"></div>
                    </div>
                    <div class="commodity">
                        <p id="gootsp" class="price"><span id="gootsp"></span></p>
                        <span class="price_inventory"><span id="count_quota"></span></span>
                    </div>
                    <div class="particulars">
                        <p style="width: 70%;overflow-y: hidden">每份数量：<span id="quantity"></span></p>
                        <span class="level" id="level"></span>
                        <div id="moneys_os" style="display: none"><span id="moneys"></span></div>
                        <span id="points_os" style="display: none">此商品可用<span class="currency"></span>兑换哦，仅需：<span
                                    id="points"></span><span class="currency"></span>！</span>
                    </div>
                </div>
                <div class="layui-card-body layui-text" id="alert_frame"
                     style="padding: 1em;background-color: white;margin-top: 1em;display: none"></div>
            </div>
        </div>
        <div class="layui-col-xs12 shop_bottom" style="padding: 0;">
            <div class="layui-row" style="padding: 0;width: 100%">
                <div class="layui-col-xs3">
                    <a href="javascript:template.kefu('<?= $conf['kfqq'] ?>')">
                        <button class="layui-icon layui-icon-service"> 客服</button>
                    </a>
                </div>
                <div class="layui-col-xs3">
                    <a href="javascript:template.SharePoster($_GET['gid'])">
                        <button class="layui-icon layui-icon-share"> 分享</button>
                    </a>
                </div>
                <div class="layui-col-xs6">
                    <button style="background: #fd5555;color: white" id="show_shops" data-do=""
                            onclick="template.show()">填写订单信息
                    </button>
                </div>
            </div>
        </div>

        <div class="layui-col-xs12 shop_goods" style="padding: 0;display:none ">
            <p>填写订单信息<span class="layui-icon layui-icon-close" onclick="$('.shop_goods').hide(100)"></span></p>
            <div class="purchase">
                <div id="input_value"></div>
                <div id="matching_msg"
                     style="display:none;box-shadow: 3px 3px 16px #eee;padding: 1em;text-align: center;"></div>
            </div>
            <span class="layui-icon layui-icon-down down_shop" style="display: none"></span>
            <button class="layui-btn layui-btn layui-btn-normal layui-btn-fluid" id="submit">
                提交订单
            </button>
        </div>
    </div>
</div>
<script src="<?php echo $cdnpublic ?>jquery/1.12.4/jquery.min.js"></script>
<script src="<?php echo $cdnserver; ?>assets/layui/layui.all.js"></script>
<script src="<?= $cdnpublic ?>Swiper/4.5.1/js/swiper.min.js"></script>
<script src="<?php echo $cdnpublic ?>limonte-sweetalert2/7.33.1/sweetalert2.min.js"></script>
<script src="<?php echo $cdnserver; ?>assets/js/main.js?var=<?= $accredit['versions'] ?>"></script>
<script>logo = "<?=$conf['logo']?>"</script>
<script src="/template/AppStore/template.js?var=<?= $accredit['versions'] ?>"></script>
</body>
