31 lines
1.7 KiB
Plaintext
31 lines
1.7 KiB
Plaintext
<navigation-bar title="修改密码" showBack="{{true}}" fallbackPath="/pages/settings/index" color="{{navThemeColor || '#4A443F'}}" background="{{navThemeBackground || '#FDFBF9'}}"></navigation-bar>
|
|
|
|
<view class="page-shell" style="{{themeVars}}">
|
|
<view class="page-content">
|
|
<view class="page-hero">
|
|
<text class="hero-kicker">Security</text>
|
|
<text class="hero-title">修改密码</text>
|
|
<text class="hero-desc">使用绑定手机号验证码完成密码更新</text>
|
|
</view>
|
|
|
|
<view class="page-card form-card">
|
|
<view class="field-block">
|
|
<text class="field-label">验证码</text>
|
|
<view class="code-row">
|
|
<input class="field-input" value="{{form.verificationCode}}" data-field="verificationCode" bindinput="handleInput" placeholder="请输入验证码" placeholder-class="field-placeholder" />
|
|
<view class="ghost-btn" bindtap="sendCode">发送</view>
|
|
</view>
|
|
</view>
|
|
<view class="field-block">
|
|
<text class="field-label">新密码</text>
|
|
<input class="field-input" password value="{{form.password}}" data-field="password" bindinput="handleInput" placeholder="至少8位,含字母和数字" placeholder-class="field-placeholder" />
|
|
</view>
|
|
<view class="field-block">
|
|
<text class="field-label">确认密码</text>
|
|
<input class="field-input" password value="{{form.confirmPassword}}" data-field="confirmPassword" bindinput="handleInput" placeholder="再次输入新密码" placeholder-class="field-placeholder" />
|
|
</view>
|
|
<button class="primary-btn" loading="{{saving}}" bindtap="savePassword">更新密码</button>
|
|
</view>
|
|
</view>
|
|
</view>
|