调整推荐作品筛选
This commit is contained in:
parent
054fc0743a
commit
63ac58039e
@ -319,7 +319,7 @@ export default {
|
|||||||
this.siftIndex = this.siftList.findIndex(item=>item.id === e[0].value) || 0;
|
this.siftIndex = this.siftList.findIndex(item=>item.id === e[0].value) || 0;
|
||||||
this.recommendForm.current = 1;
|
this.recommendForm.current = 1;
|
||||||
this.recommendForm.isFinish = false;
|
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.$refs.uWaterfall.clear();
|
||||||
this.getWorkList();
|
this.getWorkList();
|
||||||
},
|
},
|
||||||
|
@ -110,7 +110,7 @@ export default {
|
|||||||
current: 1,
|
current: 1,
|
||||||
size: 20,
|
size: 20,
|
||||||
isFinish: true,
|
isFinish: true,
|
||||||
serviceName: '',
|
serviceId: '',
|
||||||
isBackend: 0
|
isBackend: 0
|
||||||
},
|
},
|
||||||
// 下载加载
|
// 下载加载
|
||||||
@ -122,7 +122,7 @@ export default {
|
|||||||
this.scrollViewWidth = this.$refs.scrollView.$el.clientWidth;
|
this.scrollViewWidth = this.$refs.scrollView.$el.clientWidth;
|
||||||
this.getBanner();
|
this.getBanner();
|
||||||
this.getServices();
|
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();
|
this.getWorkList();
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
@ -168,7 +168,7 @@ export default {
|
|||||||
// 筛选
|
// 筛选
|
||||||
sift(item, index){
|
sift(item, index){
|
||||||
this.siftIndex = 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.current = 1;
|
||||||
this.recommendForm.isFinish = false;
|
this.recommendForm.isFinish = false;
|
||||||
this.getWorkList();
|
this.getWorkList();
|
||||||
|
Loading…
Reference in New Issue
Block a user