<!--pages/search/search/search.wxml-->
<wxs src="../../../pages/common.wxs" module="common"></wxs>

<view class="page-wrapper">
  <view class="search-header">
    <view class='search-wrapper'>
      <image class="search-icon" src='/images/icon_search.png'></image>
      <input class='search-input' placeholder='关键词如地名、游泳等' bindinput="inputChnage"></input>
    </view>
  </view>
  <view class="tags-wrapper">
    <text class="title">选择标签</text>
    <view class="tags-list">
   
        <block wx:for="{{tags}}" wx:for-index="idx" wx:for-item="n" wx:key="n.id">
          <view class="tag-item {{common.inArray(seltags, n.id)==true?'active':''}}" bindtap="selectTags" data-idx="{{n.id}}">
            {{n.name}}
          </view>
        </block>
    </view>
    <view class='search-box'>
        <view class='submitBtn'>
    <i-button type="primary" bind:click="submitSearch" shape="circle">搜索</i-button>
   </view></view>
  </view>
</view>