TM
2020-12-16 1a083593cc3224ea8509690a1cfc12d8726193ab
pages/index/index.axml
@@ -5,11 +5,12 @@
    <text class="modeText">{{modeText}}</text>
  </view>
  <view class="login-info-view">
    <input-item type="number"  onInput="setUserNo"    value="{{userNo}}" labelCls="phone-label" className="phone-ipt" maxlength="11" placeholder="请输入手机号" clear="{{true}}">
    <input-item type="number" onInput="setUserNo" value="{{userNo}}" labelCls="phone-label" className="phone-ipt" maxlength="11" placeholder="请输入手机号" clear="{{false}}">
    </input-item>
    <input-item a:if="{{!showCode}}" onInput="setPassword" value="{{password}}" type="text" labelCls="password-label" className="password-ipt" maxlength="12" password="{{true}}" placeholder="请输入密码" clear="{{true}}">
    <view style="padding-bottom:10px;"></view>
    <input-item a:if="{{!showCode}}" onInput="setPassword" value="{{password}}" type="text" labelCls="password-label" className="password-ipt" maxlength="12" password="{{true}}" placeholder="请输入密码" clear="{{false}}">
    </input-item>
    <verify-code a:if="{{showCode}}" label="{{''}}" inputCls="code-ipt" labelCls="code-label" maxlength="4" countDown="{{60}}" initActive="{{false}}" onSend="onSend" onInput="inputVerCode" value="{{verCode}}">
    <verify-code a:if="{{showCode && userNo && userNo.length == 11}}" label="{{''}}" inputCls="code-ipt" labelCls="code-label" maxlength="4" countDown="{{60}}" clear="{{false}}" initActive="{{false}}" onSend="onSend" onInput="inputVerCode" value="{{verCode}}">
    </verify-code>
  </view>
  <button type="primary" class="login-btn" style="{{background:userStyle.gradientColor}}" onTap="login">登录</button>