<view class="logoin_wrap">
  <view class='logo'>
    <image src='{{logo}}' mode="widthFix"></image>
  </view>
  <form bindsubmit='getLoginInfo' tt:if="{{!ifShowShop}}">
    <view class='login'>
      <view>
        <input type='number' name='phone' value='{{phone}}' placeholder='请输入手机号' placeholder-style='color:#BFBFBF;'
          maxlength='11' class='inp' />
      </view>
      <view>
        <input password='{{password}}' focus='{{focus}}' class='inp' placeholder='请输入密码'
          placeholder-style='color:#BFBFBF;' name='pwd' value='{{pwd}}' />
        <image class='showpassword' bindtap='showpassword' src='../../assets/images/password.png' mode='widthFix'>
        </image>
      </view>
    </view>
    <navigator url='../index/index' open-type='navigate' hover-class='none'>
    </navigator>
    <button form-type='submit' class='button' hover-class='active'>登录管理门店</button>
    <!-- <view class='forget clearfix'>
      <text class='fr' bindtap='forgetPwd'>忘记密码</text>
    </view> -->
    <!-- <view>
      <button class="phone" tt:if="{{!ifAlBoss}}" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber"><image class='adminlogo' src='../../assets/images/admin.png' mode='widthFix'></image>数据塔台</button>
      
      <button class="phone" tt:if="{{ifAlBoss}}" bindtap="getPhoneNumber"><image class='adminlogo' src='../../assets/images/admin.png' mode='widthFix'></image>数据塔台</button>
    </view> -->
  </form>
  <view class="page" tt:if="{{ifShowShop}}">
    <view class="title">请选择要管理的门店</view>
    <view class="shopBox" tt:for="{{merchantList}}" tt:key="{{item.tenantId}}" bindtap="goShop"
      data-id="{{item.buUserId}}">
      <view class="imgBox">
        <image class="imgInside" src="{{item.imgUrl}}"></image>
      </view>
      <view class="infoBox">
        <view class="shop">{{item.merchantName}}</view>
        <view class="mainShop">{{item.tenantName}}</view>
        <view class="address">{{}}</view>
      </view>
    </view>

  </view>
  <view class='defaultLogo' tt:if="{{merchantList.legth>2}}">
    <text>POWERED BY IFORMALL</text>
  </view>
  <view class='defaultLogo2' tt:else>
    <text>POWERED BY IFORMALL</text>
  </view>
</view>