<view id="login">
  <!-- 输入框 -->
  <view id="loginCon">
    <view class="loginConItem loginPhone">
      <text class="loginLabel">手机号</text>
      <input id="phoneInput" bindinput="phoneChange" maxlength="11" type="number" placeholder="输入手机号" />
    </view>
    <view class="loginConItem loginCode">
      <text class="loginLabel">验证码</text>
      <view id="codeRight">
        <input id="codeInput" maxlength="4" bindinput="codeChange" type="number" placeholder="输入验证码" />
        <button id="code" disabled="{{disabled}}" bindtap='getCode'>{{text}}</button>
      </view>
    </view>
  </view>
  <!-- 登录按钮 -->
  <view id="loginBtn">
    <button id="toLogin" open-type="getUserInfo" lang="zh_CN" bindgetuserinfo='toLogin'>无需注册，立即登录</button>
  </view>
  <!-- 提示 -->
  <view id="loginTip">
    <image src="../../assets/tips.png" />
    <text bindtap="showCodePopup">收不到验证码？</text>
  </view>
  <!-- 验证码弹窗 -->
  <view id="codePopup" hidden="{{flag}}">
    <view id="codePopupCon">
      <view id="codePopupTop">
        <text id="codePopupTitle">收不到验证码？</text>
        <text class="codePopupItme">•请确认您当前使用的手机号是否欠费</text>
        <text class="codePopupItme">•请前往短信列表查看是否已经收到验证码</text>
        <text class="codePopupItme">•您所处的位置是否网络不好造成信号延迟，请移动到相对开阔的位置再次尝试</text>
      </view>
      <view id="codePopupKnow" bindtap="codePopupKnow">知道了</view>
    </view>
  </view>
</view>
