-->
我的
'; if (replyuser) { html += '回复 ' + replyuser + ''; } html += ': ' + content + '' + ''; if(flashatt){ html += '
'; } html += '
'; } else { var html = '
'; if (replyuser) { html += '回复 ' + replyuser + ''; } html += ': ' + content + '' + ''; if(flashatt){ html += '
'; } html += '
'; } //举报 $(".base-footer").show(); $('#com_' + tid).show(); $('#com_' + tid).append(html); var a = $('#replynum_' + tid).html(); var b = parseInt(a) + 1; $('#replynum_' + tid).html(b); $('#recon').fadeOut(); $(".flash").fadeIn(); $('#retid').val(''); $('#regame').val(''); $('#replyuid').val(''); $('#replyuser').val(''); $('#recontent').val(''); $('#aid').val(''); $('#reobj').html('回复评论'); $('#lessnum_n').html(150); $('#flashatt').val(''); $('input[name=uploadFileID]').val(1); $('#uploadFilenum').val(0); $('#showuploadpic').html(''); $('#handleFileSelectMutiRead').val(''); $('#handleFileSelectMutiRead').on("click",function(){ var id = jQuery("input[name=uploadFileID]").val(); id = parseInt(id); imgheight = 65; imgwidth = 65; globalid = id; extValue = $('#regame').val(); handleFileSelect(window.event, 'fileToUpload_'+id,'mutiImgshow'); }); } restop = true; }) } // function goclass(a,b){ if ($(b).hasClass('cur')) { $(b).removeClass('cur'); }else{ $(b).siblings().removeClass('cur'); $(b).addClass('cur'); } if(a==2 || a==4){ orderby="lastpost"; }else{ orderby="postdate"; } $.ajax({ url: '/community.php', data: { page: page, dataid:a, orderby:orderby, action: 'mymore' }, dataType: 'json', success: function (msg) { console.log(msg); var result = setHtml(msg); $("#d-talk-inner .n-item").remove(); $("#d-talk-inner .roof-placement").append(result); if(a==3 || a==4){ $("#d-talk-inner .more-info").hide(); }else{ $("#load_f").hide(); $("#tclick").show(); } }, beforeSend:function (){ zixiah5.tips('加载中请稍后'); }, complete: function (msg) { zixiah5.close(); } }) } //点击加载 by yaosy function climore() { if (stop == true) { stop = false; $('#climore').hide(); $('#load_l').show(); setTimeout("load()", 1000); } } var page = "1"; if (page == "") page = 0; function load() { page = parseInt(page) + 1; $.ajax({ url: '/community.php', data: { game: '', page: page, orderby:orderby, action: 'more' }, dataType: 'json', success: function (msg) { if (msg == null) { $('#load_l').hide(); $('#nonemsg').show(); return false; } console.log(msg); var result = setHtml(msg); $("#tclick").before(result); if (msg.length < 10 || page >= 30) { $('#load_l').hide(); $('#nonemsg').show(); } else { stop = true; $('#climore').show(); $('#load_l').hide(); } }, complete: function (msg) { $(".swipebox").swipebox({ afterClose: function() { if(event){ event.preventDefault(); } } }); myScroll.refresh(); } }) } //编辑加载html代码 by yaosy function setHtml(data) { var str = ''; for (var i in data) { //console.log(data[i]['content']); var useragent = navigator.userAgent; // var patt= new RegExp("appleappclient",useragent.toLowerCase()); var patt1 = /appleappclient/gi; var patt = useragent.toLowerCase().match(patt1); // console.log(patt); if(data[i]['if_top']==1){//增加置顶样式 str += '
' }else{ str += '
'; if (patt == '123appleappclient') { str += ''; } else { str += ''; } str += '
'; str += '
'; if (patt == '123appleappclient') { str += '' + data[i]['author'] + ''; } else { str += '' + data[i]['author'] + ''; } str += '' + data[i]['info']['vip_lv'] + '
'; if (data[i]['only_cus'] == 1) { str += '仅客服看到'; } str += '
'; if (data[i]['if_overflow']) { str += '全部显示 '; } str += '
'; for (var j in data[i]['picture']) { str += ''; } str += '
'; if ('' == '') { gameurl = 'h.zixia.com/game-' + data[i]['gamejp']; str += '
'; if (patt == '123appleappclient') { str += '
' + data[i]['gamename'] + '
'; } else { str += '' + data[i]['gamename'] + '
开始游戏
'; } str += '
'; } str += '
' + data[i]['postdate'] + '