فهرست منبع

经营概况页面的下拉刷新

wangning 5 سال پیش
والد
کامیت
cec79d1545
1فایلهای تغییر یافته به همراه7 افزوده شده و 0 حذف شده
  1. 7 0
      ghsApp/src/pagesStatistics/business.vue

+ 7 - 0
ghsApp/src/pagesStatistics/business.vue

@@ -1,4 +1,5 @@
 <template>
 <template>
+<view>
 	<scroll-view scroll-y class="business-page">
 	<scroll-view scroll-y class="business-page">
 		<template v-if="!$util.isEmpty(baseInfo)">
 		<template v-if="!$util.isEmpty(baseInfo)">
 			<view class="business-info">
 			<view class="business-info">
@@ -143,6 +144,7 @@
 			</view>
 			</view>
 		</template>
 		</template>
 	</scroll-view>
 	</scroll-view>
+  </view>
 </template>
 </template>
 
 
 <script>
 <script>
@@ -184,6 +186,11 @@ export default {
 			baseInfo:{},
 			baseInfo:{},
 		};
 		};
 	},
 	},
+  onPullDownRefresh() {
+    this.init().then(res => {
+      uni.stopPullDownRefresh();
+    })
+  },
 	methods:{
 	methods:{
 		async init(id){
 		async init(id){
 				this.shopId = id?id:this.getMyShopInfo.id
 				this.shopId = id?id:this.getMyShopInfo.id