css
This commit is contained in:
@@ -538,13 +538,13 @@ input::-webkit-input-placeholder{
|
||||
.list-block.commentList .item-text{height:auto;min-height:1.5rem;}
|
||||
|
||||
.commentBox{height:66px;background:#fff;position:absolute;right:0;left:0;bottom:0;z-index:10;}
|
||||
.commentBox .searchbar{padding:0.75rem 0.5rem;padding-left:0;margin:0;height:66px;background:#fff;border-top:solid 1px #DCDCDC;position:absolute;right:0;left:0;bottom:0;z-index:10;}
|
||||
.commentBox .searchbar{padding:0.75rem 0.5rem;padding-left:0;margin:0;height:66px;background:#fff;border-top:solid 1px #e7e7e7;position:absolute;right:0;left:0;bottom:0;z-index:10;}
|
||||
.commentBox .searchbar .search-input{line-height:36px;}
|
||||
.commentBox .searchbar .search-input input{height:36px;background:#EFEFEF;}
|
||||
.commentBox .searchbar.commentInputBox .search-input input{padding-left:1.8rem;}
|
||||
.commentBox .searchbar span{text-align:center;}
|
||||
.commentBox .searchbar span a font{font-size:0.65rem;color:#666;line-height:36px;}
|
||||
.commentBox .searchbar span .collection{margin-left:0.75rem;position:static;}
|
||||
.commentBox .searchbar span{text-align:center;line-height:36px;}
|
||||
.commentBox .searchbar span font{font-size:0.65rem;color:#666;}
|
||||
.commentBox .searchbar span.collection{margin-left:0.75rem;position:static;}
|
||||
.commentBox .searchbar > a{line-height:36px;}
|
||||
.icon-comments{width:17px;height:16px;background:url(../images/icon-comments.png) no-repeat center center;background-size:100%;margin-left:0.3rem;vertical-align:baseline;}
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
|
||||
<div class="bar commentBox">
|
||||
<div class="searchbar row commentInputBox">
|
||||
<div class="search-input col-66">
|
||||
<div class="search-input col-60">
|
||||
<label class="icon icon-comments" for="search"></label>
|
||||
<input type="text" placeholder="我也说两句">
|
||||
</div>
|
||||
@@ -79,7 +79,7 @@
|
||||
<a class="collection collection01"><i class="icon icon-collection01"></i></a>
|
||||
</span>-->
|
||||
|
||||
<span class="praise col-15">
|
||||
<span class="praise col-20">
|
||||
<i class="icon icon-praise-grey02"></i><font id="newsPraise">{{ newsDzCount }}</font>
|
||||
</span>
|
||||
<span class="collection collection01 col-15">
|
||||
@@ -124,7 +124,7 @@ $.config = {router: false}
|
||||
<script type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
|
||||
<script>
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
var id;//= "186182250936643584";
|
||||
var id; //= "186182250936643584";
|
||||
var shareUrl = BASE_PATH+"/news/newDetail?newsId=";
|
||||
var sharehrefTitle = "停车坐爱枫林晚,霜叶红于二月花";
|
||||
var sharehrefDes = "客观里面请!";
|
||||
@@ -186,7 +186,7 @@ function onPlusReady() {
|
||||
$("#create_time").text(dateStr)
|
||||
$("#content").html(data.content)
|
||||
//$("#newsPraise").text(data.thumbsUpCount);
|
||||
vm.newsDzCount = data.thumbsUpCount
|
||||
vm.newsDzCount = numberConver(data.thumbsUpCount)
|
||||
//预先加载20条
|
||||
|
||||
sharehrefTitle = data.title
|
||||
@@ -207,6 +207,16 @@ function onPlusReady() {
|
||||
updateSerivces();
|
||||
}
|
||||
|
||||
//数量进行转换
|
||||
function numberConver(thumbsUpCount){
|
||||
var thumbsUpCountStr = ""
|
||||
if(thumbsUpCount>=10000){
|
||||
thumbsUpCountStr = (thumbsUpCount/10000).toFixed(1)+"万"
|
||||
}else{
|
||||
thumbsUpCountStr = thumbsUpCount
|
||||
}
|
||||
return thumbsUpCountStr;
|
||||
}
|
||||
|
||||
|
||||
function isCollect(){
|
||||
@@ -296,7 +306,7 @@ function addItems(number, lastIndex) {
|
||||
}
|
||||
html = html + "<div class='item-title-row'>"+
|
||||
"<div class='item-title'>"+name+"</div>"+
|
||||
"<div class='item-after'><span data-cid='"+vo.id+"'><i class='icon icon-praise-grey01'></i><label>"+vo.praiseCount+"</label></span></div>"+
|
||||
"<div class='item-after'><span data-cid='"+vo.id+"'><i class='icon icon-praise-grey01'></i><label>"+numberConver(vo.praiseCount)+"</label></span></div>"+
|
||||
"</div>"+
|
||||
"<div class='item-title-row'>";
|
||||
var address = "";
|
||||
@@ -420,7 +430,7 @@ function getDateDiff(curTime, publishTime){
|
||||
|
||||
/* 评论点赞 */
|
||||
$("body").delegate(".commentList span .icon-praise-grey01", "click", function () {
|
||||
$(this).find(".icon").addClass("icon-praise-orange01");
|
||||
$(this).addClass("icon-praise-orange01");
|
||||
var cid = $(this).parent().attr("data-cid")
|
||||
$(this).attr("disabled","disabled");
|
||||
var text = $(this).parent().text();
|
||||
@@ -578,20 +588,27 @@ function utf16toEntities(str) {
|
||||
return str;
|
||||
}
|
||||
|
||||
|
||||
//$(window).bind('resize',_funResize);
|
||||
|
||||
var _funResize = function(){
|
||||
document.body.scrollTop = document.body.scrollHeight;
|
||||
target.scrollIntoView(true);
|
||||
}
|
||||
|
||||
$(function() {
|
||||
$('#commentInput').on('click', function () {
|
||||
var target = this;
|
||||
// 使用定时器是为了让输入框上滑时更加自然
|
||||
/*setTimeout(function(){
|
||||
target.scrollIntoView(true);
|
||||
},100);*/
|
||||
|
||||
setTimeout(function(){
|
||||
document.body.scrollTop = document.body.scrollHeight;
|
||||
target.scrollIntoView(true);
|
||||
},100);
|
||||
});
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user