From f415ab9bf39437fd783c98db4d63da2123d30622 Mon Sep 17 00:00:00 2001 From: "jqtmviyu@gmail.com" Date: Thu, 25 Feb 2021 23:05:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=A2=84=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E5=95=86=E5=93=81=E8=AF=A6=E6=83=85=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages.json | 11 +++++++++++ src/pages/goods_detail/goods_detail.vue | 13 +++++++++++++ src/pages/goods_list/goods_list.vue | 2 +- 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 src/pages/goods_detail/goods_detail.vue diff --git a/src/pages.json b/src/pages.json index 8142228..35fdf24 100644 --- a/src/pages.json +++ b/src/pages.json @@ -21,6 +21,12 @@ "navigationBarTitleText": "商品列表", "enablePullDownRefresh":true } + }, + { + "path": "pages/goods_detail/goods_detail", + "style": { + "navigationBarTitleText": "商品详情页" + } }, { "path": "pages/cart/cart", @@ -74,6 +80,11 @@ "condition": { "current": 0, "list": [ + { + "name": "商品详情页", + "path": "pages/goods_detail/goods_detail", + "query": "id=33" + }, { "name": "商品列表", "path": "pages/goods_list/goods_list", diff --git a/src/pages/goods_detail/goods_detail.vue b/src/pages/goods_detail/goods_detail.vue new file mode 100644 index 0000000..aa5f40a --- /dev/null +++ b/src/pages/goods_detail/goods_detail.vue @@ -0,0 +1,13 @@ + + + + + \ No newline at end of file diff --git a/src/pages/goods_list/goods_list.vue b/src/pages/goods_list/goods_list.vue index 6c70d01..fe98d67 100644 --- a/src/pages/goods_list/goods_list.vue +++ b/src/pages/goods_list/goods_list.vue @@ -115,7 +115,7 @@ export default { methods: { // 从接口拿数据 async getGoods (){ - const {message} = await this.$u.api.getGoods(Params) + const { message } = await this.$u.api.getGoods(Params) console.log(message) // 追加数据 this.goods = [...this.goods, ...message.goods]