From 626e747049f02dc986134b284f1104fb8ebe87cf Mon Sep 17 00:00:00 2001 From: modendeveloper Date: Wed, 22 Jan 2025 01:15:10 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A3114=20=E3=80=90=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91=E9=A6=96=E9=A1=B5=E5=8F=8A?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E9=A1=B5=E9=9D=A2=E6=90=9C=E7=B4=A2=E6=A1=86?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=98=BE=E7=A4=BA=E6=B5=AE=E5=8A=A8=E8=AF=8D?= =?UTF-8?q?=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/index.vue | 22 ++++++- pages/shop/GoodSearch/index.vue | 64 ++++++++++++++++--- .../u-column-notice/u-column-notice.vue | 1 + .../components/u-notice-bar/u-notice-bar.vue | 4 ++ 4 files changed, 79 insertions(+), 12 deletions(-) diff --git a/pages/home/index.vue b/pages/home/index.vue index 885b961..e83a2c7 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -20,6 +20,9 @@ :src="webUrl + '/home/icon-search2.png'" class="icon" /> + + + @@ -354,6 +357,9 @@ import ProductWindow from '@/components/ProductWindow' import goCartMixin from '@/mixins/goCartMixins' import FunctionGuide from '@/components/FunctionGuide' import GuideMixins from '@/mixins/GuideMixins' +import { + getSearchPageConfig +} from '@/api/search' import { getCurAddress, getLocationPromise, @@ -409,7 +415,8 @@ export default { videoContext: null, isPlay: true, tabIconPostion: {}, - messageIcon: {} + messageIcon: {}, + recommendKeyword: [] } }, onLoad() { @@ -417,6 +424,7 @@ export default { const _this = this _this.init() _this.queryGuide('index') + this.getSearch() uni.getSystemInfo({ success: (e) => { let statusBar = 0 @@ -444,7 +452,14 @@ export default { this.scrollTop = e.scrollTop }, methods: { - + getSearch() { + getSearchPageConfig().then(res => { + const { success, data } = res + if (success) { + this.recommendKeyword = data.recommendKeyword.split(',') + } + }) + }, elementData(e) { this.tabIconPostion = e }, @@ -1707,6 +1722,9 @@ export default { } } } +.swpier-bar{ + width: 100%; +} .fix-header { position: fixed; top: 0; diff --git a/pages/shop/GoodSearch/index.vue b/pages/shop/GoodSearch/index.vue index 4f523c3..11062ae 100644 --- a/pages/shop/GoodSearch/index.vue +++ b/pages/shop/GoodSearch/index.vue @@ -5,15 +5,22 @@ - + 搜索 + + + +