Commit a9865006 authored by 黄奎's avatar 黄奎

1111

parent a030d60a
...@@ -166,7 +166,7 @@ export default { ...@@ -166,7 +166,7 @@ export default {
OrderBy: 0, OrderBy: 0,
FoodTypeIds: 0, FoodTypeIds: 0,
DiningPriceType: 0, DiningPriceType: 0,
City: 262, City: 0,
District: 0, District: 0,
}, },
page_count: 1, page_count: 1,
...@@ -294,7 +294,7 @@ export default { ...@@ -294,7 +294,7 @@ export default {
this.getPriceEnum(); this.getPriceEnum();
this.getFoodList(); this.getFoodList();
this.getCity(); this.getCity();
this.getDistrict(262); //this.getDistrict(262);
}, },
created() { created() {
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
...@@ -335,70 +335,17 @@ export default { ...@@ -335,70 +335,17 @@ export default {
setRestaurantPrice(rateId, name) { setRestaurantPrice(rateId, name) {
this.msg.DiningPriceType = rateId; this.msg.DiningPriceType = rateId;
this.optionsTitle[3] = name; this.optionsTitle[3] = name;
// if(rateId==-1){
// this.tempRateAndPrice.rate=[-1]
// }else{
// if(this.tempRateAndPrice.rate.indexOf(-1)!=-1){
// this.tempRateAndPrice.rate.splice(this.tempRateAndPrice.rate.indexOf(-1),1)
// }
// let temp=this.tempRateAndPrice.rate.indexOf(rateId)
// if(temp==-1){
// this.tempRateAndPrice.rate.push(rateId)
// }else{
// this.tempRateAndPrice.rate.splice(temp,1)
// }
// }
}, },
// setRestaurant(typeId){
// if(typeId==-1){
// this.tempRateAndPrice.types=[-1]
// }else{
// if(this.tempRateAndPrice.types.indexOf(-1)!=-1){
// this.tempRateAndPrice.types.splice(this.tempRateAndPrice.types.indexOf(-1),1)
// }
// let temp=this.tempRateAndPrice.types.indexOf(typeId)
// if(temp==-1){
// this.tempRateAndPrice.types.push(typeId)
// }else{
// this.tempRateAndPrice.types.splice(temp,1)
// }
// }
// },
resetPrice() { resetPrice() {
this.optionsTitle[3] = "筛选"; this.optionsTitle[3] = "筛选";
// this.searchObj.rateAndPrice={
// types:[-1],
// priceText:"不限",
// rate:[-1]
// }
this.msg.DiningPriceType = 0; this.msg.DiningPriceType = 0;
this.msg.pageIndex = 1; this.msg.pageIndex = 1;
this.getFoodList(); this.getFoodList();
this.closeDropdown(); this.closeDropdown();
}, },
surePrice() { surePrice() {
// let result=""
// if(this.tempRateAndPrice.types.length>0){
// this.options2.forEach(x=>{
// if(this.tempRateAndPrice.types.indexOf(x.value)!=-1){
// result+=x.label+","
// }
// })
// }
// if(this.tempRateAndPrice.rate.length>0){
// this.rates.forEach(x=>{
// if(this.tempRateAndPrice.rate.indexOf(x.value)!=-1){
// result+=x.label+","
// }
// })
// }
// result=result==""?"筛选":result
// console.log(296,result)
// this.optionsTitle[2]=result
// this.$forceUpdate()
// this.searchObj.rateAndPrice=this.tempRateAndPrice
// this.msg.DiningPriceType=this.tempRateAndPrice.rate.toString();
this.msg.pageIndex = 1; this.msg.pageIndex = 1;
this.getFoodList(); this.getFoodList();
this.closeDropdown(); this.closeDropdown();
...@@ -414,19 +361,6 @@ export default { ...@@ -414,19 +361,6 @@ export default {
this.getFoodList(); this.getFoodList();
this.closeDropdown(); this.closeDropdown();
}, },
// rangechange4(e){
// if(e.minValue==0){
// if(e.maxValue==1000){
// this.tempRateAndPrice.priceText="不限"
// }else{
// this.tempRateAndPrice.priceText=`¥${e.maxValue}以下`
// }
// }else if(e.maxValue==1000){
// this.tempRateAndPrice.priceText=`¥${e.minValue}以上`
// }else{
// this.tempRateAndPrice.priceText=`¥${e.minValue} - ¥${e.maxValue}之间`
// }
// },
closeDropdown() { closeDropdown() {
this.$refs.uDropdown.close(); this.$refs.uDropdown.close();
}, },
...@@ -522,7 +456,7 @@ export default { ...@@ -522,7 +456,7 @@ export default {
this.showCityList = false; this.showCityList = false;
this.msg.City = val.ID; this.msg.City = val.ID;
this.city = val.Name; this.city = val.Name;
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.msg.pageIndex = 1;
......
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