|
|
@@ -1257,20 +1257,20 @@
|
|
|
// 收起打开消息列表
|
|
|
$('.news-list').click(function(){
|
|
|
$(this).next('.news-detail').toggle();
|
|
|
-// console.log($(this).children('.third'))
|
|
|
-// console.log($(this).next('.news-detail').display === 'block')
|
|
|
-// console.log($(this).children('.third').hide())
|
|
|
- if($(this).next('.news-detail').display === 'block'){
|
|
|
+ if($(this).next('.news-detail').css('display') !== 'none'){
|
|
|
$(this).css('border-bottom','none')
|
|
|
- console.log($(this).css('border-bottom','none'))
|
|
|
.children('.third').css('display','none');
|
|
|
- }else{
|
|
|
+ }else if($(this).next('.news-detail').css('display') !== 'block'){
|
|
|
$(this).css('border-bottom','1px solid #e1e1e1')
|
|
|
- .children('.third').show();
|
|
|
+ .children('.third').css('display','block');
|
|
|
}
|
|
|
});
|
|
|
$('.show-up').click(function(){
|
|
|
$(this).parent().parent().parent().parent().hide();
|
|
|
+ if($(this).parent().parent().parent().parent().css('display')==='none'){
|
|
|
+ $(this).parent().parent().parent().parent().prev().children('.third').show();
|
|
|
+ $(this).parent().parent().parent().parent().prev().css('border-bottom','1px solid #dcdcdc');
|
|
|
+ }
|
|
|
});
|
|
|
// 点击切换
|
|
|
$('.active-toggle').on('click', 'span', function () {
|