吃个甘蔗嚼一年 3 years ago
parent
commit
1867b1dfa9
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      src/pages/index/tabs/Recommend.jsx

+ 3
- 2
src/pages/index/tabs/Recommend.jsx View File

47
   const handleDataChange = (value, e) => {
47
   const handleDataChange = (value, e) => {
48
     if (e.paramsChanged) {
48
     if (e.paramsChanged) {
49
       rfTimes.current += 1
49
       rfTimes.current += 1
50
-      
50
+
51
       //如果context有的话代表他滚动了   那么切换tab页就置顶
51
       //如果context有的话代表他滚动了   那么切换tab页就置顶
52
       if (listRef.current?.context) {
52
       if (listRef.current?.context) {
53
         Taro.nextTick(() => {
53
         Taro.nextTick(() => {
105
           </mp-tabs>
105
           </mp-tabs>
106
         </scroll-view>
106
         </scroll-view>
107
       </view>
107
       </view>
108
-      <view className={listClass} style={{ flex:'auto', height: '100%', overflow: 'hidden' }}>
108
+      <view className={listClass} style={{ flex: 'auto', height: '100%', overflow: 'hidden' }}>
109
         <List
109
         <List
110
           ref={listRef}
110
           ref={listRef}
111
           style={listStyle}
111
           style={listStyle}
112
           request={getResourceList}
112
           request={getResourceList}
113
           params={queryParams}
113
           params={queryParams}
114
+          refresherEnabled={false}
114
           onDataChange={handleDataChange}
115
           onDataChange={handleDataChange}
115
         >
116
         >
116
           <view style={{ padding: '30rpx 15rpx' }}>
117
           <view style={{ padding: '30rpx 15rpx' }}>