Commit 286c6047 authored by 黄奎's avatar 黄奎

页面修改

parent 2487a64d
...@@ -277,6 +277,14 @@ ...@@ -277,6 +277,14 @@
}; };
}, },
mounted() { mounted() {
var newStartDate = new Date();
var newStartDateStr = this.formatDate(newStartDate.getFullYear(), (newStartDate.getMonth() + 1), newStartDate
.getDate());
var newEndDate = this.AddMonth(newStartDateStr, 2)
var newEndDateStr = this.formatDate(newEndDate.getFullYear(), (newEndDate.getMonth() + 1), newEndDate.getDate());
this.searchDate = newStartDateStr;
this.searchEndDate = newEndDateStr;
this.$root.$emit("change-head-style", 2); this.$root.$emit("change-head-style", 2);
document.addEventListener("click", this.clickHandler); document.addEventListener("click", this.clickHandler);
var jObj = JSON.parse(localStorage.getItem('groupinfo')); var jObj = JSON.parse(localStorage.getItem('groupinfo'));
...@@ -313,11 +321,15 @@ ...@@ -313,11 +321,15 @@
this.showPopup = true; this.showPopup = true;
}, },
clickHandler(e) { clickHandler(e) {
try {
if (!document.querySelector("#sb").contains(e.target)) { if (!document.querySelector("#sb").contains(e.target)) {
this.showSplitPannel = false; this.showSplitPannel = false;
} else if (!document.querySelector("#sp").contains(e.target)) { } else if (!document.querySelector("#sp").contains(e.target)) {
this.showCompPannel = false; this.showCompPannel = false;
} }
} catch (error) {
console.log("search_sf1_clickHandler_error", error)
}
}, },
clickSlideHandler(url) { clickSlideHandler(url) {
if (url && url.length > 1) { if (url && url.length > 1) {
...@@ -332,7 +344,7 @@ ...@@ -332,7 +344,7 @@
} }
}, },
searchBlurHandler() { searchBlurHandler() {
//this.showSplitPannel = false;
}, },
clkAreaHandler(i) { clkAreaHandler(i) {
this.crtAreaIndex = i; this.crtAreaIndex = i;
...@@ -351,18 +363,8 @@ ...@@ -351,18 +363,8 @@
this.showSplitPannel = false; this.showSplitPannel = false;
this.showCompPannel = false; this.showCompPannel = false;
}, },
//跳转到搜索页面
goSearchHandler() { goSearchHandler() {
// if (this.searchKey == "") {
// this.$q.notify({
// color: "negative",
// textColor: "#FFF",
// icon: "report_problem",
// message: "尊敬的客人,請選擇一個目的地吧",
// position: "top",
// timeout: 3000
// });
// }
this.CommonJump('/search', { this.CommonJump('/search', {
qsearchKey: this.searchKey, qsearchKey: this.searchKey,
qsearchDate: this.searchDate, qsearchDate: this.searchDate,
......
...@@ -273,10 +273,18 @@ ...@@ -273,10 +273,18 @@
tl: "", tl: "",
ful: "" ful: ""
}, },
RB_Group_Id:0, RB_Group_Id: 0,
}; };
}, },
mounted() { mounted() {
var newStartDate = new Date();
var newStartDateStr = this.formatDate(newStartDate.getFullYear(), (newStartDate.getMonth() + 1), newStartDate
.getDate());
var newEndDate = this.AddMonth(newStartDateStr, 2)
var newEndDateStr = this.formatDate(newEndDate.getFullYear(), (newEndDate.getMonth() + 1), newEndDate.getDate());
this.searchDate = newStartDateStr;
this.searchEndDate = newEndDateStr;
this.$root.$emit("change-head-style", 2); this.$root.$emit("change-head-style", 2);
document.addEventListener("click", this.clickHandler); document.addEventListener("click", this.clickHandler);
var jObj = JSON.parse(localStorage.getItem('groupinfo')); var jObj = JSON.parse(localStorage.getItem('groupinfo'));
...@@ -315,11 +323,15 @@ ...@@ -315,11 +323,15 @@
this.showPopup = true; this.showPopup = true;
}, },
clickHandler(e) { clickHandler(e) {
try {
if (!document.querySelector("#sb").contains(e.target)) { if (!document.querySelector("#sb").contains(e.target)) {
this.showSplitPannel = false; this.showSplitPannel = false;
} else if (!document.querySelector("#sp").contains(e.target)) { } else if (!document.querySelector("#sp").contains(e.target)) {
this.showCompPannel = false; this.showCompPannel = false;
} }
} catch (error) {
console.log("search_sf2_clickHandler_error", error)
}
}, },
clickSlideHandler(url) { clickSlideHandler(url) {
if (url && url.length > 1) { if (url && url.length > 1) {
...@@ -353,17 +365,8 @@ ...@@ -353,17 +365,8 @@
this.showSplitPannel = false; this.showSplitPannel = false;
this.showCompPannel = false; this.showCompPannel = false;
}, },
//跳转到搜索页面
goSearchHandler() { goSearchHandler() {
// if (this.searchKey == "") {
// this.$q.notify({
// color: "negative",
// textColor: "#FFF",
// icon: "report_problem",
// message: "尊敬的客人,請選擇一個目的地吧",
// position: "top",
// timeout: 3000
// });
// }
this.CommonJump('/search', { this.CommonJump('/search', {
qsearchKey: this.searchKey, qsearchKey: this.searchKey,
qsearchDate: this.searchDate, qsearchDate: this.searchDate,
......
...@@ -277,6 +277,14 @@ ...@@ -277,6 +277,14 @@
}; };
}, },
mounted() { mounted() {
var newStartDate = new Date();
var newStartDateStr = this.formatDate(newStartDate.getFullYear(), (newStartDate.getMonth() + 1), newStartDate
.getDate());
var newEndDate = this.AddMonth(newStartDateStr, 2)
var newEndDateStr = this.formatDate(newEndDate.getFullYear(), (newEndDate.getMonth() + 1), newEndDate.getDate());
this.searchDate = newStartDateStr;
this.searchEndDate = newEndDateStr;
this.$root.$emit("change-head-style", 2); this.$root.$emit("change-head-style", 2);
document.addEventListener("click", this.clickHandler); document.addEventListener("click", this.clickHandler);
...@@ -318,11 +326,15 @@ ...@@ -318,11 +326,15 @@
this.showPopup = true; this.showPopup = true;
}, },
clickHandler(e) { clickHandler(e) {
try {
if (!document.querySelector("#sb").contains(e.target)) { if (!document.querySelector("#sb").contains(e.target)) {
this.showSplitPannel = false; this.showSplitPannel = false;
} else if (!document.querySelector("#sp").contains(e.target)) { } else if (!document.querySelector("#sp").contains(e.target)) {
this.showCompPannel = false; this.showCompPannel = false;
} }
} catch (error) {
console.log("search_sf3_clickHandler_error", error)
}
}, },
clickSlideHandler(url) { clickSlideHandler(url) {
if (url && url.length > 1) { if (url && url.length > 1) {
...@@ -337,7 +349,7 @@ ...@@ -337,7 +349,7 @@
} }
}, },
searchBlurHandler() { searchBlurHandler() {
//this.showSplitPannel = false;
}, },
clkAreaHandler(i) { clkAreaHandler(i) {
this.crtAreaIndex = i; this.crtAreaIndex = i;
...@@ -356,17 +368,9 @@ ...@@ -356,17 +368,9 @@
this.showSplitPannel = false; this.showSplitPannel = false;
this.showCompPannel = false; this.showCompPannel = false;
}, },
////跳转到搜索页面
goSearchHandler() { goSearchHandler() {
// if (this.searchKey == "") {
// this.$q.notify({
// color: "negative",
// textColor: "#FFF",
// icon: "report_problem",
// message: "尊敬的客人,請選擇一個目的地吧",
// position: "top",
// timeout: 3000
// });
// }
this.CommonJump('/search', { this.CommonJump('/search', {
qsearchKey: this.searchKey, qsearchKey: this.searchKey,
qsearchDate: this.searchDate, qsearchDate: this.searchDate,
......
...@@ -848,10 +848,10 @@ ...@@ -848,10 +848,10 @@
endDate: "", //结束日期 endDate: "", //结束日期
lineId: 0, //线路编号 lineId: 0, //线路编号
lineTeamId: 0, //系列编号 lineTeamId: 0, //系列编号
minPrice: -1, //最低价格 minPrice: "", //最低价格
maxPrice: -1, //最高价格 maxPrice: "", //最高价格
minTripDay: -1, //最低行程条数 minTripDay: "", //最低行程条数
maxTripDay: -1, //最高行程天数 maxTripDay: "", //最高行程天数
orderByDate: 0, orderByDate: 0,
orderByPrice: 0, orderByPrice: 0,
orderBySales: 0, orderBySales: 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