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

1

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