From fbf247d1ea4855b6049f5a0ab5a9cb7f4f6fb43b Mon Sep 17 00:00:00 2001
From: wangjw <wangjw@dbc-healthcare.com>
Date: Tue, 28 Apr 2020 10:50:03 +0800
Subject: [PATCH] =?UTF-8?q?=E7=AD=9B=E9=80=89banner=E5=9B=BE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 pages/home/components/slide.vue | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/pages/home/components/slide.vue b/pages/home/components/slide.vue
index 6392e6d..7a72dbc 100755
--- a/pages/home/components/slide.vue
+++ b/pages/home/components/slide.vue
@@ -30,7 +30,15 @@
 			}
 		},
 		mounted() {
+			const goods_type = getCurrentPages()[0]['$route']['query']['goods_type'] || '';
 			const { infinite } = this.slide_setting;
+			const list = [];
+			this.slide_list.map((item, index) => {
+				if((item.goods_type && item.goods_type === goods_type) || !item.goods_type) {
+					list.push(item)
+				}
+			});
+			this.slide_list = list;
 			if(!infinite) {
 				const time = this.interval * this.slide_list.length;
 				setTimeout(() => {
-- 
2.18.1