|
...
|
...
|
@@ -144,41 +144,15 @@ Page({ |
|
|
|
let lng = (this.mapData.region.southwest.longitude + this.mapData.region.northeast.longitude) / 2
|
|
|
|
param.centre_pos = `${lat},${lng}`
|
|
|
|
}
|
|
|
|
/*
|
|
|
|
if (this.data.multiIndex[0] > 0) {
|
|
|
|
param.cuisine = await DA.getCatesID(this.data.multiIndex[0] - 1);
|
|
|
|
if(this.filterGroupData.tags){
|
|
|
|
param.tags = this.filterGroupData.tags;
|
|
|
|
}
|
|
|
|
let tags = [];
|
|
|
|
this.data.tags.forEach(t => {
|
|
|
|
if (t.active) {
|
|
|
|
tags.push(t.id)
|
|
|
|
}
|
|
|
|
})
|
|
|
|
if (tags.length > 0) {
|
|
|
|
param.tags = tags;
|
|
|
|
if (this.filterGroupData.cuisine) {
|
|
|
|
param.cuisine = this.filterGroupData.cuisine;
|
|
|
|
}
|
|
|
|
if (param.lat) {
|
|
|
|
param.centre_pos = `${param.lat},${param.lng}`
|
|
|
|
} else {
|
|
|
|
let lat = (this.mapData.region.southwest.latitude + this.mapData.region.northeast.latitude) / 2
|
|
|
|
let lng = (this.mapData.region.southwest.longitude + this.mapData.region.northeast.longitude) / 2
|
|
|
|
param.centre_pos = `${lat},${lng}`
|
|
|
|
}
|
|
|
|
if (this.data.hasSuggestion) {
|
|
|
|
param.centre_pos = `${this.data.suggestion.latitude},${this.data.suggestion.longitude}`
|
|
|
|
if(this.filterGroupData.average){
|
|
|
|
param.average = this.filterGroupData.average;
|
|
|
|
}
|
|
|
|
if (this.findSellerData) {
|
|
|
|
param = Object.assign(param, this.findSellerData.paramObj)
|
|
|
|
}
|
|
|
|
if (this.filterParams) {//人均过滤
|
|
|
|
let filterParams = this.filterParams.min + ',' + this.filterParams.max
|
|
|
|
if (this.filterParams.min == this.filterParams.max && this.filterParams.min == 300) {
|
|
|
|
filterParams = this.filterParams.min + ',' + parseInt(new Date() / 1000)
|
|
|
|
}
|
|
|
|
param.average = filterParams
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
//this.selectComponent('#list').getList(param);
|
|
|
|
this.param = param;
|
|
|
|
App.Customer.SellerList(param).then(async res => {
|
|
|
|
if (res.ret == 200) {
|
|
...
|
...
|
@@ -288,6 +262,12 @@ Page({ |
|
|
|
};
|
|
|
|
this.setData(obj)
|
|
|
|
},
|
|
|
|
filterGroupData:{},
|
|
|
|
filterGroupEvent(e){
|
|
|
|
console.log('filterGroupEvent',e.detail)
|
|
|
|
this.filterGroupData=e.detail
|
|
|
|
this.debounce(this.getSellers,500)
|
|
|
|
},
|
|
|
|
back:function() {
|
|
|
|
/*
|
|
|
|
var mta = require('mta-wechat-analysis')
|
...
|
...
|
|