Browse Source

修改免责声明位置

zhangxc 5 years ago
parent
commit
1ebc650ffc
2 changed files with 9 additions and 5 deletions
  1. 3 3
      src/components/PushItems/index.jsx
  2. 6 2
      src/components/PushItems/index.less

+ 3 - 3
src/components/PushItems/index.jsx

@@ -137,12 +137,12 @@ class PushItems extends Component {
   }
 
   componentDidMount() {
-    const height = getWindowInnerHeight() - 200;
+    const height = getWindowInnerHeight() - 170;
     this.$cont.current.style.height = height + "px";
 
     windowEventHandler('resize', ()=>{
       if(this.$cont.current){
-        const height = getWindowInnerHeight() - 200;
+        const height = getWindowInnerHeight() - 170;
         this.$cont.current.style.height = height + "px";
       }
     });
@@ -277,8 +277,8 @@ class PushItems extends Component {
               tipsDiscalimer = {tipsDiscalimer}
             ></TipsMsg>
           </div>
+         {tipsDiscalimer.data && <div className={style['disTips']} dangerouslySetInnerHTML={{__html: tipsDiscalimer.data.data &&tipsDiscalimer.data.data.find(item => item.disclaimerCode == '2')&&tipsDiscalimer.data.data.find(item => item.disclaimerCode == '2').description}}></div>}
         </div>
-        {tipsDiscalimer.data && <div className={style['disTips']} dangerouslySetInnerHTML={{__html: tipsDiscalimer.data.data &&tipsDiscalimer.data.data.find(item => item.disclaimerCode == '2')&&tipsDiscalimer.data.data.find(item => item.disclaimerCode == '2').description}}></div>}
         {showTipsDetails && <DetailsModal  
             showTipsDetails = {showTipsDetails}
             hideTips = {this.hideTips}

+ 6 - 2
src/components/PushItems/index.less

@@ -1,10 +1,11 @@
 @import "~@less/variables.less";
 .push-content-wrapper{
   // padding-top: 50px;
-  padding: 0px 15px;
+  padding: 0px 15px ;
   line-height: 20px; 
   width: @push-width;
   overflow: hidden;
+  position: relative;
   .push-content {
     width: 436px;
     overflow-y: auto;
@@ -109,9 +110,12 @@
   
 }
 .disTips {
-  padding: 10px 20px 0;
+  padding: 10px 20px 0px 10px;
+  background: #fff;
   font-size: 10px;
   color: #979797;
   text-align: center;
+  position: absolute;
+  bottom: 0;
 }