index.html 1.9 KB
<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <title>1-3导购页-购买</title>
    <meta name="viewport" content="initial-scale=1,maximum-scale=1, minimum-scale=1">
    <link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">
    <link rel="stylesheet" href="__TMPL__/public/assets/css/swiper.min.css">
    <link rel="stylesheet" href="__TMPL__/public/assets/css/common/select_goods.css">
    <style>

    </style>
</head>

<body>
<div class="container">
    <volist name="cate" id="cate">
    <div class="goods_box" index="{$cate.id}" >
        <img class="goods_pic" src="{:cmf_get_image_url($cate.pic)}" alt="" >
    </div>
    </volist>

</div>
</body>
<script src="__TMPL__/public/assets/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="__TMPL__/public/assets/js/swiper.min.js" type="text/javascript" charset="utf-8"></script>
<script src="__TMPL__/public/assets/js/base.js" type="text/javascript" charset="utf-8"></script>
<script>
    $(document).ready(function() {

        var $menu_box = $('.content_body .con_title>li');
        $menu_box.click(function() {
            $(this).addClass('con_curr').siblings().removeClass('con_curr');
            var index = $menu_box.index(this);
            $('.con_all .con_warp').eq(index).show().siblings().hide();
        });
    })

    //商品跳转,类型1租赁,类型2为购买
    // var cate_type = getUrlParam('cate_type');
    // $('.goods_pic').on('click', function() {
    //     window.location.href = "lease_goods_category.html"
    // })

    //商品跳转,类型1租赁,类型2为购买
    var type = "{$type}";
    $('.goods_box').click(function() {
        var pid = $(this).attr('index');
        var url = "{:url('Rent/nextGrade')}";
        url = url.split('.');
        url = url[0] + '/type/' + type + '/pid/' + pid + ".html";
        window.location.href = url;
    })
</script>

</html>