inputtip.wxml 1.1 KB

123456789101112131415161718192021
  1. <view class="section">
  2. <view class='search_icon' hover-class='active' bindtap='bindSearch'>
  3. <!-- <icon type="search" size="20" /> -->
  4. <image src='/images/search.png'></image>
  5. </view>
  6. <input type='text' placeholder-class="section_phcolor" placeholder="请输入搜索内容" focus="true" confirm-type='search' bindinput="bindInput" bindconfirm="bindSearch" />
  7. <view class='cancel' bindtap='cancel'>取消</view>
  8. </view>
  9. <scroll-view class='context' scroll-y='true' wx:if="{{tips.length!=0}}">
  10. <view bindtap="bindSearch2" data-keywords="{{item}}" class="text_box" hover-class='active' wx:for="{{tips}}" wx:key="key" wx:if="{{item.location.length!=0}}">
  11. <view class='search'>
  12. <image src='/images/search.png'></image>
  13. </view>
  14. <view class='text_context'>
  15. <text class='bold'>{{item.name}}</text>
  16. <text class="h1">{{item.district}}{{item.address}}</text>
  17. </view>
  18. <text class="right">附近的充电站</text>
  19. </view>
  20. </scroll-view>
  21. <view class='no_result' bindtap='bindSearch' wx:if="{{tips.length==0}}">没有搜索结果</view>