Browse Source

更改消息

lipengtao 6 years ago
parent
commit
f888aae87c
1 changed files with 6 additions and 1 deletions
  1. 6 1
      js/platTiding.js

+ 6 - 1
js/platTiding.js

@ -4,6 +4,7 @@ $(document).ready(function () {
4 4
  var imgUrl = "";
5 5
  var timerset;
6 6
  var oflag = false;
7
  var pd = false;
7 8
  loginStatus(); //判断个人是否登录
8 9
  $(".list_body").niceScroll({
9 10
    cursorcolor: "#999999"
@ -130,6 +131,7 @@ $(document).ready(function () {
130 131
  /*切换*/
131 132
  $(".list_body").on("click", ".list_item", function () {
132 133
    oflag = true;
134
    pd = true;
133 135
    if(timerset) {
134 136
      clearInterval(timerset);
135 137
    }
@ -286,7 +288,10 @@ function getTotalMessage() {
286 288
              $(".chat_body_list").append(oStr);
287 289
            }
288 290
            $(".chat_body.clearfix").getNiceScroll().hide().show().resize();
289
            $(".chat_body.clearfix").getNiceScroll(0).doScrollTop($(".chat_body_list").height(), 100);
291
            if (pd) {
292
              $(".chat_body.clearfix").getNiceScroll(0).doScrollTop($(".chat_body_list").height(), 100);
293
              pd = false;
294
            }
290 295
          }
291 296
        }
292 297
      },