'; var url = ''; if(_.indexOf(['seller-guide','buyer-guide','how-to-pay'],key) !=-1){ var index_id=$('#'+id).closest('ul').attr('data-index'); if(!$('#'+id).parent().parent().parent().hasClass('open')){ $('#demo3').navgoco('toggle', true,index_id); } } if( _.indexOf(['guarantee-transaction','arbitration','credit-insurance'],url)!=-1){ var index_id=$('.'+url).closest('ul').attr('data-index'); $('#demo3').navgoco('toggle', true,index_id); } $(".content-box").css('opacity',1); $(". ").addClass('active'); $().toastmessage({ position : 'middle-center' }); $("#vote_up").click(function(){ if(0){ $.ajax({ url:"https://help.36daren.com/help/vote", type: "POST", data:{'up_down':'up','cid':'0','type':' '}, dataType:'json', success: function(result){ if(result.flag==true){ $().toastmessage('showSuccessToast', ''); $("#vote_up i").addClass('vote-highlight'); }else{ $().toastmessage('showErrorToast', ''); } } }); }else{ window.location.href="https://www.36daren.com/sign-in"; } }); $("#vote_down").click(function(){ if(0){ $.ajax({ url:"https://help.36daren.com/help/vote", type: "POST", data:{'up_down':'down','cid':'0','type':' '}, dataType:'json', success: function(result){ if(result.flag==true){ $().toastmessage('showSuccessToast', ''); $("#vote_down i").addClass('vote-highlight'); }else{ $().toastmessage('showErrorToast', ''); } } }); }else{ window.location.href="https://www.36daren.com/sign-in"; } }); }); }); });