diff --git a/components/tpx-scroll-view/tpx-scroll-view.vue b/components/tpx-scroll-view/tpx-scroll-view.vue index dba7d77..9cdfd9a 100644 --- a/components/tpx-scroll-view/tpx-scroll-view.vue +++ b/components/tpx-scroll-view/tpx-scroll-view.vue @@ -45,6 +45,7 @@ }, data() { return { + reqLoading: false, page: { // 分页参数 pageNum: 1, pageSize: 20, @@ -77,10 +78,12 @@ this.page.pageNum = 1 this.showLoading() } + this.reqLoading = true const res = await this.getListFun({ ...this.page, ...this.searchParam }) + this.reqLoading = false let list = res.rows || [] if (reload) { this.hideLoading() @@ -99,6 +102,7 @@ page: this.page, showLoadMore: this.showLoadMore, loadedAll: this.loadedAll, + reqLoading: this.reqLoading ...obj, }) } diff --git a/pages/address/list.vue b/pages/address/list.vue index 3433c50..d874af1 100644 --- a/pages/address/list.vue +++ b/pages/address/list.vue @@ -147,12 +147,10 @@ this.goBack() break ; - } }, handleEditItem(item={}) { this.goto(`address/edit?id=${item.id}`) - }, async handleDelItem(item) { await this.confirmModal('确认要删除吗?')