From 57d59081d35cff748e602df20543712036fee7f8 Mon Sep 17 00:00:00 2001 From: caichunsheng Date: Wed, 24 Aug 2022 15:00:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=A7=84=E6=A0=BC=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/info/hotelProductInfo/index.wxml | 3 +-- pages/info/postProductInfo/index.wxml | 2 +- pages/info/sceneProductInfo/index.wxml | 2 +- pages/list/comments/index.js | 13 +++++++------ pages/list/comments/index.wxml | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/pages/info/hotelProductInfo/index.wxml b/pages/info/hotelProductInfo/index.wxml index 0090c6d..92fe16a 100644 --- a/pages/info/hotelProductInfo/index.wxml +++ b/pages/info/hotelProductInfo/index.wxml @@ -122,8 +122,7 @@ - {{item.sku_name}} - + {{item.sku_name}} 查看全部点评 diff --git a/pages/info/postProductInfo/index.wxml b/pages/info/postProductInfo/index.wxml index 5a21294..7d06781 100644 --- a/pages/info/postProductInfo/index.wxml +++ b/pages/info/postProductInfo/index.wxml @@ -84,7 +84,7 @@ - {{item.sku_name}} + {{item.sku_name}} 查看全部点评 diff --git a/pages/info/sceneProductInfo/index.wxml b/pages/info/sceneProductInfo/index.wxml index 0d5438e..4ff2b60 100644 --- a/pages/info/sceneProductInfo/index.wxml +++ b/pages/info/sceneProductInfo/index.wxml @@ -175,7 +175,7 @@ - {{item.sku_name}} + {{item.sku_name}} 查看全部点评 diff --git a/pages/list/comments/index.js b/pages/list/comments/index.js index d93a608..9a8cced 100644 --- a/pages/list/comments/index.js +++ b/pages/list/comments/index.js @@ -44,11 +44,11 @@ Page({ } commonApi._post(service,data).then(res=>{ console.log(res) - this.setData({ - total:res.data.total, - list:list.concat(res.data.list) - }) - let arr = this.data.list + // this.setData({ + // total:res.data.total, + // list:list.concat(res.data.list) + // }) + let arr = res.data.list arr.map((item)=>{ item.rate = Number(item.rate) item.create_time = item.create_time.substring(0,10) @@ -64,7 +64,8 @@ Page({ }) }else{ this.setData({ - list:arr + total:res.data.total, + list:list.concat(arr) }) } diff --git a/pages/list/comments/index.wxml b/pages/list/comments/index.wxml index 23c31fb..2df031d 100644 --- a/pages/list/comments/index.wxml +++ b/pages/list/comments/index.wxml @@ -11,7 +11,7 @@ - {{item.sku_name}} + {{item.sku_name}}