";html+=""+r.start_qty+(r.end_qty==0?'+':'-'+r.end_qty)+" | ";html+=""+_obj.symbol+r.unit_origin+" | ";html+=""+_obj.symbol+r.unit_price+" | ";html+="
";});$('.dd').after(html);}}});return false;}
$('.category-tree li').each(function(){if($(this).find('a').hasClass('active-show')){$(this).find('.list-tree').show();$(this).find('.category-list-angle').removeClass('fa-plus');$(this).find('.category-list-angle').addClass('fa-minus');}});$('body').on('click','.category-tree li .category-list-angle',function(){if($(this).attr('class').indexOf('fa-plus')!==-1){$(this).parents('li').find('.list-tree').show();$(this).removeClass('fa-plus');$(this).addClass('fa-minus');}else{$(this).parents('li').find('.list-tree').hide();$(this).removeClass('fa-minus');$(this).addClass('fa-plus');}});function tj_js_search(has_data){let search_page_number=0;if(has_data>=1)search_page_number=1;let extraData={site_owner_id:"1000000078",create_id:"1000000078",'page_url':window.location.href,'from_page':"",'page_title':$('head title').text(),'search_keyword':"",'search_page_number':search_page_number,};let formData=$.param(extraData);$.ajax({url:"/shopping/tj_page_search",type:'post',dataType:'json',data:formData,success:function(rst){console.log(rst);}});}
let currentUrl=window.location.href+'/';if(/\/categorylist\/?/.test(currentUrl)&&(/keyword=/.test(currentUrl)||/k=/.test(currentUrl))){tj_js_search(1);}