Commit 0a9bc8f50b0c7882f49f265aa70a598bc5899f8a

Authored by vking
1 parent e9ddd1b7

search

... ... @@ -266,4 +266,10 @@ Page({
})
})
},
clearKeyword(){
this.setData({
keyword:'',
suggestion:[],
})
}
})
\ No newline at end of file
... ...
... ... @@ -7,7 +7,10 @@
<input style="width: 100%;" placeholder="输入餐厅名或地名,快速订包间"
type="text" confirm-type="done"
focus
bindinput="getsuggest" value="{{backfill}}"/>
bindinput="getsuggest" value="{{keyword}}"/>
<image class="icon icon-del" wx:if="{{keyword.length>0}}"
catchtap="clearKeyword"
src="https://qn.colorcun.com/reserve/images/del.png"></image>
</view>
</view>
<view class="res-view">
... ...
... ... @@ -33,6 +33,11 @@
height: 26rpx;
margin: 0 20rpx;
}
.searchAddr .icon-del{
min-width: 28rpx;
width: 28rpx;
height: 28rpx;
}
.res-view{
margin-top: 110rpx;
}
... ...