作者 anyv
1 个管道 的构建 通过 耗费 0 秒

产品

@@ -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