//window.location.href = "https://chip.chenkeiot.com/"+urls+"&url="+data.url; $(document).ready(function(){ var this_=$(a).parent().parent().parent().parent().parent().parent().parent().find('#wx_imgidss'); console.log(this_[0]); var qrcode = new QRCode(this_[0], { text: data.url, width: 118, height: 118, render: "table" }); var length = this_.find('img').length; if(length>1) { this_.find('img')[length-2].remove(); } }); $(a).parent().parent().parent().parent().parent().parent().parent().find('.wx_pay').show(); }else { alert('提交订单失败'); return false; } } }); } } $(".close").click(function(){ $(this).parent().parent().parent().hide(); location.reload(); }); function find_dm(a) { $(a).next().show(); } $(document).ready(function() { // $("mores").click(function(){ // $("li").each(function(){ // alert($(this).text()) // }); // }); $('.stock').bind("myClick", function(){ // var keywords = $(this).parent().parent().parent().parent().find('td:eq(1)').find('.zzsbh').text(); var keywords = $(this).attr('zzsbh'); console.log(keywords); var xh = $(this).parent().parent().parent().find('.xh'); var xh_p = $(this).parent().parent().parent().find('.xh').parent(); var mk_db_xh = xh_p.attr('mk_db_xh'); if(mk_db_xh>0) { $.ajax({ type : "POST", url : "https://chip.chenkeiot.com/zss/ret_datas_count", data:{"keywords":keywords}, dataType : "json", success : function(data) { if(data.ok == '1') { var _count = data.counts; var counts = parseInt(mk_db_xh)+parseInt(_count); html = "
现货:"+counts+"