From f9fa80665bab76df0da2b5a1423e4cf5c29192e5 Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Tue, 11 Aug 2020 16:03:12 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=BB=98=E8=AE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pageB/search/index.vue | 6 ++++-- pageB/search/searchGoods.vue | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pageB/search/index.vue b/pageB/search/index.vue index 816dc2e..c9fadb9 100644 --- a/pageB/search/index.vue +++ b/pageB/search/index.vue @@ -21,7 +21,8 @@ export default { // type: 2 商品 1: 其他 onLoad(option) { this.type = option.type; - this.getWordList(); + this.getWordList(); + this.curent = option.curent || 0 }, // 点击搜索按钮 onNavigationBarButtonTap(e) { @@ -51,7 +52,8 @@ export default { } let params = { value: value, - type: this.type, + type: this.type, + curent:this.curent } if(this.type == 2) { this.$u.route({ diff --git a/pageB/search/searchGoods.vue b/pageB/search/searchGoods.vue index f61b3fe..b20a417 100644 --- a/pageB/search/searchGoods.vue +++ b/pageB/search/searchGoods.vue @@ -54,6 +54,8 @@ export default { this.value = option.value this.setViewHeight(); this.ShopSearch() + this.setNavSearchInput(this.value); + }, onNavigationBarSearchInputConfirmed(value) { this.value = value.text @@ -95,7 +97,6 @@ export default { // 排序方式 goods_salenum:销量 evaluation_count:评价 goods_price_asc:价格从低到高 goods_price_desc:价格从高到低 async ShopSearch({ load = 'reload' } = {}) { console.log(this.value); - this.setNavSearchInput(this.value); const sort = this.setOrderSort(); const res = await this.$u.api.ShopSearch({ keyword: this.value, -- 2.45.2 From 0e7139bc16195c17c4ccf403f9f0fc16d92292cb Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Tue, 11 Aug 2020 18:27:19 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=BA=A2=E7=82=B9=20=E8=BF=99=E6=89=BE?= =?UTF-8?q?=E6=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/api/user.js | 4 ++-- pageB/coupon/index.vue | 5 +++- pageB/follow/index.vue | 2 +- pageB/search/out.vue | 2 ++ pageD/attention/attention.vue | 44 ++++++++++++++++++++++++++++++----- pages/index/index.vue | 1 + 6 files changed, 48 insertions(+), 10 deletions(-) diff --git a/common/api/user.js b/common/api/user.js index 46e4557..899a148 100644 --- a/common/api/user.js +++ b/common/api/user.js @@ -304,8 +304,8 @@ export default { return vm.$u.post('Message/informationList', { }); }, // 关注列表 - snsfriendList({ }) { - return vm.$u.post('message/snsfriendList', { }); + snsfriendList({page}) { + return vm.$u.post('message/snsfriendList', {page}); }, // 关注达人 attentionMember({ member_id }) { diff --git a/pageB/coupon/index.vue b/pageB/coupon/index.vue index fa92d6a..224ecae 100644 --- a/pageB/coupon/index.vue +++ b/pageB/coupon/index.vue @@ -46,7 +46,10 @@ } -