<!--packageH/communityStore/communityStore.wxml-->
<view class="communityStore">
    <view class="locationAndsearch">
      <view class="location" bindtap='tolocation'>
        <i class="iconfont icon-dingwei"></i>
        <span class="title">{{address || '全国'}}</span>
      </view>
      <view class="search">
        <input type="text" placeholder="搜索社区" model:value="{{ search }}" />
        <view class="iconfont img-icon" catchtap="getCommunityStoreListBySearch">
          <view class="img-icon-btn"></view>
        </view>
      </view>
    </view>
    <view class="communityStore-box" wx:if="{[!noDatas]}">
      <view  class="communityStore-text" bindtap="chooseCommunityStore" wx:for="{{commmunityStoreList}}"  wx:key="id" data-id="{{ item.id }}">
        <view class="img">
          <image src="{{ item.logo_url }}"></image>
        </view>
        <view class="text">
          <view class="communityStore-title">
            {{ item.name }}
          </view>
          <view class="text-bottom">
            <view class="left">{{ item.distance + '' + item.unit }}</view>
            <view class="sign">|</view>
            <view class="right">
              <i class="iconfont icon-dingwei"></i>
              <span class="text">{{ item.province_name + '' + item.city_name + '' + item.district_name + '' + item.street_name }}</span>
            </view>
          </view>
        </view>
      </view>
    </view>
    <view class="communityStore-box" wx:if="{{noDatas}}" style="text-align: center">
      没有社区数据~~
    </view>
  </view>
  <U_foot></U_foot>
