Kaynağa Gözat

经营概况页面的下拉刷新

wangning 5 yıl önce
ebeveyn
işleme
6c64d3825f
1 değiştirilmiş dosya ile 7 ekleme ve 0 silme
  1. 7 0
      hdApp/src/pagesStatistics/business.vue

+ 7 - 0
hdApp/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 = this.userInfo.id
 				// this.shopId = this.userInfo.id