|
@@ -56,7 +56,7 @@ import Taro from "@tarojs/taro";
|
|
import { Popup } from 'vant'
|
|
import { Popup } from 'vant'
|
|
import AdSwiperList from '@/components/common/AdSwiperList'
|
|
import AdSwiperList from '@/components/common/AdSwiperList'
|
|
import adSingle from '@/components/common/Ad'
|
|
import adSingle from '@/components/common/Ad'
|
|
-import { mapState, mapGetters, mapMutations} from "vuex";
|
|
|
|
|
|
+import {mapState, mapGetters, mapMutations, mapActions} from "vuex";
|
|
import TopSearch from "@/components/search/TopSearch.vue";
|
|
import TopSearch from "@/components/search/TopSearch.vue";
|
|
import SearchResultList from '@/components/search/result/list'
|
|
import SearchResultList from '@/components/search/result/list'
|
|
import SearchResultCell from '@/components/search/result/list-item'
|
|
import SearchResultCell from '@/components/search/result/list-item'
|
|
@@ -113,7 +113,7 @@ export default {
|
|
this.initSearchReqConf()
|
|
this.initSearchReqConf()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- ...mapMutations('tabbar', ['doSwitchTab']),
|
|
|
|
|
|
+ ...mapActions('tabbar', ['doSwitchTab']),
|
|
...mapMutations('user', ['setArea', 'setAddressReload']),
|
|
...mapMutations('user', ['setArea', 'setAddressReload']),
|
|
initSearchReqConf() {
|
|
initSearchReqConf() {
|
|
const r = useDifferentSearchTypeList({ type: this.searchConf.searchType })
|
|
const r = useDifferentSearchTypeList({ type: this.searchConf.searchType })
|
|
@@ -152,9 +152,6 @@ export default {
|
|
},
|
|
},
|
|
goSearch () {
|
|
goSearch () {
|
|
this.doSwitchTab('search')
|
|
this.doSwitchTab('search')
|
|
- Taro.switchTab({
|
|
|
|
- url: '/pages/tabbar/search/index'
|
|
|
|
- })
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|