Commit 06f580d2 authored by 吴春's avatar 吴春

1

parent c997b6dc
...@@ -328,7 +328,7 @@ export default { ...@@ -328,7 +328,7 @@ export default {
created() { created() {
}, },
mounted() { mounted() {
this.isSearch = this.$router.history.current.path === "/search"; this.isSearch = this.$router.history.current.path === "/search"||this.$router.history.current.path === "/searchProduct";
this.initAreaList() this.initAreaList()
var jObj = JSON.parse(window.localStorage.getItem('baseifo')); var jObj = JSON.parse(window.localStorage.getItem('baseifo'));
const hotList = this.getHotList(jObj.AreaList) const hotList = this.getHotList(jObj.AreaList)
...@@ -502,8 +502,12 @@ export default { ...@@ -502,8 +502,12 @@ export default {
this.historys=Array.from(new Set([this.searchKey].concat(this.historys))) this.historys=Array.from(new Set([this.searchKey].concat(this.historys)))
localStorage['recent_search'] = JSON.stringify(this.historys) localStorage['recent_search'] = JSON.stringify(this.historys)
} }
var currentUrl = window.location.href;
this.CommonJump("/search", { let urlName="/search";
if(currentUrl.includes('/#/searchProduct')){
urlName="/searchProduct";
}
this.CommonJump(urlName, {
qsearchKey: this.searchKey, qsearchKey: this.searchKey,
areaIds: this.areaTicked.join(','), areaIds: this.areaTicked.join(','),
qsearchDate: this.searchDate, qsearchDate: this.searchDate,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment