shish 2 rokov pred
rodič
commit
b3c577579e

+ 5 - 10
ghsApp/src/admin/changePrice/changeStock2.vue

@@ -11,15 +11,16 @@
 		</view>
 
 		<view class="scroll-middle_bx">
-			<scroll-view scroll-y scroll-with-animation class="tab-view" :scroll-top="scrollTop">
+			<scroll-view scroll-y scroll-with-animation class="tab-view">
 				<div v-for="(item, index) in globalClassData" :key="index" class="tab-bar-item" :class="[globalClassIndex == index ? 'active' : '']" :data-current="index" @tap.stop="globalSwitchClass(index,item)">
 					<text>{{ item.name || "" }}</text>
 				</div>
 			</scroll-view>
-				<scroll-view scroll-y class="right-box" 
+				<scroll-view scroll-y class="right-box"
+					:scroll-top="globalScrollTopPlace"
+					@scroll="globalGetScroll"
 					:scroll-into-view="scroll_into_view" 
 					scroll-with-animation="true"
-					@scroll="scroll_detail"
 					lower-threshold="100"
 					@scrolltolower="scroll_bottom">
 
@@ -74,7 +75,7 @@
 import AppSearchModule from "@/components/module/app-search";
 import AppWrapperEmpty from "@/components/app-wrapper-empty";
 import ItemComponent from "./components/changeStockItem2";
-import productMins from "@/mixins/product2;
+import productMins from "@/mixins/product2";
 import { mapGetters } from "vuex";
 import { checkOrderApi } from "@/api/inventory";
 import { changeFrontHide } from "@/api/item";
@@ -165,12 +166,6 @@ export default {
 			if (val.index === 0) {
 				this.modalCancel();
 			}
-		},
-		scrollTop() {},
-		initProductInfo() {
-			this.globalClassItemListContrapose = [];
-			this.page = 1;
-			this.isMore = true;
 		}
 	}
 };

+ 6 - 11
ghsApp/src/admin/changePrice/list2.vue

@@ -14,19 +14,20 @@
 		</view>
 
 		<view class="scroll-middle_bx">
-			<scroll-view scroll-y scroll-with-animation class="tab-view" :scroll-top="scrollTop">
+			<scroll-view scroll-y scroll-with-animation class="tab-view">
 				<div v-for="(item, index) in globalClassData" :key="index" class="tab-bar-item" :class="[globalClassIndex == index ? 'active' : '']" :data-current="index" @tap.stop="globalSwitchClass(index,item)">
 					<text style="text-align: center;">{{ item.name || "" }}</text>
 				</div>
 			</scroll-view>
-				<scroll-view scroll-y class="right-box" 
+				<scroll-view scroll-y class="right-box"
+					:scroll-top="globalScrollTopPlace"
+					@scroll="globalGetScroll"
 					:scroll-into-view="scroll_into_view" 
 					scroll-with-animation="true"
-					@scroll="scroll_detail"
 					lower-threshold="100"
 					@scrolltolower="scroll_bottom">
 
-				<block v-if="!$util.isEmpty(globalClassItemList)">
+				<block v-if="!$util.isEmpty(globalItemData)">
 					<view class="item_list_bx selectAll">
 						<view class="item_list_title"></view>
 
@@ -50,7 +51,7 @@
 				</block>
 				<block v-else>
 					<view style="width: 100%">
-						<app-wrapper-empty  title="加载中" :is-empty="$util.isEmpty(globalClassItemList)"/>
+						<app-wrapper-empty  title="加载中" :is-empty="$util.isEmpty(globalItemData)"/>
 					</view>
 				</block>
 
@@ -235,12 +236,6 @@ export default {
 			if (val.index === 0) {
 				this.modalCancel();
 			}
-		},
-		scrollTop() {},
-		initProductInfo() {
-			this.globalClassItemListContrapose = [];
-			this.page = 1;
-			this.isMore = true;
 		}
 	}
 };

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

@@ -13,7 +13,7 @@
 				</view>
 			</view>
 			<view class="scroll-middle_bx">
-				<scroll-view scroll-y scroll-with-animation class="tab-view" :scroll-top="scrollTop">
+				<scroll-view scroll-y scroll-with-animation class="tab-view">
 					<div v-for="(item, index) in globalClassData" :key="index" class="tab-bar-item" :class="[globalClassIndex == index ? 'active' : '']" :data-current="index" @tap.stop="globalSwitchClass(index,item)">
 						<text style="text-align: center;">{{ item.name || "" }}</text>
 					</div>
@@ -486,9 +486,6 @@ export default {
 				this.modalCancel();
 			} else {
 			}
-		},
-		scrollTop() {
-
 		}
 	}
 };