diff --git a/src/pages.json b/src/pages.json index 1df116c..a6c0cbe 100644 --- a/src/pages.json +++ b/src/pages.json @@ -3,6 +3,12 @@ "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue" }, "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages + { + "path": "pages/index/index", + "style": { + "navigationBarTitleText": "首页" + } + }, { "path": "pages/category/category", "style": { @@ -15,13 +21,6 @@ "navigationBarTitleText": "商品列表" } }, - { - "path": "pages/index/index", - "style": { - "navigationBarTitleText": "首页" - } - }, - { "path": "pages/cart/cart", "style": { @@ -70,5 +69,15 @@ "selectedIconPath": "static/icons/user-o.png", "text": "我的" }] - } + }, + "condition": { + "current": 0, + "list": [ + { + "name": "商品列表", + "path": "pages/goods_list/goods_list", + "query": "id=33" + } + ] + } }