diff --git a/application/index/view/kefu/index.html b/application/index/view/kefu/index.html index beedba9..6172bf2 100644 --- a/application/index/view/kefu/index.html +++ b/application/index/view/kefu/index.html @@ -124,19 +124,6 @@ -
- -
diff --git a/public/static/common/dist/js/examples.js b/public/static/common/dist/js/examples.js index a7cd60d..eeebeb5 100644 --- a/public/static/common/dist/js/examples.js +++ b/public/static/common/dist/js/examples.js @@ -44,7 +44,15 @@ $(function () { var facing_info = '
  • '; facing_info += '
    '; facing_info += '
    '; - facing_info += '
    ' + item.visitor_name + '
    '; + facing_info += '
    ' + item.visitor_name + '
    '; + if(status == 1){ + facing_info+='
    '; + facing_info+='
    '; + } + facing_info += '
    ' $('#facing').append(facing_info); //新建聊天框 if (key == 0) { @@ -324,6 +332,27 @@ $(function () { kefu.Message.getChatLog(vid, kefu_code); } + + }); + $(document).on('click', '.layout .content .chat .dropdown-item', function (e) { + e.preventDefault(); + console.log(111); + // if ($(this).hasClass('open-chat') == true) { + // return true + // } else { + // $(this).addClass('open-chat'); + // $(this).find('.users-list-body').find('.users-list-action').remove(); + // $(this).find('figure').addClass('avatar-state-success'); + // $('.layout .content .sidebar-group #friends #history li').not(this).removeClass('open-chat'); + // $('.layout .content .sidebar-group #friends #history li figure').not($(this).find('figure')).removeClass('avatar-state-success'); + // //显示当前用户的聊天记录 + // kefu.Message.setOnline($(this).find('h5').text(), $(this).find('img').attr('src')); + // var vid = $(this).attr('data-id'); + // var obj = $('.chat-body').find('.' + vid); + // kefu.Message.getChatLog(vid, kefu_code); + // + // } + }); var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串 var isOpera = userAgent.indexOf("Opera") > -1; //判断是否Opera浏览器 @@ -350,4 +379,4 @@ $(function () { }; } - }); +});