Commit 4cb81355 authored by 罗超's avatar 罗超

1

parent 329b6d7e
......@@ -240,14 +240,14 @@
this.showCityList=true
},
confirmCity(val){
console.log(val)
this.searchObj.City=val.ID
this.showCityList=false
this.city=val.Name
this.getDistrict(val.ID)
this.searchObj.District=0
this.getList();
this.searchObj.pageIndex=1
this.optionsTitle[1]="区域"
this.getList();
},
scroll: function(e) {
this.old.scrollTop = e.detail.scrollTop;
......@@ -504,6 +504,7 @@
);
},
changeDistrict(val){
this.searchObj.pageIndex=1
this.getList();
let res= this.DistrictOptions.filter(i=>{return i.value==val})
this.optionsTitle[1]=res[0].label
......
......@@ -236,6 +236,7 @@
},
methods: {
orderChange(val){
this.msg.pageIndex=1
this.getFoodList();
let res= this.options1.filter(i=>{return i.value==val})
this.optionsTitle[0]=res[0].label
......@@ -302,6 +303,7 @@
// rate:[-1]
// }
this.msg.DiningPriceType = 0
this.msg.pageIndex=1
this.getFoodList();
this.closeDropdown();
},
......@@ -328,6 +330,7 @@
// this.$forceUpdate()
// this.searchObj.rateAndPrice=this.tempRateAndPrice
// this.msg.DiningPriceType=this.tempRateAndPrice.rate.toString();
this.msg.pageIndex=1
this.getFoodList();
this.closeDropdown();
},
......@@ -338,6 +341,7 @@
this.optionsTitle[1]="分类"
this.msg.FoodTypeIds=0
}
this.msg.pageIndex=1
this.getFoodList();
this.closeDropdown();
},
......@@ -367,7 +371,7 @@
this.currentTypeObj.newTimespan = this.rand(1000, 9999)
this.$forceUpdate()
console.log(this.currentTypeObj.newTimespan)
// console.log(this.currentTypeObj.newTimespan)
}
},
rand(min, max) {
......@@ -448,6 +452,7 @@
this.getDistrict(val.ID)
this.msg.District=0
this.optionsTitle[2]="区域"
this.msg.pageIndex=1
this.getFoodList();
},
getCity(){
......@@ -505,6 +510,7 @@
);
},
changeDistrict(val){
this.msg.pageIndex=1
this.getFoodList();
let res= this.DistrictOptions.filter(i=>{return i.value==val})
this.optionsTitle[2]=res[0].label
......
......@@ -229,11 +229,13 @@
this.msg.IsSameDayBuy=-1;
this.msg.IsWorryFreeRefund=-1;
this.$refs.uDropdown.close();
this.msg.pageIndex=1
this.getList()
},
//筛选
surePrice(){
this.$refs.uDropdown.close();
this.msg.pageIndex=1
this.getList()
},
......@@ -313,11 +315,13 @@
}
},
orderChange(val){
this.msg.pageIndex=1
this.getList();
let res= this.orderOptions.filter(i=>{return i.value==val})
this.optionsTitle[0]=res[0].label
},
typeChange(val){
this.msg.pageIndex=1
this.getList();
let res= this.classOptions.filter(i=>{return i.value==val})
this.optionsTitle[1]=res[0].label
......@@ -332,6 +336,7 @@
this.getDistrict(val.ID)
this.msg.District=0
this.optionsTitle[2]="区域"
this.msg.pageIndex=1
this.getList();
},
getCity(){
......@@ -389,6 +394,7 @@
);
},
changeDistrict(val){
this.msg.pageIndex=1
this.getList();
let res= this.DistrictOptions.filter(i=>{return i.value==val})
this.optionsTitle[2]=res[0].label
......
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