get_numbers(358);
function get_numbers(id){
$.ajax({
type: "Post",
url: "xxxx",
data: {'id':id},
dataType: "json",
beforeSend: function () {
// $(".dynamicsCont").html('loading..');
},
complete: function () {
},
success: function(data) {
// console.log(data.data.gyyj.length);
$(".dynamicsCont").html('');
if (data.status==200) {
var host = 'http://'+window.location.host;
var str = "";
str+="<div class="dynamicsItem" style="display: block;">
" +
" <div class="dynamicsImg">
" +
" <a href="javascript:;"><img src="+data._img+" /></a>
" +
" </div>
" +
" <ul class="dynamicsLists">
";
// 瀹忚�缁忔祹 鏂囩珷
str += "<li>";
str += "<dl class="dy_list">";
str += "<dt class="cjdtIcon">";
str += "<img src="+data.hgjj_img[0]+" />";
str += "</dt>";
if(data.data.hgjj.length>0){
for(var i=0; i<data.data.hgjj.length; i++){
str +="<dd><a href="+data.data.hgjj[i]._url+"><i></i>"+data.data.hgjj[i]._title+"</a></dd>
";
}
}else{
str +="<dd>鏆傛棤鏁版嵁</dd>
";
}
str += "</dl>";
str += "</li>";
// 鍖哄煙缁忔祹 鏂囩珷
str += "<li>";
str += "<dl class="dy_list">";
str += "<dt class="cjdtIcon">";
str += "<img src="+data.hgjj_img[1]+" />";
str += "</dt>";
if(data.data.qyjj.length>0){
for(var i=0; i<data.data.qyjj.length; i++){
str +="<dd><a href="+data.data.qyjj[i]._url+"><i></i>"+data.data.qyjj[i]._title+"</a></dd>
";
}
}else{
str +="<dd>鏆傛棤鏁版嵁</dd>
";
}
str += "</dl>";
str += "</li>";
// 鍥界爺鐮旂┒ 鏂囩珷
str += "<li>";
str += "<dl class="dy_list">";
str += "<dt class="cjdtIcon">";
str += "<img src="+data.hgjj_img[2]+" />";
str += "</dt>";
if(data.data.gyyj.length>0){
for(var i=0; i<data.data.gyyj.length; i++){
str +="<dd><a href="+data.data.gyyj[i]._url+"><i></i>"+data.data.gyyj[i]._title+"</a></dd>
";
}
}else{
str +="<dd>鏆傛棤鏁版嵁</dd>
";
}
str += "</dl>";
str += "</li>";
// 浜х粡缁忔祹 鏂囩珷
str += "<li>";
str += "<dl class="dy_list">";
str += "<dt class="cjdtIcon">";
str += "<img src="+data.hgjj_img[3]+" />";
str += "</dt>";
if(data.data.cjjj.length>0){
for(var i=0; i<data.data.cjjj.length; i++){
str +="<dd><a href="+data.data.cjjj[i]._url+"><i></i>"+data.data.cjjj[i]._title+"</a></dd>
";
}
}else{
str +="<dd>鏆傛棤鏁版嵁</dd>
";
}
str += "</dl>";
str += "</li>";
str+="</ul></div>";
$(".dynamicsCont").html('');
$(".dynamicsCont").html(str);
}else{
$(".createData").html('');
$(".createData").html(data.msg);
}
}
});
}