From 9a583e75f3d4914ec8b4a003ab28bd7265d4b76f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A6=E4=B9=A0=E5=BE=88=E5=B7=AE=E5=95=A6?= <17633066053@163.com> Date: Fri, 17 Mar 2023 20:13:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20:sparkles:=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E8=81=94=E7=B3=BB=E5=AE=A2=E6=9C=8D=EF=BC=8C=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E6=98=BE=E6=90=9C=E7=B4=A2=E5=85=B3=E9=94=AE?= =?UTF-8?q?=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/navigation/search/searchPage.vue | 4 +++- utils/filters.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pages/navigation/search/searchPage.vue b/pages/navigation/search/searchPage.vue index 12c6470..dc1aa94 100644 --- a/pages/navigation/search/searchPage.vue +++ b/pages/navigation/search/searchPage.vue @@ -700,11 +700,13 @@ export default { keyword = (this.hotKeywordList.length && this.hotKeywordList[0]) || ''; } this.defaultKeyword == '请输入搜索商品' ? (keyword = '') : ''; - // this.keyword = keyword; + + keyword ? (this.keyword = keyword) : ''; this.saveKeyword(keyword); //保存为历史 this.isShowSeachGoods = true; this.$refs.mSearch.isShowSeachGoods = true; + this.$refs.mSearch.inputVal = keyword; this.params.keyword = this.keyword; this.params.pageNumber = 1; this.$set(this.sortParams, 'keyword', keyword); diff --git a/utils/filters.js b/utils/filters.js index 2650ed1..0a27eda 100644 --- a/utils/filters.js +++ b/utils/filters.js @@ -365,8 +365,10 @@ export function quiteLoginOut () { */ export function talkIm (storeId, goodsId, id) { if (isLogin('auth')) { + let url = `/pages/mine/im/index?userId=${storeId}` + if(goodsId && id) url = `/pages/mine/im/index?userId=${storeId}&goodsid=${goodsId}&skuid=${id}` uni.navigateTo({ - url: `/pages/mine/im/index?userId=${storeId}&goodsid=${goodsId}&skuid=${id}` + url }); } else {