Commit 4e8c7ad1 authored by youjie's avatar youjie

no message

parent d64d5186
......@@ -434,6 +434,7 @@ export default {
selectedAreaId: "",
isHome: false,
HomeData: [],
isSearch: false,
};
},
watch: {
......@@ -504,6 +505,7 @@ export default {
};
},
mounted() {
this.isSearch = this.$router.history.current.path === "/search"||this.$router.history.current.path === "/searchProduct";
this.isHome =
this.$router.history.current.path === "/searchProduct" ||
this.$router.history.current.path === "/search";
......@@ -541,12 +543,24 @@ export default {
this.CommonJump("/city/" + item.Id);
},
handleCategoryChage(item) {
if(this.$route.path==='searchProduct'){
this.CommonJump("/searchProduct", {
qsearchKey: this.searchKey,
qsearchDate: this.searchDate,
qsearchEndDate: this.searchEndDate,
categoryId: item.Id,
});
}else{
this.CommonJump("/search", {
qsearchKey: this.searchKey,
qsearchDate: this.searchDate,
qsearchEndDate: this.searchEndDate,
categoryId: item.Id,
});
}
if(this.isSearch) {
window.location.reload()
}
},
mouseenterAddress() {
this.menuFocusAll = 0;
......
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