Commit b4c7388827f65a41000004eddc2d9b1067e7e432

Authored by vking
1 parent f9fbd27e

search

... ... @@ -8,6 +8,7 @@ Component({
properties: {
height:Number,
disabled:Boolean,
filterParams:Object,//人均过滤初始值
},
/**
... ... @@ -37,6 +38,7 @@ Component({
this.setData({
multiArray: [['全部菜系'].concat(await DA.getCates())]
})
this.filterParams= this.data.filterParams
},
caixiActive(e) {
console.log('caixiActive', e);
... ...
... ... @@ -45,6 +45,8 @@ Page({
/**
hasSuggestion=1&keyword=橡树湾&lat=39.662877&lng=118.130962&centre_pos=39.662877,118.130962&multiIndex=0&filter={"consumeStr":"¥200-300","min":"200","max":"300","active":"200,300"}&city={"code":"610100","pid":"610000","name":"西安市","status":"1","last_date":"1598949575"}&hows={"params":{"pnum":{"index":3,"val":4,"type":"pnum"},"date":{"index":0,"val":1606983211,"type":"date"},"dur":{"index":2,"val":3,"type":"dur"}},"paramObj":{"when_date":"2020-12-03","several":4,"daily":3},"paramStr":"12月03日(今天) 晚餐 4位"}
lat=39.65157&lng=118.15044&keyword=1&multiIndex=0&city={"code":"130200","pid":"130000","name":"唐山市","status":"1","last_date":"1598949575"}&hows={"params":{"pnum":{"index":5,"val":6,"type":"pnum"},"date":{"index":1,"val":1607399207,"type":"date"},"dur":{"index":2,"val":3,"type":"dur"}},"paramObj":{"when_date":"2020-12-08","several":6,"daily":3},"paramStr":"12月08日(明天) 晚餐 6位"}&filter={"consumeStr":"¥101-220","min":"101","max":"220","active":"101,220"}
city={"code":"130200","pid":"130000","name":"唐山市","status":"1","last_date":"1598949575"}&hows={"params":{"pnum":{"index":3,"val":4,"type":"pnum"},"date":{"index":0,"val":1606984766,"type":"date"},"dur":{"index":2,"val":3,"type":"dur"}},"paramObj":{"when_date":"2020-12-03","several":4,"daily":3},"paramStr":"12月03日(今天) 晚餐 4位"}
*/
wx.getSystemInfo({
... ... @@ -61,6 +63,7 @@ Page({
this.setData({
filterParams:this.filterParams,
})
this.filterGroupData.average=this.filterParams.active
}
if(options.city){
this.city=JSON.parse(options.city)
... ... @@ -85,9 +88,14 @@ Page({
}
this.setData({
hasSuggestion:true,
suggestion:this.suggestion
suggestion:this.suggestion,
keyword:this.options.keyword,
})
delete this.options.keyword
}else if(this.options.keyword){
this.setData({
keyword:options.keyword,
})
}
let tags=[
{id:1,name:'环境好'},
... ... @@ -247,9 +255,11 @@ Page({
})
this.hasGetSellerEnd=true
this.triggerEvent('event',{type:'getListEnd',total:res.data.length})
/*
if(res.data.length==0 && this.offset==1 && this.location){
this.onpos({detail:this.location})
this.GetRecommendSellerList()
}
*/
})
},
/**
... ...
... ... @@ -28,6 +28,7 @@
<view class="view content" style="height: calc(100vh - 65px);">
<filter-group height="{{height}}"
id="filter-group"
filterParams="{{filterParams}}"
bindevent="filterGroupEvent"
disabled="{{(sellers.length<1 && !hasFilterData) || hasLoading}}"></filter-group>
<block wx:if="{{hasLoading}}">
... ...
... ... @@ -223,6 +223,9 @@ Page({
lng:this.location.longitude,
keyword:this.inputVal,
multiIndex:0,
city:this.options.city,
hows:this.options.hows,
filter:this.options.filter,
},'./indexList')
})
},
... ...
... ... @@ -468,7 +468,7 @@
{
"name": "pages/reserve/indexList",
"pathName": "pages/reserve/indexList",
"query": "city={\"code\":\"130200\",\"pid\":\"130000\",\"name\":\"唐山市\",\"status\":\"1\",\"last_date\":\"1598949575\"}&hows={\"params\":{\"pnum\":{\"index\":3,\"val\":4,\"type\":\"pnum\"},\"date\":{\"index\":0,\"val\":1606984766,\"type\":\"date\"},\"dur\":{\"index\":2,\"val\":3,\"type\":\"dur\"}},\"paramObj\":{\"when_date\":\"2020-12-03\",\"several\":4,\"daily\":3},\"paramStr\":\"12月03日(今天) 晚餐 4位\"}",
"query": "lat=39.65157&lng=118.15044&keyword=1&multiIndex=0&city={\"code\":\"130200\",\"pid\":\"130000\",\"name\":\"唐山市\",\"status\":\"1\",\"last_date\":\"1598949575\"}&hows={\"params\":{\"pnum\":{\"index\":5,\"val\":6,\"type\":\"pnum\"},\"date\":{\"index\":1,\"val\":1607399207,\"type\":\"date\"},\"dur\":{\"index\":2,\"val\":3,\"type\":\"dur\"}},\"paramObj\":{\"when_date\":\"2020-12-08\",\"several\":6,\"daily\":3},\"paramStr\":\"12月08日(明天) 晚餐 6位\"}&filter={\"consumeStr\":\"¥101-220\",\"min\":\"101\",\"max\":\"220\",\"active\":\"101,220\"}",
"scene": null
},
{
... ...