正在显示
1 个修改的文件
包含
47 行增加
和
1 行删除
@@ -16,7 +16,33 @@ | @@ -16,7 +16,33 @@ | ||
16 | </head> | 16 | </head> |
17 | <body class="pro_box"> | 17 | <body class="pro_box"> |
18 | <div class="aside"> | 18 | <div class="aside"> |
19 | - | 19 | + <volist name="cos_data" id="vo"> |
20 | + <a href="{:url('Product/commp',array('id'=>$vo.id))}" class="aside_son"> | ||
21 | + <div class="aside_1"> | ||
22 | + | ||
23 | + | ||
24 | + <if condition="$vo.fenlei eq 1"> | ||
25 | + <img src="__TMPL__/public/assets/images/aicon13.png" alt=""> | ||
26 | + </if> | ||
27 | + <if condition="$vo.fenlei eq 2"> | ||
28 | + <img src="__TMPL__/public/assets/images/aicon14.png" alt=""> | ||
29 | + </if> | ||
30 | + <if condition="$vo.fenlei eq 3"> | ||
31 | + <img src="__TMPL__/public/assets/images/aicon15.png" alt=""> | ||
32 | + </if> | ||
33 | + | ||
34 | + <if condition="$vo.fenlei eq 1"> | ||
35 | + <p>说明书</p> | ||
36 | + </if> | ||
37 | + <if condition="$vo.fenlei eq 2"> | ||
38 | + <p>文献</p> | ||
39 | + </if> | ||
40 | + <if condition="$vo.fenlei eq 3"> | ||
41 | + <p>COA</p> | ||
42 | + </if> | ||
43 | + </div> | ||
44 | + </a> | ||
45 | + </volist> | ||
20 | 46 | ||
21 | </div> | 47 | </div> |
22 | <include file="public@nav"/> | 48 | <include file="public@nav"/> |
@@ -116,6 +142,26 @@ | @@ -116,6 +142,26 @@ | ||
116 | $('.pro_right_txt').html(shuju.post_content); | 142 | $('.pro_right_txt').html(shuju.post_content); |
117 | /*$('.pro_btn').remove(); | 143 | /*$('.pro_btn').remove(); |
118 | $('.pro_right_txt').after("<div class='pro_btn'>显示更多</div>");*/ | 144 | $('.pro_right_txt').after("<div class='pro_btn'>显示更多</div>");*/ |
145 | + | ||
146 | + $.post("{:url('Product/commps')}", {id:id}, function(data) { | ||
147 | + coa = JSON.parse(data); | ||
148 | + for (var i = 0; i <coa.length; i++) { | ||
149 | + if(coa[i].fenlei == 1){ | ||
150 | + $('.aside').append("<a href='{:url('Product/commp')}?id="+coa[i].id+"' class='aside_son'><div class='aside_1'><img src='__TMPL__/public/assets/images/aicon13.png'><p>说明书</p></div></a>"); | ||
151 | + } | ||
152 | + if(coa[i].fenlei == 2){ | ||
153 | + $('.aside').append("<a href='{:url('Product/commp')}?id="+coa[i].id+"' class='aside_son'><div class='aside_1'><img src='__TMPL__/public/assets/images/aicon14.png'><p>文献</p></div></a>"); | ||
154 | + } | ||
155 | + if(coa[i].fenlei == 3){ | ||
156 | + $('.aside').append("<a href='{:url('Product/commp')}?id="+coa[i].id+"' class='aside_son'><div class='aside_1'><img src='__TMPL__/public/assets/images/aicon15.png'><p>COA</p></div></a>"); | ||
157 | + } | ||
158 | + | ||
159 | + } | ||
160 | + }); | ||
161 | + | ||
162 | + | ||
163 | + | ||
164 | + | ||
119 | }); | 165 | }); |
120 | } | 166 | } |
121 | 167 |
-
请 注册 或 登录 后发表评论