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]