From 6f2ec19831e2128691d0614dc6e7ff65f4aadb68 Mon Sep 17 00:00:00 2001 From: anyv <anyu@bronet.cn> Date: Fri, 31 May 2019 14:08:04 +0800 Subject: [PATCH] 商品详情 --- public/themes/simpleboot3/portal/classify/classify.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/themes/simpleboot3/portal/classify/classify.html b/public/themes/simpleboot3/portal/classify/classify.html index 05ed85e..d46e418 100644 --- a/public/themes/simpleboot3/portal/classify/classify.html +++ b/public/themes/simpleboot3/portal/classify/classify.html @@ -126,8 +126,8 @@ data_arr = JSON.parse(data); for(var i=0;i<data_arr.length;i++){ show_img = data_arr[i].show_img; - data_id = data_arr[i].id; - $('.se_con').append("<div class='in_hotLi'><a href='"+"{:url('Goodsdetails/Goods_details',array('goods_id'=>"+data_id+"))}"+"'><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].price01+"</div></div></div></a></div>"); + url = "{:url('Goodsdetails/Goods_details')}?id="+data_arr[i].id; + $('.se_con').append("<div class='in_hotLi'><a href='"+url+"'><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].price01+"</div></div></div></a></div>"); } }); } -- libgit2 0.24.0