Commit 9dee551f authored by 黄奎's avatar 黄奎

页面修改

parent 565600b8
......@@ -869,6 +869,17 @@
};
},
created() {
},
mounted() {
if (localStorage.baseifo) {
var jObj = JSON.parse(localStorage.baseifo);
this.areas = jObj.AreaList;
this.ShowType = jObj.Config.ShowType;
} else {
this.getAera()
}
document.addEventListener("click", this.clickHandler);
var qsearchKey = this.getUrlKey("qsearchKey", window.location.href);
var qsearchDate = this.getUrlKey("qsearchDate", window.location.href);
var qsearchEndDate = this.getUrlKey("qsearchEndDate", window.location.href);
......@@ -881,17 +892,9 @@
if (qsearchEndDate) {
this.qMsg.endDate = qsearchEndDate;
}
},
mounted() {
if (localStorage.baseifo) {
var jObj = JSON.parse(localStorage.baseifo);
this.areas = jObj.AreaList;
this.ShowType = jObj.Config.ShowType;
} else {
this.getAera()
if (qsearchKey || qsearchDate || qsearchEndDate) {
this.goSearchHandler();
}
document.addEventListener("click", this.clickHandler);
},
methods: {
//获取地区数据
......@@ -938,9 +941,53 @@
this.showSplitPannel = false;
},
goSearchHandler() {
console.log("this.qMsg",this.qMsg);
let minTripDay = -1,
maxTripDay = -1,
minPrice = -1,
maxPrice = -1;
if (this.qMsg.minPrice != '') {
minPrice = parseFloat(this.qMsg.minPrice)
}
if (this.qMsg.maxPrice != '') {
maxPrice = parseFloat(this.qMsg.maxPrice)
if (minPrice > maxPrice) {
//this.Error('价格区间的最低价格不能低于最大价格')
return false
}
}
if (this.qMsg.minTripDay != '') {
minTripDay = parseFloat(this.qMsg.minTripDay);
}
if (this.qMsg.maxTripDay != '') {
maxTripDay = parseFloat(this.qMsg.maxTripDay);
if(minTripDay>maxTripDay)
{
return false;
}
}
let msg = {
pageIndex: this.qMsg.pageIndex,
pageSize: this.qMsg.pageSize,
searchKey: this.qMsg.searchKey,
cityId: this.qMsg.cityId,
lineId: this.qMsg.lineId,
lineTeamId: this.qMsg.lineTeamId,
minTripDay: minTripDay,
maxTripDay: maxTripDay,
minPrice: minPrice,
maxPrice: maxPrice,
startDate: this.qMsg.startDate,
endDate: this.qMsg.endDate,
orderByDate: this.orderindex == 1 ? (this.ordertype == 0 ? 2 : 1) : 0,
orderByPrice: this.orderindex == 2 ? (this.ordertype == 0 ? 2 : 1) : 0,
priceOrderByField: 4,
companyId: 0,
orderBySales: this.orderindex == 3 ? (this.ordertype == 0 ? 2 : 1) : 0,
startCityId: this.qMsg.startCityId
}
console.log("this.msg", msg);
this.apipost(
"b2b_get_GetB2BTravelPageList", this.qMsg,
"b2b_get_GetB2BTravelPageList", msg,
res => {
if (res.data.resultCode == 1) {
this.PageCount = res.data.data.pageCount;
......
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