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}}