/**
 * Created by A.J on 2019/12/17.
 */
function gethtml(data){
    var rehmtl = '<li class="list-group-item border-light"><img src="'+data.touxiang+'" height="50" class="rounded-circle float-left mr-3" data-toggle="popover" data-placement="right"><div class="float-right text-black-50"><a href="#!" class="mr-2 text-black-50 text-decoration-none jianyu_xiugaigentie" data-id="'+data.id+'"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a><a href="#!" class="mr-2 text-black-50 text-decoration-none jianyu_shanchugentie" data-id="'+data.id+'"><i class="fa fa-trash-o"></i>&nbsp;删除<i class="fa fa-refresh fa-spin ml-2 d-none"></i></a><span>'+$("#zuidalou").text()+'楼</span></div><small class="text-black-50"><i class="fa fa-user"></i>&nbsp;'+data.nicheng+'&nbsp;发表于&nbsp;'+data.shicha.gentieshijian+'</small>';
    if(typeof data.beihuifu != 'undefined'){
        rehmtl += '<div class="bg-light p-2 my-2 media"><img src="'+data.beihuifu.touxiang+'" height="30" class="rounded-circle float-left mr-3" data-toggle="popover" data-placement="right"><div class="media-body"><small class="text-black-50"><i class="fa fa-user"></i>&nbsp;'+data.beihuifu.nicheng+'&nbsp;发表于&nbsp;'+data.beihuifu.shicha.gentieshijian+'</small><h6 class="text-muted gentieneirong zhengwen">'+data.beihuifu.neirong+'</h6></div><div class="d-none"><div class="text-muted px-4 text-nowrap"><img src="'+data.beihuifu.touxiang+'" height="50" class="rounded-circle float-left mr-3"><h6>'+data.beihuifu.nicheng+'</h6><h6>LV&nbsp;'+data.beihuifu.dengji+'&nbsp;<span class="text-info">['+data.beihuifu.dengjiming+']</span></h6><h6>最后在线：'+data.beihuifu.shicha.zuijinzaixian+'</h6><h6>加入时间：'+data.beihuifu.shicha.jiaru+'</h6><h6>主帖：'+data.beihuifu.uzhutie+'&nbsp;&nbsp;跟帖：'+data.beihuifu.ugentie+'</h6></div></div></div>';
    }
    rehmtl += '<h6 class="gentieneirong">'+data.gentie+'</h6><div class="float-right text-black-50"><button type="button" class="btn btn-light btn-sm jianyu_huifu" data-id="'+data.id+'"><i class="fa fa-pencil-square-o"></i>&nbsp;回复</button></div><div class="mt-3"><button type="button" class="btn btn-info btn-sm mr-1 denglu jianyu_gentiezan" data-container="body" data-toggle="popover" data-placement="top" data-trigger="hover" data-content="赞一个" data-id="'+data.id+'"><i class="fa fa-thumbs-o-up"></i>&nbsp;<span>0</span></button><button type="button" class="btn btn-secondary btn-sm denglu jianyu_gentiecai" data-container="body" data-toggle="popover" data-placement="top" data-trigger="hover" data-content="踩一下" data-id="'+data.id+'"><i class="fa fa-thumbs-o-down"></i>&nbsp;<span>0</span></button></div><div class="huifudiv my-2"><div class="huifudivtop"></div></div><div class="d-none"><div class="text-muted px-4 text-nowrap"><img src="'+data.touxiang+'" height="50" class="rounded-circle float-left mr-3"><h6>'+data.nicheng+'</h6><h6>LV&nbsp;'+data.dengji+'&nbsp;<span class="text-info">['+data.dengjiming+']</span></h6><h6>最后在线：'+data.shicha.zuijinzaixian+'</h6><h6>加入时间：'+data.shicha.jiaru+'</h6><h6>主帖：'+data.uzhutie+'&nbsp;&nbsp;跟帖：'+data.ugentie+'</h6></div></div></li>';
    return rehmtl;
}