index.html
3.6 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<link rel="stylesheet" type="text/css" href="__ADDON__/css/index.css">
{layout name="common/layout" /}
<div class="content_box">
<!-- new新闻 -->
<div class="new">
<h3>新闻</h3>
<div class="new_box">
<ul>
<div class="new_box2" >
{cms:arclist id="item" condition=":model_id=1" row="8" orderby="id" orderway="desc"}
<li>
<a href="{$item.url}">
<p>{:date('Y.m.d',$item.publishtime)}</p>
<h4>{$item.title}</h4>
</a>
</li>
{/cms:arclist}
<!-- <li>
<a href="news2.html">
<p>2019.1.3</p>
<h4>新闻标题</h4>
</a>
</li> -->
</div>
</ul>
</div>
</div>
<!-- select查找 -->
<div class="select">
<div class="select_title">
<p>根据产品查找</p>
</div>
<div class="select_nav tab1">
<ul>
{volist name="channel" id="vo"}
<li class="">{$vo.name}</li>
{/volist}
</ul>
</div>
<div class="select_content tab1_c">
{volist name="info" id="v"}
<ul>
{volist name="v" id="vo"}
<li>
<a href='/a/{$vo.id}'>
<div class="selec_img">
<img src="{$vo.image}">
</div>
<div class="select_txt">
<p>{$vo.title}</p>
</div>
</a>
</li>
{/volist}
</ul>
{/volist}
<!-- <ul>
<li>
<a href='product_detail.html'>
<div class="selec_img">
<img src="images/untitled5.png">
</div>
<div class="select_txt">
<p>产品名称</p>
</div>
</a>
</li>
</ul> -->
</div>
<div class="select_title">
<p>根据用途查找</p>
</div>
<div class="select_nav tab2">
<ul>
{volist name="use" id="vo"}
<li class="">{$vo.name}</li>
{/volist}
</ul>
</div>
<div class="select_content tab2_c">
{volist name="use" id="v"}
<ul>
{volist name="v['info']" id="vo"}
<li>
<a href='/a/{$vo.id}'>
<div class="selec_img">
<img src="{$vo.image}">
</div>
<div class="select_txt">
<p>{$vo.title}</p>
</div>
</a>
</li>
{/volist}
</ul>
{/volist}
<!-- <ul>
<li>
<a href='product_detail.html'>
<div class="selec_img">
<img src="images/untitled5.png">
</div>
<div class="select_txt">
<p>产品名称</p>
</div>
</a>
</li>
</ul> -->
</div>
</div>
</div>
<script type="text/javascript">
$('.tab1_c ul').hide();
$('.tab1_c ul:first').show();
$('.tab2_c ul').hide();
$('.tab2_c ul:first').show();
$('.tab1 ul li').click(function(){
var index = $(this).index();
$('.tab1_c ul').eq(index).show().siblings().hide();
$(this).addClass('select_nav_active').siblings().removeClass('select_nav_active')
})
$('.tab2 ul li').click(function(){
var index = $(this).index();
$('.tab2_c ul').eq(index).show().siblings().hide();
$(this).addClass('select_nav_active').siblings().removeClass('select_nav_active')
})
</script>
</body>
</html>