...
|
...
|
@@ -22,16 +22,16 @@ |
|
|
<!-- search -->
|
|
|
<div class="search_box">
|
|
|
<!-- 顶部搜索 -->
|
|
|
<form action="{:url('Index/search_salesman_goods')}" method="post">
|
|
|
<!-- <form action="{:url('Index/search_salesman_goods')}" method="post">-->
|
|
|
<div class="se_search">
|
|
|
<a href="{:url('Index/index')}"><img class="search_left" src="__TMPL__/public/assets/images/25.png" alt=""></a>
|
|
|
<div class="se_input">
|
|
|
<img src="__TMPL__/public/assets/images/1.png" alt="">
|
|
|
<input type="text" name="book_name" placeholder="请输入搜索内容">
|
|
|
<input type="text" name="book_name" placeholder="{$search_content}" value="{$search_content}" >
|
|
|
</div>
|
|
|
<p class="se_searchNo"><input type="submit" placeholder="搜索" value="搜索"></p>
|
|
|
<p class="se_searchNo" onclick="my_submit()"><!--<input type="submit" placeholder="搜索" value="搜索">--> 搜索</p>
|
|
|
</div>
|
|
|
</form>
|
|
|
<!-- </form>-->
|
|
|
<input type="hidden" name="search_content" value="{$search_content}">
|
|
|
<!-- 搜索导航 -->
|
|
|
<div class="se_nav">
|
...
|
...
|
@@ -54,7 +54,7 @@ |
|
|
<img src="{:cmf_get_image_url($vo.show_img)}" alt="">
|
|
|
</div>
|
|
|
<div class="in_hotText">
|
|
|
<div class="in_hotName txt-cut"><span>{$vo.name}</span>{$vo.book_name}</div>
|
|
|
<div class="in_hotName txt-cut"><span>{$vo.grade}</span>{$vo.book_name}</div>
|
|
|
<div class="in_cam_shopPrice">
|
|
|
<div class="in_hotPrice1">¥<span>{$vo.price0}</span>.{$vo.price1}</div>
|
|
|
<div class="in_cam_shopY">¥{$vo.pricing}</div>
|
...
|
...
|
@@ -70,6 +70,23 @@ |
|
|
<script src="__TMPL__/public/assets/js/base.js"></script>
|
|
|
<script src="__TMPL__/public/assets/js/jquery.js"></script>
|
|
|
<script>
|
|
|
/**
|
|
|
*点击搜索
|
|
|
*/
|
|
|
function my_submit(){
|
|
|
book_name = $("input[name='book_name']").val();
|
|
|
$.post("{:url('Index/my_search')}",{book_name:book_name},function(data){
|
|
|
data_arr = JSON.parse(data);
|
|
|
$('.in_hotLi').remove();
|
|
|
for(var i=0;i<data_arr.length;i++){
|
|
|
show_img = data_arr[i].show_img;
|
|
|
url = "{:url('Goodsdetails/Goods_details')}?goods_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].grade+"</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></a></div>");
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
</script>
|
|
|
<script>
|
|
|
$('.se_nav ul li').click(function() {
|
|
|
$(this).addClass('se_navactvie').siblings().removeClass('se_navactvie');
|
|
|
$(this).addClass('se_navactvie').siblings().children('img').attr('src', '__TMPL__/public/assets/images/s1.png')
|
...
|
...
|
@@ -91,7 +108,7 @@ |
|
|
for(var i=0;i<data_arr.length;i++){
|
|
|
show_img = data_arr[i].show_img;
|
|
|
url = "{:url('Goodsdetails/Goods_details')}?goods_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></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></a></div>");
|
|
|
$('.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].grade+"</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></a></div>");
|
|
|
}
|
|
|
});
|
|
|
}
|
...
|
...
|
@@ -107,7 +124,7 @@ |
|
|
for(var i=0;i<data_arr.length;i++){
|
|
|
show_img = data_arr[i].show_img;
|
|
|
url = "{:url('Goodsdetails/Goods_details')}?goods_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></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></a></div>");
|
|
|
$('.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].grade+"</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></a></div>");
|
|
|
}
|
|
|
});
|
|
|
}
|
...
|
...
|
@@ -123,7 +140,7 @@ |
|
|
for(var i=0;i<data_arr.length;i++){
|
|
|
show_img = data_arr[i].show_img;
|
|
|
url = "{:url('Goodsdetails/Goods_details')}?goods_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></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></a></div>");
|
|
|
$('.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].grade+"</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></a></div>");
|
|
|
}
|
|
|
});
|
|
|
}
|
...
|
...
|
|