Showing
3 changed files
with
10 additions
and
5 deletions
| @@ -125,6 +125,7 @@ Page({ | @@ -125,6 +125,7 @@ Page({ | ||
| 125 | keyword: e.detail.value, //用户输入的关键词,可设置固定值,如keyword:'KFC' | 125 | keyword: e.detail.value, //用户输入的关键词,可设置固定值,如keyword:'KFC' |
| 126 | region:this.location.city||'', //设置城市名,限制关键词所示的地域范围,非必填参数 | 126 | region:this.location.city||'', //设置城市名,限制关键词所示的地域范围,非必填参数 |
| 127 | //region_fix:1,//锁定在本市 | 127 | //region_fix:1,//锁定在本市 |
| 128 | + //filter:'category<>美食', | ||
| 128 | success: function (res) {//搜索成功后的回调 | 129 | success: function (res) {//搜索成功后的回调 |
| 129 | console.log(res); | 130 | console.log(res); |
| 130 | var sug = []; | 131 | var sug = []; |
| @@ -166,6 +167,7 @@ Page({ | @@ -166,6 +167,7 @@ Page({ | ||
| 166 | region:this.location.city||'', //设置城市名,限制关键词所示的地域范围,非必填参数 | 167 | region:this.location.city||'', //设置城市名,限制关键词所示的地域范围,非必填参数 |
| 167 | page_size:20, | 168 | page_size:20, |
| 168 | location:location, | 169 | location:location, |
| 170 | + //filter:'category<>美食', | ||
| 169 | success: function (res) { //搜索成功后的回调 | 171 | success: function (res) { //搜索成功后的回调 |
| 170 | var mks = [] | 172 | var mks = [] |
| 171 | for (var i = 0; i < res.data.length; i++) { | 173 | for (var i = 0; i < res.data.length; i++) { |
| @@ -43,7 +43,7 @@ | @@ -43,7 +43,7 @@ | ||
| 43 | "list": [] | 43 | "list": [] |
| 44 | }, | 44 | }, |
| 45 | "miniprogram": { | 45 | "miniprogram": { |
| 46 | - "current": 51, | 46 | + "current": 32, |
| 47 | "list": [ | 47 | "list": [ |
| 48 | { | 48 | { |
| 49 | "id": 0, | 49 | "id": 0, |
| @@ -285,11 +285,11 @@ | @@ -285,11 +285,11 @@ | ||
| 285 | "scene": "1011" | 285 | "scene": "1011" |
| 286 | }, | 286 | }, |
| 287 | { | 287 | { |
| 288 | - "id": -1, | ||
| 289 | - "name": "pages/reserve/index", | ||
| 290 | - "pathName": "pages/reserve/index", | 288 | + "id": 32, |
| 289 | + "name": "pages/reserve/search", | ||
| 290 | + "pathName": "pages/reserve/search", | ||
| 291 | "query": "", | 291 | "query": "", |
| 292 | - "scene": "1001" | 292 | + "scene": 1001 |
| 293 | }, | 293 | }, |
| 294 | { | 294 | { |
| 295 | "id": -1, | 295 | "id": -1, |
| @@ -299,6 +299,9 @@ class QQMapWX { | @@ -299,6 +299,9 @@ class QQMapWX { | ||
| 299 | output: 'json', | 299 | output: 'json', |
| 300 | key: that.key | 300 | key: that.key |
| 301 | }; | 301 | }; |
| 302 | + if(options.filter){ | ||
| 303 | + requestParam.filter=options.filter | ||
| 304 | + } | ||
| 302 | wx.request(Utils.buildWxRequestConfig(options, { | 305 | wx.request(Utils.buildWxRequestConfig(options, { |
| 303 | url: URL_SUGGESTION, | 306 | url: URL_SUGGESTION, |
| 304 | data: requestParam | 307 | data: requestParam |
-
Please register or login to post a comment