调整验证码有效期提示和重发状态

This commit is contained in:
2026-09-16 10:47:01 +08:00
parent e8e8e5a404
commit 5288dbf9b0
4 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -31,7 +31,7 @@
<input class="code-input" value="{{form.code}}" data-field="code" bindinput="onInput" type="text" maxlength="6" placeholder="请输入验证码" />
<button class="code-btn {{countdown > 0 ? 'counting' : ''}}" loading="{{codeLoading}}" disabled="{{codeLoading || countdown > 0}}" bindtap="sendLoginCode">
<text wx:if="{{countdown > 0}}">重新获取 {{countdown}}s</text>
<text wx:else>获取验证码</text>
<text wx:else>{{codeSent ? '重新获取' : '获取验证码'}}</text>
</button>
</view>
</view>