diff --git a/App.vue b/App.vue index 7dbcdf0..97a42d8 100644 --- a/App.vue +++ b/App.vue @@ -107,6 +107,27 @@ .text-36{ font-size:36rpx; } +.text-bold{ + font-weight:bold; +} +.line-h{ + line-height:1.2 +} +.mr-32{ + margin-right:32rpx; +} +.text-overflow1 { + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + -webkit-line-clamp: 2; + line-clamp: 2; + -webkit-box-orient: vertical; +} +.text-d{ + text-decoration: line-through; +} + button { margin-bottom: 15px; } diff --git a/pages.json b/pages.json index 1e152c2..319b911 100644 --- a/pages.json +++ b/pages.json @@ -46,7 +46,12 @@ "navigationStyle": "custom" } }, - + { + "path": "pages/shop/search", + "style": { + "navigationStyle": "custom" + } + }, { "path": "pages/LuckyWheel/LuckyWheel", "style": { diff --git a/pages/home/home.vue b/pages/home/home.vue index dc62bfa..9b778f1 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -424,7 +424,7 @@ export default { }, jumpSearch() { uni.navigateTo({ - url: '/pages/other_package/search/search', + url: '/pages/shop/search', }) }, /** diff --git a/pages/other_package/search/search.vue b/pages/other_package/search/search.vue index 3d920fc..db8bb8a 100644 --- a/pages/other_package/search/search.vue +++ b/pages/other_package/search/search.vue @@ -25,7 +25,7 @@ - + - + 综合 销量 diff --git a/pages/shop/components/shop-item.vue b/pages/shop/components/shop-item.vue new file mode 100644 index 0000000..5c5a98c --- /dev/null +++ b/pages/shop/components/shop-item.vue @@ -0,0 +1,66 @@ + + + + + diff --git a/pages/shop/search.vue b/pages/shop/search.vue new file mode 100644 index 0000000..94668a3 --- /dev/null +++ b/pages/shop/search.vue @@ -0,0 +1,231 @@ + + + + + diff --git a/pages/sort/sort.vue b/pages/sort/sort.vue index cbf85ec..bd64e07 100644 --- a/pages/sort/sort.vue +++ b/pages/sort/sort.vue @@ -128,12 +128,9 @@ export default { } }, jumpSearch(item) { - let path = "/pages/other_package/search/search"; - if (item && Object.keys(item).length !== 0) { - path = path + "?keyword=" + item.name; - } + uni.navigateTo({ - url: path, + url: '/pages/shop/search', }) }, // 查询分类