' + result[i].title + '' + result[i].hits + '人浏览
'; } else { listhtml += '- ' + result[i].title + '
' + result[i].hits + '人浏览
'; } } $('.search_result').append(listhtml).removeClass('hidden'); $('.search_loading').addClass('hidden'); $('.loadMoreSearch').removeClass('hidden'); } } }); } function getHotWord(){ $.ajax({ url: location.protocol + '//'+ location.host +'/wnl/api/hotword', type: 'GET', dataType: 'JSON', success: function(result){ result = JSON.parse(result); var hotword = ""; for (var i = 0; i < result.length; i++) { hotword += '' + result[i].word + ''; } $('.hot-s-list').html(hotword); } }); } textObj = { text: "精品推荐", image: "1", url:"http://k.tickcal.com/wnl/jp?clean=1", pureText:"精品推荐", prefix:"" }; textObj1={ text: "精品推荐", image: "1", targetUrl:"http://k.tickcal.com/wnl/jp?clean=1", perfix:"" }; }); var textObj1,textObj; function appCallback_share(){ try{ if(window.ylwindow){ ylwindow.reportHasShare(true); location.href="protocol://share:" + encodeURI(JSON.stringify(textObj1)); } else{ location.href="protocol://share#" + encodeURI(JSON.stringify(textObj)); } } catch (e){ alert(e) } return 1; }