diff --git a/pages.json b/pages.json index 21ea691..ddc6fba 100644 --- a/pages.json +++ b/pages.json @@ -1,6 +1,12 @@ { "pages" : [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages + { + "path" : "pages/home/home", + "style" : { + "navigationBarTitleText" : "钢材信息-首页" + } + }, { "path" : "pages/index/index", "style" : { @@ -16,7 +22,13 @@ { "path" : "pages/search/search", "style" : { - "navigationBarTitleText" : "钢材信息-搜索" + "navigationBarTitleText" : "钢材信息-搜索" + } + }, + { + "path" : "pages/details/details", + "style" : { + "navigationBarTitleText" : "钢材信息-钢材详情" } } ], @@ -39,16 +51,22 @@ "backgroundColor" : "#fff", "list" : [ { - "pagePath" : "pages/index/index", - "iconPath" : "static/search.png", - "selectedIconPath" : "static/search-active.png", - "text" : "搜索" + "pagePath" : "pages/home/home", + "iconPath" : "static/home.png", + "selectedIconPath" : "static/home-active.png", + "text" : "首页" }, { "pagePath" : "pages/iron/iron", "iconPath" : "static/iron.png", "selectedIconPath" : "static/iron-active.png", "text" : "钢材" + }, + { + "pagePath" : "pages/index/index", + "iconPath" : "static/search.png", + "selectedIconPath" : "static/search-active.png", + "text" : "搜索" } ] } diff --git a/pages/details/details.vue b/pages/details/details.vue new file mode 100644 index 0000000..307e0cd --- /dev/null +++ b/pages/details/details.vue @@ -0,0 +1,236 @@ + + + + + diff --git a/pages/home/home.vue b/pages/home/home.vue new file mode 100644 index 0000000..ed1ee4e --- /dev/null +++ b/pages/home/home.vue @@ -0,0 +1,194 @@ + + + + + diff --git a/pages/index/index.vue b/pages/index/index.vue index 4d8afb0..5305c77 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -8,7 +8,7 @@ - + {{ironObj.name}} diff --git a/pages/search/search.vue b/pages/search/search.vue index 23f8611..e1312ed 100644 --- a/pages/search/search.vue +++ b/pages/search/search.vue @@ -3,7 +3,7 @@ - + @@ -44,6 +44,7 @@ export default { }, methods: { searchIron() { + console.log(this.ironName) this.goToDetails(this.ironName) }, getIronData() {