Showing
2 changed files
with
11 additions
and
4 deletions
| @@ -886,7 +886,7 @@ Page({ | @@ -886,7 +886,7 @@ Page({ | ||
| 886 | tags:this.param.tags, | 886 | tags:this.param.tags, |
| 887 | centre_pos:this.param.centre_pos, | 887 | centre_pos:this.param.centre_pos, |
| 888 | hasSuggestion:this.data.hasSuggestion?1:'', | 888 | hasSuggestion:this.data.hasSuggestion?1:'', |
| 889 | - keyword:this.data.suggestion?this.data.suggestion.title:'', | 889 | + keywordTip:this.data.hasSuggestion?this.data.suggestion.title:'', |
| 890 | },'./indexList'), | 890 | },'./indexList'), |
| 891 | success: res=> { | 891 | success: res=> { |
| 892 | // 通过eventChannel向被打开页面传送数据 | 892 | // 通过eventChannel向被打开页面传送数据 |
| @@ -127,9 +127,16 @@ Page({ | @@ -127,9 +127,16 @@ Page({ | ||
| 127 | let mapParam=this.options | 127 | let mapParam=this.options |
| 128 | this.offset=1 //page | 128 | this.offset=1 //page |
| 129 | this.size=20 //page size | 129 | this.size=20 //page size |
| 130 | - this.setData({ | ||
| 131 | - keyword:mapParam.keyword||'', | ||
| 132 | - }) | 130 | + if(mapParam.keywordTip){ |
| 131 | + this.setData({ | ||
| 132 | + keyword:mapParam.keywordTip, | ||
| 133 | + }) | ||
| 134 | + }else{ | ||
| 135 | + this.setData({ | ||
| 136 | + keyword:mapParam.keyword||'', | ||
| 137 | + }) | ||
| 138 | + } | ||
| 139 | + | ||
| 133 | if(mapParam.keyword){ | 140 | if(mapParam.keyword){ |
| 134 | this.param={ | 141 | this.param={ |
| 135 | lat_extend:mapParam.lat, | 142 | lat_extend:mapParam.lat, |
-
Please register or login to post a comment