...
|
...
|
@@ -35,7 +35,7 @@ |
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
import {createNamespacedHelpers} from 'vuex';
|
|
|
import {mapState, createNamespacedHelpers} from 'vuex';
|
|
|
|
|
|
const {mapActions} = createNamespacedHelpers('list');
|
|
|
|
...
|
...
|
@@ -67,6 +67,9 @@ export default { |
|
|
activated() {
|
|
|
let params = this.$route.query;
|
|
|
|
|
|
if (this.yoho.direction === 'forword') {
|
|
|
Object.assign(this.$data, this.$options.data());
|
|
|
}
|
|
|
if (Object.keys(params).length && params.listType) {
|
|
|
this.listType = params.listType;
|
|
|
delete params.listType;
|
...
|
...
|
@@ -79,6 +82,11 @@ export default { |
|
|
!params.order && (params.order = 'sale_desc');
|
|
|
this.fetchData(params);
|
|
|
},
|
|
|
|
|
|
computed: {
|
|
|
...mapState(['yoho'])
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
...mapActions(['fetchFilterData']),
|
|
|
clear() {
|
...
|
...
|
@@ -215,7 +223,7 @@ export default { |
|
|
justify-content: space-between;
|
|
|
|
|
|
.cancel {
|
|
|
font-size: 38px;
|
|
|
font-size: 36px;
|
|
|
color: #888;
|
|
|
}
|
|
|
}
|
...
|
...
|
|