-
-
+
豆瓣: {{props.data.rate}}
@@ -160,6 +160,11 @@ export default {
set (val) {
this.SET_SHARE(val)
}
+ },
+ filteredRecommandations () {
+ var filteredData = this.recommandations.filter(x => (this.selectedAreas.length === 0) || this.selectedAreas.includes(x.detail.area))
+ filteredData = filteredData.filter(x => (this.selectedTypes.length === 0) || this.selectedTypes.includes(x.detail.type))
+ return filteredData
}
},
watch: {
@@ -169,17 +174,6 @@ export default {
},
methods: {
...mapMutations(['SET_VIEW', 'SET_DETAIL', 'SET_VIDEO', 'SET_SHARE']),
- showCard (cardData) {
- var filteredByAreas = this.selectedAreas.length === 0 || this.selectedAreas.includes(cardData.detail.area)
- var filteredByTypes = this.selectedTypes.length === 0 || this.selectedTypes.includes(cardData.detail.type)
- return filteredByAreas && filteredByTypes
- },
- typeChangeEvent () {
- this.$refs.waterfall.refresh()
- },
- sortByType (a, b) {
- return a.detail.type.localeCompare(b.detail.type)
- },
detailEvent (e) {
this.detail = {
show: true,