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();