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

分类

... ... @@ -47,6 +47,7 @@ class ClassifyController extends WeChatBaseController{
$price = explode('.',$data_classify_goods[$key]['price']);
$data_classify_goods[$key]['price0'] = $price[0];
$data_classify_goods[$key]['price01'] = $price[1];
$data_classify_goods[$key]['show_img'] = cmf_get_image_url($data_classify_goods[$key]['show_img']);
}
return json_encode($data_classify_goods);
... ...
... ... @@ -107,7 +107,7 @@
console.log(data_arr);
for(var i=0;i<data_arr.length;i++){
show_img = data_arr[i].show_img;
$('.se_con').append("<div class='in_hotLi'><div class='in_hotImg'><img src='{:cmf_get_image_url("+show_img+")}'></div><div class='in_hotText'><div class='in_hotName txt-cut'><span>"+data_arr[i].name+"</span>"+data_arr[i].book_name+"</div><div class='in_cam_shopPrice'><div class='in_hotPrice1'>¥<span>"+data_arr[i].price0+"</span>."+data_arr[i].price1+"</div></div></div></div>");
$('.se_con').append("<div class='in_hotLi'><div class='in_hotImg'><img src='"+show_img+"'></div><div class='in_hotText'><div class='in_hotName txt-cut'><span>"+data_arr[i].name+"</span>"+data_arr[i].book_name+"</div><div class='in_cam_shopPrice'><div class='in_hotPrice1'>¥<span>"+data_arr[i].price0+"</span>."+data_arr[i].price1+"</div></div></div></div>");
}
});
}
... ...