diff --git a/src/components/Vant/index.js b/src/components/Vant/index.js index 39028ab..80dfc3e 100644 --- a/src/components/Vant/index.js +++ b/src/components/Vant/index.js @@ -55,7 +55,8 @@ import { Tabs, Row, Col, - Popup + Popup, + Switch } from 'vant' Vue.use(Toast) @@ -113,3 +114,5 @@ Vue.use(Toast) .use(Row) .use(Col) .use(Popup) + .use(Switch) + diff --git a/src/views/search/modules/FilterBar.vue b/src/views/search/modules/FilterBar.vue index c54b86d..04dd972 100644 --- a/src/views/search/modules/FilterBar.vue +++ b/src/views/search/modules/FilterBar.vue @@ -1,6 +1,6 @@ @@ -24,10 +34,13 @@ export default { data() { return { value1: '', + switch1: false, + switch2: false, option1: [ - { text: '综合', value: '' }, - { text: '新品上架', value: 'isNew' }, - { text: '人气推荐', value: 'isHot' } + { text: '综合推荐', value: '' }, + { text: '评论数高低', value: 'commentSort' } + // { text: '新品上架', value: 'isNew' }, + // { text: '人气推荐', value: 'isHot' } ], faDefault: ['fas', 'sort'], faSort: ['fas', 'sort'], @@ -58,6 +71,9 @@ export default { }, chageSales() { this.$emit('changeGoods', { search: 'isSales' }) + }, + onConfirm() { + } }