$(function(){
getWishOrder(1);
getselectableOrder(1);
$(".list_con ul li").live('mouseenter',function(){
$(this).find(".mengceng").show();
$(this).find(".list_pro_detail").show();
})
$(".list_con ul li").live('mouseleave',function(){
$(this).find(".mengceng").hide();
$(this).find(".list_pro_detail").hide();
})
//点击编辑
$(".bianji").click(function(){
$(this).hide();
$(this).attr('data-index',1);
$(".wancheng,.quxiao").show();
$(".list_con ul li .add_box").show();
});
//点击取消
$(".quxiao").click(function(){
$(this).hide();
$(".wancheng").hide();
$(".bianji").show();
$(".bianji").attr('data-index',0);
$(".list_con ul li .add_box").hide();
});
//点击完成
$(".wancheng").click(function(){
$(this).hide();
$(".bianji").attr('data-index',0);
$(".quxiao").hide();
$(".bianji").show();
$(".list_con ul li .add_box").hide();
window.location.reload();
});
$(".list_con ul li").live('mouseenter',function(){
if($(".bianji").attr('data-index')=='1'){
$(this).find(".mengceng").hide();
$(this).find(".list_pro_detail").hide();
$(this).find(".add_yx_box").html('<img src="../images/add_bx2.png" />');
$(this).find(".add_bx_box").html('<img src="../images/add_yx2.png" />');
}
})
$(".list_con ul li").live('mouseleave',function(){
if($(".bianji").attr('data-index')=='1'){
$(this).find(".mengceng").hide();
$(this).find(".list_pro_detail").hide();
$(this).find(".add_yx_box").html('<img src="../images/add_bx1.png" />');
$(this).find(".add_bx_box").html('<img src="../images/add_yx1.png" />');
}
})
})