diff --git a/pagesB/Serviceevaluation/Serviceevaluation.vue b/pagesB/Serviceevaluation/Serviceevaluation.vue index 8dfe62d..9f9a4a0 100644 --- a/pagesB/Serviceevaluation/Serviceevaluation.vue +++ b/pagesB/Serviceevaluation/Serviceevaluation.vue @@ -105,7 +105,7 @@ parentId: '', orderStatus: 'NOT_EVALUATED', //状态 evaluatedata: {}, //列表 - total: '', + total: 0, cardNo: '', //身份证号 region: '', //地区 pageNum: 1, @@ -160,8 +160,8 @@ .pageSize).then(res => { if (res.rows) { res.rows.forEach(e => { - // e.leadThumbnailUrl = baseurl + e.leadThumbnailUrl this.evaluatedata.push(e) + this.total = res.total }) } @@ -303,10 +303,7 @@ getAppletOrderList(this.parentId, this.orderStatus, this.cardNo, this.region, this.pageNum, this .pageSize).then(res => { this.evaluatedata = res.rows - console.log(this.evaluatedata, '000') this.total = res.total - console.log(this.total, '10') - // console.log(this.baseurl+this.evaluatedata[0].pictureUrl,'000') }) diff --git a/pagesB/myevaluation/myevaluation.vue b/pagesB/myevaluation/myevaluation.vue index 829d3d8..44d3206 100644 --- a/pagesB/myevaluation/myevaluation.vue +++ b/pagesB/myevaluation/myevaluation.vue @@ -49,10 +49,11 @@ baseurl: '', cardNo: '', //身份证号 region: '', //地区 - getPageNum:1, - getPageSize:20, + pageNum:1, + pageSize:20, userinfo:{}, rateval: '', //评价星棵树 + total: 0, } }, onShow() { @@ -67,7 +68,6 @@ }, onReachBottom() { //下滑加载 - if (this.evaluatedata.length >= this.total) { } else { @@ -76,9 +76,9 @@ .pageSize).then(res => { if (res.rows) { res.rows.forEach(e => { - // e.leadThumbnailUrl = baseurl + e.leadThumbnailUrl this.evaluatedata.push(e) }) + this.total = res.total } @@ -90,8 +90,9 @@ methods: { // 列表 getlist() { - getAppletOrderList(this.parentId, this.orderStatus, this.cardNo, this.region,this.getPageNum,this.getPageSize).then(res => { + getAppletOrderList(this.parentId, this.orderStatus, this.cardNo, this.region,this.pageNum,this.pageSize).then(res => { this.evaluatedata=res.rows + this.total = res.total // console.log(this.evaluatedata.length) })