Commit c1c7dd41 authored by youjie's avatar youjie

酒店优化

parent ffb24c32
......@@ -211,7 +211,7 @@
KeyWords2: "", //关键字
StartPrice: 100,
EndPrice: 0,
QOrderBy: "1", //排序类型
QOrderBy: "0", //排序类型
QStarRating: [], //星级
GName: '', //热门
CityCode: '', //目的地代码
......@@ -282,7 +282,7 @@
let list = this.options1.filter(x => {
return x.value == val.QOrderBy
})
if (list && list.length > 0) this.optionsTitle[0] = list[0].label
if (list && list.length > 0&&list[0].value) this.optionsTitle[0] = list[0].label
}
if (val.CityName_CN) {
this.optionsTitle[1] = val.CityName_CN
......@@ -517,7 +517,7 @@
},
ComSorting(item) {
this.parameters.QOrderBy = item.value
this.optionsTitle[0] = item.label;
this.optionsTitle[0] = item.value?item.label:'综合排序';
setTimeout(() => {
this.closeDropdown()
}, 300);
......@@ -568,6 +568,10 @@
};
this.options1.push(obj);
});
this.options1.unshift({
label: '默认',
value: 0,
})
}
if (tempObj && tempObj.StarRatingList) {
this.rates = tempObj.StarRatingList;
......
......@@ -27,6 +27,7 @@ export default {
Vue.prototype.host3 = process.env.NODE_ENV=="development"?"http://192.168.5.214":"https://reborn.oytour.com"
// Vue.prototype.host2 = "https://erpmallapi.oytour.com"
// Vue.prototype.host3 = "https://reborn.oytour.com"
// "http://192.168.5.204:8030":
console.log()
Vue.prototype.request = function(param, success, failed) {
......
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