shish %!s(int64=2) %!d(string=hai) anos
pai
achega
fa8163ca69
Modificáronse 2 ficheiros con 9 adicións e 3 borrados
  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>
 					</div>
 				</scroll-view>
 				</scroll-view>
 				<scroll-view scroll-y class="right-box" :scroll-top="globalScrollTopPlace" @scroll="globalGetScroll" :scroll-into-view="scroll_into_view" scroll-with-animation="true"
 				<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)">
 					<block v-if="!$util.isEmpty(globalItemData)">
 						<view class="item_list_bx selectAll">
 						<view class="item_list_bx selectAll">
 							<view class="item_list_title"></view>
 							<view class="item_list_title"></view>

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

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