From 57477bc85fae051c9bc71cd7328ef163602fdb60 Mon Sep 17 00:00:00 2001 From: tianyi <13521030702@163.com> Date: Sat, 9 May 2026 14:23:47 +0800 Subject: [PATCH] 1 --- package1/group/shopEvaluate.vue | 141 +++++++++++++++++--------------- 1 file changed, 73 insertions(+), 68 deletions(-) diff --git a/package1/group/shopEvaluate.vue b/package1/group/shopEvaluate.vue index 8050405..9342f51 100644 --- a/package1/group/shopEvaluate.vue +++ b/package1/group/shopEvaluate.vue @@ -34,83 +34,86 @@ - - - - - - - - {{item.createByName}} + + + + + - - {{item.createTime | formatTime}} - - - - - - 商品 - - - - - - {{item.remark}} - - - - - - - - - - {{item1.createByName}} : {{ item1.remark }} - + + + {{item.createByName}} - - 展开 - 收起 + + {{item.createTime | formatTime}} - - - 回复 + + + 商品 + + + - - - - + + {{item.remark}} + + + + + + + + + + {{item1.createByName}} : {{ item1.remark }} + + + + 展开 + 收起 - - - + + + + + 回复 + + + + + - - - + + + + + + + + - - - - - 确认 - - - 取消 + + + + 确认 + + + 取消 + - + + @@ -133,7 +136,6 @@ isPintuan: true, bigImg: '', shopItem:{}, - pageNum:1, searchAll:true, total:0, shopComments:[], @@ -209,7 +211,7 @@ this.searchForm.shopId = id that.tui.request("/app/comment/getCommentList", "POST", this.searchForm, false, false).then((res) => { if (res.code == 200) { - if (that.pageNum == 1) { + if (that.searchForm.pageNum == 1) { that.shopComments = res.result.records } else { that.shopComments = [...that.shopComments, ...res.result.records] @@ -222,6 +224,7 @@ } } } + that.total = res.result.pages; // pages = 总页数 that.$forceUpdate() if(this.searchAll){ that.menuList[0].num = res.result.total @@ -233,6 +236,12 @@ uni.hideLoading() }).catch((res) => {}) }, + onReachPage(){ + console.log("11111") + if (this.searchForm.pageNum >= this.total) return; + this.searchForm.pageNum++; + this.getshopComments(); + }, submit(v){ let that = this; let data = [{ //店铺 @@ -443,7 +452,7 @@ } .menu-list { - height: 100rpx; + height: 120rpx; width: 100%; display: flex; overflow-y: hidden; @@ -468,10 +477,6 @@ flex: 1; } - .evaluate-list { - margin-top: 40rpx; - } - .eval-title { width: 100%; height: 80rpx;