Commit a67ec8b273ad1c1d44f1a88df1897729910c3f53

Authored by vking
1 parent 53683113

search

... ... @@ -98,7 +98,7 @@ Page({
getsuggest: function (e) {
//调用关键词提示接口
this.inputVal=e.detail.value;
if(e.detail.value.length<1){
if(this.inputVal.length<1){
return this.setData({
suggestion: []
})
... ... @@ -112,6 +112,11 @@ Page({
page_index:1,
key:map_key,
}).then(res=>{
if(this.inputVal.length<1){
return this.setData({
suggestion: []
})
}
res.data=res.data.data
var sug = [],hasSellerMore=false,sellerSplit=-1
for (var i = 0; i < res.data.length; i++) {
... ...
... ... @@ -10,7 +10,7 @@
width: 110%;
height: 110rpx;
background-color: #fefefe;
z-index: 10;
z-index: 9;
margin-left: -5%;
}
.searchAddr {
... ...