From 12009991f572c2856ce2d89b28fc08579f4f13f7 Mon Sep 17 00:00:00 2001 From: fengachen <373943794@qq.com> Date: Mon, 1 Nov 2021 11:49:29 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90bug=E3=80=91=E5=8F=82=E4=BC=9A?= =?UTF-8?q?=E4=BA=BA=E5=88=97=E8=A1=A8=E4=B8=8E=E6=9F=A5=E8=AF=A2=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/js/http/signUp.js | 6 +++--- pages/personList/personList.js | 15 ++++++++------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/assets/js/http/signUp.js b/assets/js/http/signUp.js index cce77c9..3db0b2d 100644 --- a/assets/js/http/signUp.js +++ b/assets/js/http/signUp.js @@ -10,9 +10,9 @@ const signUpApi = { //添加参会单位无权限接口 addCompanyNoLimit:(params) => http.post(`${URL_CONFIG}company/payCompanyManagement/addMeeting`, params), // 选择联系人接口 - personList:(params) => http.get(`${URL_CONFIG}company/payContactsManagement/queryByCompany`, params), + personList:(params) => http.get(`${URL_CONFIG}company/payContactsManagement/queryWXByCompany`, params), // 选择联系人的接口无权限 - personListNolimit:(params) => http.get(`${URL_CONFIG}/company/payContactsManagement/queryByCompanyMeeting`, params), + personListNolimit:(params) => http.get(`${URL_CONFIG}/company/payContactsManagement/queryWXByCompany`, params), // 添加联系人接口 addPerson: (params) => http.post(`${URL_CONFIG}company/payContactsManagement/add`, params), // 添加联系人接口无权限 @@ -25,4 +25,4 @@ const signUpApi = { validateStandard:(params) => http.get('/meeting/internalMeetingSituation/checkMember',params) } -export default signUpApi \ No newline at end of file +export default signUpApi diff --git a/pages/personList/personList.js b/pages/personList/personList.js index 815ff66..846ff4b 100644 --- a/pages/personList/personList.js +++ b/pages/personList/personList.js @@ -10,8 +10,8 @@ Page({ queryParam: { companyId: '', pageNo: 1, - pageSize: 10, - name: '', + pageSize: 20, + name:'', column:'createTime', order:'desc' }, @@ -107,9 +107,9 @@ Page({ dataSource: [] }) } - if(res.result && res.result.length){ + if(res.result.records && res.result.records.length){ this.setData({ - dataSource: [...this.data.dataSource, ...res.result] + dataSource: [...this.data.dataSource, ...res.result.records] }) } } @@ -129,9 +129,10 @@ Page({ dataSource: [] }) } - if(res.result && res.result.length){ + if(res.result.records && res.result.records.length){ this.setData({ - dataSource: [...this.data.dataSource, ...res.result] + dataSource: [...this.data.dataSource, ...res.result.records + ] }) } } @@ -211,7 +212,7 @@ Page({ * 页面上拉触底事件的处理函数 */ onReachBottom: function () { - this.data.searchParams.pageNo++ + this.data.queryParam.pageNo++ this.loadData() },