<!-- <navbar back home text="门店详情"></navbar>
<view style="height:{{navigationBarHeight}} "></view> -->
<view>
  <swiper class="index-slide" circular="false">
    <block tt:for="{{imglist}}" tt:key="unique">
      <swiper-item>
        <image src="{{item}}" class="index-slide-image" />
      </swiper-item>
    </block>
  </swiper>
  <view class="dots">
    <block tt:for="{{imglist}}" tt:key="unique">
      <view class="dot{{index == swiperCurrent ? ' active' : ''}}"></view>
    </block>
  </view>
  <view class='merchant-detail'>
    <!-- 品牌信息 -->
    <view class='merchant-brand' style='position:relative;z-index:9'>
      <!-- <view>
        <image src='{{data.merchantImgUrl}}' mode='aspectFill'></image>
      </view> -->
      <view>
        <text>{{data.merchantName}}</text>
        <text class='title' tt:if="{{data.title!=''}}">{{data.title}}</text>
      </view>
      <!-- <view class='fenxiang'   tt:if="{{data.type!=50&&data.type!=51}}" bindtap='showshare'>
        <image  src='{{fenxiang}}' mode="widthFix"></image>
        <text class='gift'>分享</text>
      </view> -->
    </view>
    <!-- 一个商铺 -->
    <!-- 多个商铺 -->
    <view class='merchant-shop shopHr'>
      <view class='clearfix' style='width:100%;'>
        <view class='wz'>
          <text>商户位置:</text>
        </view>
        <view class='merchants'>
          <text tt:for="{{shopVoList}}" tt:key="{{index}}">
            {{item.buildingName}}{{item.floorName}}--{{item.shopNumber}}
          </text>
        </view>
      </view>
    </view>
    <!-- 联系方式 -->
    <view class='merchant-shop shopHr' tt:if="{{data.linkLinePhone}}">
      <view class='clearfix' style='width:100%;'>
        <view class='fl'>
          <text>客服电话:</text>
        </view>
        <view class='frHr'>
          <view style='display:inline-block;text-align:left;margin-right:20rpx;' class='posi'>
            <text tt:if="{{data.linkLinePhone}}">{{data.linkLinePhone}}</text>
            <text tt:else>{{data.merchantLinkPhone}}</text>
          </view>
        </view>
      </view>
    </view>
    <!-- 商户活动 -->
    <view class='merchant-shop shopHr' tt:if="{{data.actionDesc}}">
      <view class='notes'>
        <view>
          <text>商户活动：</text>
        </view>
        <view>
          <text style="line-height:38rpx;">{{data.actionDesc}}</text>
        </view>
      </view>
    </view>
    <!-- 商户简介 -->
    <view class='merchant-phones'>
      <view class="swiper-tab">
        <view class="swiper-tab-item  " data-current="0" bindtap="clickTab">
          优惠信息
          <view class="{{currentTab==0?'active-tab':''}}"></view>
        </view>
        <view class="swiper-tab-item" data-current="1" bindtap="clickTab">
          商家简介
          <view class="{{currentTab==1?'active-tab':''}}"></view>
        </view>
      </view>
      <view class='swiperactive'>
        <!-- 商户对应的活动 -->
        <view tt:if="{{currentTab==0}}">
          <view class='coupons clearfix'>
            <c-coupons tt:if="{{couponList.length!=0}}" tt:for="{{couponList}}" from="fromMerchant"
              paramAtoB="{{loading}}" tt:key="unique" data="{{item}}" list="{{couponList}}" />
          </view>
          <view class='dingdan' tt:if="{{couponList.length==0}}">
            <image src="{{noCoupon}}" mode="widthFix"></image>
            <text>请您敬请期待</text>
            <text>我们正在筹备一大波优惠活动</text>
          </view>
          <view class="loading" tt:if="{{loading}}">
            <image src="{{loadingUrl}}" mode="widthFix"></image>
            {{content}}
          </view>
          <view class='loadingtext' tt:if="{{loadingtext}}">{{loadingtext}}</view>
        </view>
        <!-- 商户简介 -->
        <view tt:elif="{{currentTab==1}}" class='dingdan'>
          <image src="{{noMerchant}}" tt:if="{{!data.introduction}}" mode="widthFix"></image>
          <text class='have' tt:if="{{data.introduction}}">{{data.introduction}}</text>
          <text tt:if="{{!data.introduction}}">信息完善中，敬请期待~</text>
        </view>
      </view>
      <view class='merchant-info'>
        <view hidden='currentTabsIndex!=0'>
          <text tt:if="{{data.summary}}">{{data.summary}}</text>
        </view>
      </view>
    </view>
    <!-- 分享弹框 -->
    <view class='modal' tt:if="{{isshare}}" bindtap='hidemodal'>
      <view class='modal-content'>
        <view>
          <button class='share user-motto' data-id="{{data.id}}" data-title='{{data.title}}' id="shareBtn"
            open-type="share" hover-class="other-button-hover"></button>
          <image src='./../../../../assets/images/wechat.png' mode='aspectFit'></image>
          <text>微信好友</text>
        </view>
        <view bindtap='showPoster'>
          <image src='./../../../../assets/images/picture.png' mode='aspectFit'></image>
          <text>生成海报</text>
        </view>
      </view>
    </view>
  </view>

</view>