正在显示
2 个修改的文件
包含
2 行增加
和
1 行删除
@@ -47,6 +47,7 @@ class ClassifyController extends WeChatBaseController{ | @@ -47,6 +47,7 @@ class ClassifyController extends WeChatBaseController{ | ||
47 | $price = explode('.',$data_classify_goods[$key]['price']); | 47 | $price = explode('.',$data_classify_goods[$key]['price']); |
48 | $data_classify_goods[$key]['price0'] = $price[0]; | 48 | $data_classify_goods[$key]['price0'] = $price[0]; |
49 | $data_classify_goods[$key]['price01'] = $price[1]; | 49 | $data_classify_goods[$key]['price01'] = $price[1]; |
50 | + $data_classify_goods[$key]['show_img'] = cmf_get_image_url($data_classify_goods[$key]['show_img']); | ||
50 | } | 51 | } |
51 | return json_encode($data_classify_goods); | 52 | return json_encode($data_classify_goods); |
52 | 53 |
@@ -107,7 +107,7 @@ | @@ -107,7 +107,7 @@ | ||
107 | console.log(data_arr); | 107 | console.log(data_arr); |
108 | for(var i=0;i<data_arr.length;i++){ | 108 | for(var i=0;i<data_arr.length;i++){ |
109 | show_img = data_arr[i].show_img; | 109 | show_img = data_arr[i].show_img; |
110 | - $('.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>"); | 110 | + $('.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>"); |
111 | } | 111 | } |
112 | }); | 112 | }); |
113 | } | 113 | } |
-
请 注册 或 登录 后发表评论