From d24817bd03c897958217da682281a94c4084d81e Mon Sep 17 00:00:00 2001 From: yvan.ni <765199919@qq.com> Date: Mon, 23 Sep 2019 16:33:36 +0800 Subject: [PATCH] 添加评价,和 评价列表 --- pages/user/add_comment/add_comment.wxml | 4 ++-- pages/user/collect_list/collect_list.js | 82 ++++++++++++++++++++++++++++++++++++++-------------------------------------------- pages/user/collect_list/collect_list.json | 3 ++- pages/user/collect_list/collect_list.wxml | 104 +++++++++++++++----------------------------------------------------------------------------------------- 4 files changed, 57 insertions(+), 136 deletions(-) diff --git a/pages/user/add_comment/add_comment.wxml b/pages/user/add_comment/add_comment.wxml index 083ac03..50641e7 100644 --- a/pages/user/add_comment/add_comment.wxml +++ b/pages/user/add_comment/add_comment.wxml @@ -86,7 +86,7 @@ - + @@ -95,7 +95,7 @@ - + 添加图片 {{imgs.length>0?imgs.length:0}}/3 diff --git a/pages/user/collect_list/collect_list.js b/pages/user/collect_list/collect_list.js index 4e5ec32..61b7b0f 100644 --- a/pages/user/collect_list/collect_list.js +++ b/pages/user/collect_list/collect_list.js @@ -17,15 +17,15 @@ Page({ collects: null, currentPage: 1, curpage: 1, - collects_Recommend: [], + ismore: 0, iscollects: 0, - loadName: null, + editEd: 0, //商品编辑按钮是否点击 isall: false, //是否全选 sum: 0, total_collects:0, - total_goods:0, + is_goods:0, pageSize:8,//分页数量 }, onLoad: function() { @@ -34,31 +34,34 @@ Page({ // this.requestList(); }, requestCollectList: function() { - isShowLoading: 0; var th = this; e = "/api/weshop/goodscollect/list?" + "pageSize=" + th.data.pageSize +"&user_id=" + app_d.user_id + "&store_id=" + oo.stoid + "&page=" + th.data.currentPage; o.request(e, function(e) { th.data.currentPage++; - - if(th.data.total_collects) + if(th.data.total_collects==0){ th.setData({ iscollects: 1, total_collects:e.data.data.total}) - - if (th.data.total_collects - 共{{collects.length}}件商品 + 共{{total_collects}}件商品 {{editEd?'完成':'编辑'}} @@ -49,7 +49,7 @@ - + @@ -75,10 +75,10 @@ - + 找相似 - + @@ -89,95 +89,23 @@ - - - - - - - - - + + + + + 好物推荐 - - - - - - - - - - - - - {{item.goods_name}} - - - - - - {{item.shop_price}} - - - - - {{item.market_price}} - - - - - - - - - {{loadName}} - - - - - - 没有更多内容了 - - - - - - - + + + + - - + @@ -195,8 +123,6 @@ 删除 - - - \ No newline at end of file + -- libgit2 0.21.4