Commit 4e8c7ad1 authored by youjie's avatar youjie

no message

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