lilei пре 4 година
родитељ
комит
0f4437bb9a

+ 8 - 1
pages/myShopTour/myShopTour.vue

@@ -53,7 +53,8 @@
 								</u-grid>
 							</view>
 						</view>
-						<u-empty style="padding-top: 10vh;height: auto;" text="暂无数据" img-width="120" v-if="list.length == 0 && status != 'loading'" mode="list"></u-empty>
+						<u-empty style="padding-top: 10vh;height: auto;" :text="noDataText" img-width="120" v-if="list.length == 0 && status != 'loading'" mode="list"></u-empty>
+						<view class="list-nomore" v-if="status == 'nomore'">已经到底了</view>
 						<u-loadmore bg-color="#f8f8f8" v-if="list.length < total || status == 'loading'" :status="status" class="loadmore" />
 					</scroll-view>
 				</swiper-item>
@@ -169,6 +170,7 @@
 				}
 				this.status = 'loading'
 				queryMyTask(params).then(res => {
+					console.log(res)
 					if(res.status == 200){
 						if(this.pageNo>1){
 							this.list = this.list.concat(res.data.list || [])
@@ -224,10 +226,15 @@
 			},
 			// scroll-view到底部加载更多
 			onreachBottom() {
+				console.log('onreachBottom')
 				if(this.list.length < this.total){
 					this.pageNo += 1
 					this.pageInit()
 				}else{
+					uni.showToast({
+						title: '已经到底了',
+						icon: 'none'
+					});
 					this.status = "nomore"
 				}
 			},

+ 5 - 0
pages/shopTourRecord/shopTourRecord.vue

@@ -46,6 +46,7 @@
 						</u-grid>
 					</view>
 					<u-empty :text="noDataText" style="height: auto;padding-top: 10vh;" img-width="120" v-if="list.length == 0 && status != 'loading'" mode="list"></u-empty>
+					<view class="list-nomore" v-if="status == 'nomore'">已经到底了</view>
 					<view v-if="total > pageSize || status == 'loading'" style="padding:100upx 20upx;"><u-loadmore :status="status" /></view>
 				</scroll-view>
 			</view>
@@ -191,6 +192,10 @@
 					this.pageNo += 1
 					this.pageInit()
 				} else {
+					uni.showToast({
+						title: '已经到底了',
+						icon: 'none'
+					});
 					this.status = 'nomore'
 				}
 			},

+ 5 - 0
pages/spotCheckCenter/spotChecking.vue

@@ -30,6 +30,7 @@
 							</view>
 						</view>
 						<u-empty style="height: auto;padding-top: 10vh;" :text="noDataText" img-width="120" v-if="list.length == 0 && status != 'loading'" mode="list"></u-empty>
+						<view class="list-nomore" v-if="status == 'nomore'">已经到底了</view>
 						<view v-if="index==current" style="padding: 20upx;"><u-loadmore v-if="total > pageSize || status == 'loading'" :status="status" /></view>
 					</scroll-view>
 				</swiper-item>
@@ -129,6 +130,10 @@ export default {
 			if (this.list.length < this.total) {
 				this.pageNo += 1;
 			} else {
+				uni.showToast({
+					title: '已经到底了',
+					icon: 'none'
+				});
 				this.status = 'nomore';
 			}
 		},

+ 1 - 0
pages/spotCheckConfigure/spotCheckList.vue

@@ -18,6 +18,7 @@
 			</view>
 		</view>
 		<u-empty style="padding-top: 10vh;" :text="noDataText" v-if="list.length == 0 && status != 'loading'" mode="list"></u-empty>
+		<view class="list-nomore" v-if="status == 'nomore'">已经到底了</view>
 		<view style="padding: 20upx;" v-if="total > pageSize || status == 'loading'"><u-loadmore :status="status" /></view>
 	</view>
 </template>

+ 5 - 0
pages/toDoList/toDoList.vue

@@ -67,6 +67,7 @@
 								 </view>
 							 </view>
 							 <u-empty style="padding-top: 10vh;height: auto;" :text="noDataText" img-width="120" v-if="list.length==0 && status!='loading'" mode="list"></u-empty>
+							 <view class="list-nomore" v-if="status == 'nomore'">已经到底了</view>
 							 <view v-if="index==current" style="padding: 20upx;">
 								 <u-loadmore v-if="total>pageSize || status=='loading'" :status="status" />
 							 </view>
@@ -223,6 +224,10 @@
 					this.pageNo += 1
 					this.getRow()
 				}else{
+					uni.showToast({
+						title: '已经到底了',
+						icon: 'none'
+					});
 					this.status = "nomore"
 				}
 			},