<!--mycomponent/yz_bindMobile/yz_bindMobile.wxml-->
<view class="yz_bindMobile">
  <van-popup show="{{showVerification}}" round bind:click-overlay="closeShow">
    <view class="verification">
      <view style="padding: 10rpx 0;">
        <view class="name"></view>
        <view class="span">请先绑定手机号</view>
      </view>
      <!-- 验证码弹窗 -->
      <view class="inputBox">
        <view class="name">手机号</view>
        <input type="number" placeholder="请输入手机号" id="phone" value="{{form.mobile}}" bindinput="tapPhone" data-key='phone' />
      </view>
      <view class="inputBox" wx:if="{{imgcode}}">
        <view class="name" style="width: 25%;">图形验证码</view>
        <input type="text" placeholder="请输入图形验证码" style="width: 35%;" id="captcha" value="{{form.captcha}}" bindinput="tapPhone" data-key='cap'/>
        <image class="getcodeImg" style="width: 40%; height: 80rpx; z-index: 999;" src="{{imgcode}}"
          catchtap="getimgdata" />
      </view>
      <view class="inputBox">
        <view class="name">验证码</view>
        <input type="number" placeholder="请输入验证码" id="code" value="{{form.code}}" bindinput="tapPhone" data-key='code'/>
        <view class="getcodeClass" catchtap="VerificationCode" wx:if="{{!count}}">获取验证码</view>
        <view class="getcodeClass" wx:if="{{count}}">{{ count
          }}秒后重新获取</view>
      </view>
      <!-- <view catchtap="showContentTap" wx:if="{{protocol_content}}" class="protocol">{{protocol_title}}</view> -->
      <view class="bottomBox">
        <view class="btn2" catchtap="bindMobile">确认</view>
      </view>
    </view>
  </van-popup>
  <!-- <van-popup v-model="showContent" class="mint-popup-3" closeOnClickModal="true" modal="false"
    style="z-index: 2004; border-radius: 20.992px;">
    <view class="city-info">
      <van-nav-bar title="协议" fixed />

      <view>
        <view style="height: 80px; clear: both;"></view>

        <view id="a_content" v-html="protocol_content"></view>
        <view style="width: 408px;
                  height: 74.016px;
                  background-color: #f04d4d;
                  border-radius: 6.016px;
                  display: flex;
                  align-items: center;
                  justify-content: center;
                  color: #fff;
                  font-size: 38.176px;
                  margin: 0 auto;
                  margin-top: 48px;
                  margin-bottom: 34.016px;" @click="showContent = false">
          确定
        </view>
      </view>
    </view>
  </van-popup> -->
</view>