detail.html 4.2 KB
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <title>商品详情</title>
    <link rel="stylesheet" href="../css/init.css">
    <link href="../css/swiper.min.css" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="http://at.alicdn.com/t/font_793738_ycnvxk1als.css">
    <link rel="stylesheet" href="../css/diseaseColumn.css">
    <link rel="stylesheet" href="../css/shop.css">
    <script src="../js/fontsize.js"></script>
</head>
<body style="background-color: #F5F6FA;">
<div class="head_box">
    <!-- begin:数字轮播图 -->
    <div class="swiper-container">
        <div class="swiper-wrapper">
            <div class="swiper-slide"><img src="../images/bpic01@2x.png"></div>
            <div class="swiper-slide"><img src="../images/bpic01@2x.png"></div>
            <div class="swiper-slide"><img src="../images/bpic01@2x.png"></div>
            <div class="swiper-slide"><img src="../images/bpic01@2x.png"></div>
        </div>
        <div class="swiper-pagination"></div>
    </div>
    <!-- begin: 商品信息-->
    <div class="shop_info_box">
        <div class="shop_num">
            <text class="num">302</text>
            <text class="symbol_icon">积分</text>
        </div>
        <div class="shop_title">百草味 肉干肉脯 白芝麻猪百草味 肉干肉脯 白芝麻猪百草味 肉干肉脯 白芝麻猪百草味 肉干肉脯 白芝麻猪百草味 肉干肉脯 白芝麻猪</div>
        <div class="shop_info">奶油味夏威夷果200g/袋</div>
    </div>
</div>
<div class="shop_box">
    <div class="item_list">
        <div class="detail_minus">
            <div class="line"></div>
            <p>商品信息</p>
            <div class="line"></div>
        </div>
        <div class="list_content detail_content">
            <img src="../images/chead@2x.png">
        </div>
    </div>
</div>
<!-- begin:底部按钮 -->
<div class="null_box"></div>
<div class="bottom_box charge_btn">
    <div>20积分</div>
    <div class="buy_btn">立即兑换</div>
</div>


<!-- begin:选择属性 -->
<div class="mask_box">
    <div class="popup_box">
        <div class="iconfont icon-quxiao"></div>
        <div class="popup_content_box">
            <div class="popup_img"><img src="../images/apic01@2x.png"></div>
            <div class="popup_content">
                <div class="popup_num"><span>302</span>积分</div>
                <div class="popup_title">百草味 肉干肉脯 白芝麻猪百草味 肉干肉脯 白芝麻猪百草味 肉干肉脯 白芝麻猪百草味 肉干肉脯 白芝麻猪百草味 肉干肉脯
                    白芝麻猪
                </div>
                <div class="popup_info">奶油味夏威夷果200g/袋奶油味夏威夷果200g/袋奶油味夏威夷果200g/袋奶油味夏威夷果200g/袋奶油味夏威夷果200g/袋</div>
            </div>
        </div>
        <div class="popup_info_box">
            <div>数量</div>
            <div class="popup_input_box">
                <p class="iconfont icon-jian"></p>
                <input type="text" name="" value="1"/>
                <p class="iconfont icon-jia"></p>
            </div>
        </div>
        <div class="popup_btn">确定</div>
    </div>
</div>

<!-- js -->
<script type="text/javascript" src="../js/jquery-2.1.0.js   "></script>
<script type="text/javascript" src="../js/swiper.min.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        var mySwiper = new Swiper('.swiper-container', {
            direction: 'horizontal', // 垂直切换选项
            loop: true, // 循环模式选项

            // 如果需要分页器
            pagination: '.swiper-pagination',
            paginationType: 'fraction'
        })
        // 点击显示选择属性弹层
        $('.mask_box').hide();
        $('.popup_btn').click(function () {
            $('.mask_box').hide();
        })
        $('.icon-quxiao').click(function () {
            $('.mask_box').hide();
        })
        // 点击确定跳到支付订单页
        $('.buy_btn').on('click', function () {
            window.location.href = '../shop/confirmOrder.html'
        })

    })
</script>

</body>
</html>