Explorar o código

一元捐前端页面消息中心页面增加消息的展开收起功能

hangb %!s(int64=8) %!d(string=hai) anos
pai
achega
2d5621db34

+ 1 - 1
donate-console/src/main/webapp/WEB-INF/views/activeList.html

@@ -1236,7 +1236,7 @@
             </section>
         </div>
         <!--正在进行右侧内容部分-->
-        <aside class="content-right">
+        <aside class="content-right show">
             <!--<div class="container">-->
                 <div class="right-header clearfix">
                     <div class="fl"><span>优软一元捐感恩回馈038</span><a href="" class="edit">编辑</a><a href="">查看网页</a></div>

+ 2 - 0
donate-service/src/main/webapp/WEB-INF/views/activeDetail.html

@@ -372,12 +372,14 @@
             line-height: 34px;
             margin-left: 15px;
             padding-left: 15px;
+            border-radius: 0;
             outline: none;
         }
         .pop .body .choose textarea{
             margin-left: 15px;
             width: 325px;
             height: 74px;
+            border-radius: 0;
         }
         .pop .body button{
             width: 200px;

+ 7 - 7
donate-service/src/main/webapp/WEB-INF/views/personalCenter.html

@@ -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 () {