<!--packageH/communityStoreDetails/communityStoreDetails.wxml-->
<view class="communityStoreDetail">
    <view class="top">
      <view class="location" bindtap='tolocation'>
        <i class="iconfont icon-dingwei"></i>
        <span class="title">{{ address || '全国' }}</span>
      </view>
      <view class="text" bindtap="showCommunityIntroduction">社区介绍</view>
    </view>
    <view class="search">
      <input type="text" placeholder="搜索门店"  model:value="{{ search }}" />
      <view class="iconfont img-icon" catchtap="getStoresBySearch">
        <view class="img-icon-btn"></view>
      </view>
    </view>
    <view class="banner">
      <swiper style='height:{{Height}}' wx:if="{{communityStoreDetails.slideshow_url.length>0}}" indicator-dots="true" autoplay="true" interval="4000" duration="1000" circular="true" indicator-active-color="#ffffff">
        <block wx:for="{{communityStoreDetails.slideshow_url}}" wx:key="id">
          <swiper-item>
            <image class="swiper-img" mode="widthFix" src="{{item}}" mode="scaleToFill" />
          </swiper-item>
        </block>
      </swiper>
    </view>
    <view class="storeTitle">
        <i class="iconfont icon-mendian"></i>
        <span class="text">所属门店</span>
    </view>
    <view class="storesBoxCommunityStore" wx:if="{{!noDatas}}">
    	<cStoreList listStyle="{{openTemplate}}" stores='{{stores}}' bindchangList="getMoreData" page="{{currentPage}}" totalPage='{{totalPage}}' isMoreShow='{{isMoreShow}}'></cStoreList>
    </view>
    <view class="storesBox" wx:if="{{noDatas}}" style="text-align: center">
      <view class="box">
        <view class="none">
          <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/energytank_blank@2x.png"></image>
        </view>
        <view style="margin:0 auto;color: #999999;text-align: center;font-size: 28rpx;">暂无门店信息</view>
      </view>
    </view>
    <!-- <view class="storeList" wx:if="{{ store.length == 0}}">
      <view class="noStore">
        附近没有门店
      </view>
    </view> -->
    <van-popup
      show="{{ show }}"
      closeable
      position="bottom"
      bind:close="popupClose"
      custom-style="	height: 700rpx;"
    >
      <view class="introduceTitle">社区介绍</view>
      <view class="detail"  style="padding-bottom: {{iPnoneBottomBol? '84': '50'}}px;height:620rpx;overflow:scroll;box-sizing:border-box;">
        <view class="box">
          <view class="icon-box">
            <view class="icon"></view>
            <view class="iconTitle">社区地址</view>
          </view>
          <view class="addr">{{ communityStoreDetails.address_name}}{{communityStoreDetails.address}}</view>
        </view>
        <view class="box">
          <view class="icon-box">
            <view class="icon"></view>
            <view class="iconTitle">活动说明</view>
          </view>
          <view class="explain">
            <rich-text nodes="{{ communityStoreDetails.explain }}"></rich-text>
          </view>
        </view>
      </view>
    </van-popup>
</view>
<U_foot></U_foot>
