shish 2 лет назад
Родитель
Сommit
fa8163ca69
2 измененных файлов с 9 добавлено и 3 удалено
  1. 1 1
      ghsApp/src/admin/item/list2.vue
  2. 8 2
      ghsApp/src/mixins/product2.js

+ 1 - 1
ghsApp/src/admin/item/list2.vue

@@ -19,7 +19,7 @@
 					</div>
 				</scroll-view>
 				<scroll-view scroll-y class="right-box" :scroll-top="globalScrollTopPlace" @scroll="globalGetScroll" :scroll-into-view="scroll_into_view" scroll-with-animation="true"
-					lower-threshold="100" @scrolltolower="globalScrollBottom">
+					lower-threshold="120" @scrolltolower="globalScrollBottom">
 					<block v-if="!$util.isEmpty(globalItemData)">
 						<view class="item_list_bx selectAll">
 							<view class="item_list_title"></view>

+ 8 - 2
ghsApp/src/mixins/product2.js

@@ -36,7 +36,8 @@ export default {
 			globalPy:'',
 			globalItemData:[],
 			globalScrollTopPlace:0,
-			globalScrollTopOldPlace:0
+			globalScrollTopOldPlace:0,
+			globalIsRequesting:false
 		};
 	},
 	onLoad(options) {
@@ -172,6 +173,7 @@ export default {
                     }else{
                         that.globalFinishGetItem = 1
                     }
+					that.globalIsRequesting = false
 					that.globalRememberRefresh()
 				}
 			})
@@ -269,7 +271,11 @@ export default {
 			this.globalScrollTopOldPlace = event.detail.scrollTop
 		},
 		globalScrollBottom(){
-            this.getGlobalProductList()
+			if(this.globalIsRequesting == true){
+				return false
+			}
+			this.globalIsRequesting = true
+			this.getGlobalProductList()
         },
 		getSelectItemById(id, classId) {
 			let info = { bigCount: null, smallCount: null, autoPrice: null, itemPrice: null }