index.html
1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!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>