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 @@
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+ {{item.goods_name}}
+ ¥{{item.goods_price||99999}}
+
+
+
+
+
+
+
+
+ 销量
+
+
+
+
+ 价格
+
@@ -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