From 5b0c2a6ff2df38027f5dbd00b255d84505924cd0 Mon Sep 17 00:00:00 2001 From: "jqtmviyu@gmail.com" Date: Thu, 25 Feb 2021 21:07:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=BC=E5=90=88=E5=AD=90=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=B8=B2=E6=9F=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/goods_list/goods_list.vue | 87 +++++++++++++++++++++++++++-- 1 file changed, 81 insertions(+), 6 deletions(-) diff --git a/src/pages/goods_list/goods_list.vue b/src/pages/goods_list/goods_list.vue index 3826d8b..bc98454 100644 --- a/src/pages/goods_list/goods_list.vue +++ b/src/pages/goods_list/goods_list.vue @@ -1,13 +1,41 @@ @@ -17,16 +45,18 @@ export default { return{ tabs: [ { - name: "待收货", + name: "综合", }, { - name: "待付款", + name: "销量", }, { - name: "待评价", + name: "价格", }, ], tabsCurrent: 0, + // 商品列表 + goods: [] } }, @@ -35,10 +65,13 @@ export default { const params = { // 关键字 query: "", + // 分类id cid: id, + // 页码 pagenum: 1, + // 页容量 一页有几条数据 pagesize: 10 } @@ -46,6 +79,7 @@ export default { // 从接口拿数据 const {message} = await this.$u.api.getGoods(params) console.log(message) + this.goods = message.goods }, methods: { @@ -56,6 +90,47 @@ export default { } - \ No newline at end of file