浏览代码

修改bug

chenrui 2 年之前
父节点
当前提交
b121940fd1
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      pages/sales/customerList.vue

+ 5 - 0
pages/sales/customerList.vue

@@ -75,6 +75,10 @@ export default {
 			}
 			let params = Object.assign(this.params, { pageNo: this.pageNo, pageSize: this.pageSize });
 			this.status = 'loading';
+			uni.showLoading({
+				title:'加载中',
+				mask:true
+			})
 			queryCustomerPage(params).then(res => {
 				if (res.status == 200) {
 					if (this.pageNo > 1) {
@@ -94,6 +98,7 @@ export default {
 					this.totalNum = 0
 					this.noDataText = res.message ? res.message : '网络似乎出错了,请稍后再试'
 				}
+				uni.hideLoading();
 				this.noDataText = '暂无客户'
 				this.scrollTop = 0;
 			});