From 396e7959434880abc297ee0eb55f57085e49a79f Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Wed, 8 Jul 2020 08:43:39 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pageB/search/index.vue | 16 +++++++++++++++- pageB/search/out.vue | 9 +++++++-- pages/shop/index.vue | 10 +++++++++- 3 files changed, 31 insertions(+), 4 deletions(-) diff --git a/pageB/search/index.vue b/pageB/search/index.vue index c781c58..d5ce68b 100644 --- a/pageB/search/index.vue +++ b/pageB/search/index.vue @@ -6,7 +6,9 @@ 'font-size':'32rpx', 'color':'#FF780F', 'overflow':'unset' - }"> + }" + @search="search" + > 搜索发现 @@ -23,6 +25,18 @@ export default { return{ keyword:"" } + }, + methods:{ + search(value){ + // console.log(value) + this.$u.route({ + url:"/pageB/search/out", + params:{ + value, + type:"shop" + } + }) + } } } diff --git a/pageB/search/out.vue b/pageB/search/out.vue index a161faf..26d0aeb 100644 --- a/pageB/search/out.vue +++ b/pageB/search/out.vue @@ -4,7 +4,8 @@ - + + @@ -81,7 +82,8 @@ export default { ], current: 0, swiperCurrent: 0, - keyword:"" + keyword:"", + type:"" } }, methods: { tabsChange(index) { @@ -97,6 +99,9 @@ export default { this.swiperCurrent = current; this.current = current; } + }, + onLoad(o){ + this.type = o.type } } \ No newline at end of file diff --git a/pages/shop/index.vue b/pages/shop/index.vue index 15447f0..7445999 100644 --- a/pages/shop/index.vue +++ b/pages/shop/index.vue @@ -6,7 +6,9 @@ {{ area }} - + + + @@ -91,6 +93,12 @@ export default { this.getGoodsRecommend(); }, methods: { + sousuo(){ + // console.log(123) + this.$u.route({ + url:"pageB/search/index" + }) + }, getShopTopList() { this.$u.api.getShopTopList().then((res)=>{ if (res.errCode == 0) { From 5f080a3c9d359eb0234c6983d527f95d5ee5900c Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Fri, 10 Jul 2020 15:58:03 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pageB/search/out.vue | 62 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 60 insertions(+), 2 deletions(-) diff --git a/pageB/search/out.vue b/pageB/search/out.vue index 26d0aeb..f50b8ca 100644 --- a/pageB/search/out.vue +++ b/pageB/search/out.vue @@ -5,8 +5,7 @@ - - + @@ -26,6 +25,18 @@ + + 销量 + + 价格 + + + + + + 好评 + + \ No newline at end of file