张延森 3 gadus atpakaļ
vecāks
revīzija
f4956cbd7c

+ 1
- 1
project.config.json Parādīt failu

2
   "miniprogramRoot": "./dist",
2
   "miniprogramRoot": "./dist",
3
   "projectname": "miniapp",
3
   "projectname": "miniapp",
4
   "description": "十公里",
4
   "description": "十公里",
5
-  "appid": "wx835627a9b9b3932a",
5
+  "appid": "wx06a7372d48d56843",
6
   "setting": {
6
   "setting": {
7
     "urlCheck": true,
7
     "urlCheck": true,
8
     "es6": false,
8
     "es6": false,

+ 14
- 12
src/components/List/index.jsx Parādīt failu

95
 
95
 
96
   return (
96
   return (
97
     <ScrollView
97
     <ScrollView
98
+      {...leftProps}
98
       scrollY
99
       scrollY
99
       enhanced
100
       enhanced
100
       onScrollToLower={handleScrollToLower}
101
       onScrollToLower={handleScrollToLower}
101
-      {...leftProps}
102
       className={`${className} ${uqCls} list-view`}
102
       className={`${className} ${uqCls} list-view`}
103
     >
103
     >
104
-      {!render
105
-        ? props.children
106
-        : list.map((item, index) => render({ item, index }))
107
-      }
108
-      {!list || !list.length && noData}
109
-
110
-      <Spin3 show={loading} />
111
-
112
-      {list && list.length > 0 && !hasMore &&
113
-        <view className='botton'>这是我的底线</view>
114
-      }
104
+      <view>
105
+        {!render
106
+          ? props.children
107
+          : list.map((item, index) => render({ item, index }))
108
+        }
109
+        {!list || !list.length && noData}
110
+
111
+        <Spin3 show={loading} />
112
+
113
+        {list && list.length > 0 && !hasMore &&
114
+          <view className='botton'>这是我的底线</view>
115
+        }
116
+      </view>
115
     </ScrollView>
117
     </ScrollView>
116
   )
118
   )
117
 })
119
 })

+ 1
- 0
src/components/MasonryLayout/style.less Parādīt failu

1
 
1
 
2
 .masonry-layout {
2
 .masonry-layout {
3
   box-sizing: border-box;
3
   box-sizing: border-box;
4
+  position: relative;
4
   width: 100%;
5
   width: 100%;
5
   display: flex;
6
   display: flex;
6
 
7
 

+ 1
- 6
src/pages/index/tabs/Recommend.jsx Parādīt failu

50
       
50
       
51
       //如果context有的话代表他滚动了   那么切换tab页就置顶
51
       //如果context有的话代表他滚动了   那么切换tab页就置顶
52
       if (listRef.current?.context) {
52
       if (listRef.current?.context) {
53
-        Taro.nextTick(() => {
54
-          const t = setTimeout(() => {
55
-            listRef.current.context.scrollTo({ top: 0 })
56
-            clearTimeout(t)
57
-          }, 500)
58
-        })
53
+        listRef.current.context.scrollTo({ top: 0 })
59
       }
54
       }
60
     }
55
     }
61
 
56