diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json index 4ccd172..9b0d791 100644 --- a/.hbuilderx/launch.json +++ b/.hbuilderx/launch.json @@ -13,7 +13,7 @@ "type" : "uniCloud" }, { - "playground" : "custom", + "playground" : "standard", "type" : "uni-app:app-android" } ] diff --git a/pages/realName/index/pages/personList.vue b/pages/realName/index/pages/personList.vue index ecb2150..eeb6472 100644 --- a/pages/realName/index/pages/personList.vue +++ b/pages/realName/index/pages/personList.vue @@ -458,9 +458,8 @@ export default { }, methods: { scrolltolower() { - this.queryParams.limit = 10 //判断 如果页码*页容量大于等于总条数,提示该页数据加载完毕 - if (this.queryParams.page * this.queryParams.limit >= this.recordsTotal) { + if (this.queryParams.limit >= this.recordsTotal) { uni.$u.toast('数据加载完毕') return } @@ -468,14 +467,16 @@ export default { //页码+1,调用获取数据的方法获取第二页数据 if (this.queryParams.page == 0) { this.queryParams.offset = 0 + this.queryParams.limit = 10 } else { - this.queryParams.offset = this.queryParams.page * this.queryParams.limit + this.queryParams.limit = this.queryParams.page * 10 } //此处调用自己获取数据列表的方法 this.getListData() }, searchList() { this.queryParams.page = 0 + this.queryParams.limit = 10 this.companyInfoList = [] this.getListData() }, @@ -505,11 +506,11 @@ export default { success: res => { console.log('res****', res) if (res.data.data?.length > 0) { - if (this.queryParams.offset == 0) { + // if (this.queryParams.offset == 0) { this.companyInfoList = res.data.data - } else { - this.companyInfoList = [...this.companyInfoList, ...res.data.data] - } + // } else { + // this.companyInfoList = [...this.companyInfoList, ...res.data.data] + // } this.recordsTotal = res.data.recordsTotal } this.isLoading = false @@ -606,6 +607,7 @@ export default { /* 查询 */ onQuery() { this.queryParams.page = 0 + this.queryParams.limit = 10 this.companyInfoList = [] this.getListData().then(() => { this.$refs.popup.close() diff --git a/pages/realName/index/pages/project.vue b/pages/realName/index/pages/project.vue index c7e8483..2e0fb23 100644 --- a/pages/realName/index/pages/project.vue +++ b/pages/realName/index/pages/project.vue @@ -265,7 +265,7 @@ export default { const proType = JSON.parse(option.proType) const { currentIndex, name } = proType this.activeIndex4 = currentIndex + 1 - this.queryParams.params.proType = this.proTypeList[currentIndex + 1].id + this.queryParams.params.proType = name this.getListData() } else if (option.survey) { // 获取工程概况