Commit fbf247d1 authored by 王建威's avatar 王建威

筛选banner图

parent 51c19947
......@@ -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(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment