Kaynağa Gözat

小程序首页减法问题终于解决了

李志伟 3 yıl önce
ebeveyn
işleme
76475347bd

+ 1
- 1
src/components/tip/index.less Dosyayı Görüntüle

@@ -1,7 +1,7 @@
1 1
 .tip{
2 2
   padding:23px 0 22px 31px;
3 3
   height: 70px;
4
-
4
+  flex: none;
5 5
   .tipicon{
6 6
     width: 17px;
7 7
     height: 19px;

+ 2
- 3
src/pages/index/tabs/Recommend.jsx Dosyayı Görüntüle

@@ -11,7 +11,7 @@ import { getIndexType, getResourceList } from '@/services/home'
11 11
 import Card from '../components/Card'
12 12
 import './less/Recommend.less'
13 13
 
14
-const listStyle = { height: 'calc(100% - 145px)' }
14
+const listStyle = { height: '100%' }
15 15
 
16 16
 export default (props) => {
17 17
   const { router, person, location } = props
@@ -75,8 +75,7 @@ export default (props) => {
75 75
   // })
76 76
 
77 77
   return (
78
-    // <view style={{ height: '100%', overflow: 'hidden',display:'flex',flexDirection:'column' }}>
79
-    <view style={{ height: '100%', overflow: 'hidden' }}>
78
+    <view style={{ height: '100%', overflow: 'hidden', display: 'flex',   flexDirection:'column' }}>
80 79
       <view className='search' onClick={onSearch} >
81 80
         <input className='searchInput' disabled />
82 81
         <image className='searchicon' src={iconsearch} />

+ 2
- 6
src/pages/index/tabs/less/Recommend.less Dosyayı Görüntüle

@@ -1,6 +1,7 @@
1 1
 .search{
2 2
     padding: 10px 30px 0 30px;
3 3
     position: relative;
4
+    flex: none;
4 5
     .searchInput{    
5 6
         height: 68px;
6 7
         background: #F8F8F8;
@@ -27,12 +28,6 @@
27 28
       letter-spacing: 0.2em;
28 29
     }
29 30
 }
30
-// .waterfall{
31
-//   column-count: 2;      //分两列
32
-//   column-gap: 30px;    //列间距
33
-//   background-color: #F8F8F8;
34
-//   padding:30px 30px 0 30px; 
35
-// }
36 31
 .botton{
37 32
   font-size: 28px;
38 33
   color: #C0C8D3;
@@ -43,6 +38,7 @@
43 38
 .index-tabs {
44 39
   padding-left: 95px;
45 40
   position: relative;
41
+  flex: none;
46 42
   .position{
47 43
     position: absolute;
48 44
     left: 36px;