From 63ac58039e7fb4bcfef465de81098aa146df6e71 Mon Sep 17 00:00:00 2001 From: Double-_-Z <2492419643@qq.com> Date: Fri, 7 Mar 2025 09:59:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=8E=A8=E8=8D=90=E4=BD=9C?= =?UTF-8?q?=E5=93=81=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/mobile_web/home/home.vue | 2 +- pages/pc_web/home/components/second.vue | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/mobile_web/home/home.vue b/pages/mobile_web/home/home.vue index 035be45..8b4753f 100644 --- a/pages/mobile_web/home/home.vue +++ b/pages/mobile_web/home/home.vue @@ -319,7 +319,7 @@ export default { this.siftIndex = this.siftList.findIndex(item=>item.id === e[0].value) || 0; this.recommendForm.current = 1; this.recommendForm.isFinish = false; - this.recommendForm.serviceName = this.siftLabel==='全部'?'':this.siftLabel; + this.recommendForm.serviceId = this.siftLabel==='全部'?'':this.siftList[this.siftIndex].id; this.$refs.uWaterfall.clear(); this.getWorkList(); }, diff --git a/pages/pc_web/home/components/second.vue b/pages/pc_web/home/components/second.vue index b1382b7..b301887 100644 --- a/pages/pc_web/home/components/second.vue +++ b/pages/pc_web/home/components/second.vue @@ -110,7 +110,7 @@ export default { current: 1, size: 20, isFinish: true, - serviceName: '', + serviceId: '', isBackend: 0 }, // 下载加载 @@ -122,7 +122,7 @@ export default { this.scrollViewWidth = this.$refs.scrollView.$el.clientWidth; this.getBanner(); this.getServices(); - this.recommendForm = {current: 1,size: 20,isFinish: false,serviceName: '',isBackend: 0}; + this.recommendForm = {current: 1,size: 20,isFinish: false,serviceId: '',isBackend: 0}; this.getWorkList(); }, methods:{ @@ -168,7 +168,7 @@ export default { // 筛选 sift(item, index){ this.siftIndex = index; - this.recommendForm.serviceName = item.name === '全部' ? '' : item.name; + this.recommendForm.serviceId = item.id === -1 ? '' : item.id; this.recommendForm.current = 1; this.recommendForm.isFinish = false; this.getWorkList();