优化店务小程序店铺设置和表单体验

This commit is contained in:
2026-07-22 15:41:12 +08:00
parent 492cbab0fd
commit b9989f8344
14 changed files with 543 additions and 44 deletions
+9 -4
View File
@@ -1,8 +1,13 @@
<view class="page no-tab">
<view class="card form-card">
<view class="field"><text class="field-label">原密码</text><input password value="{{form.oldPassword}}" data-field="oldPassword" bindinput="onInput" /></view>
<view class="field"><text class="field-label">新密码</text><input password value="{{form.newPassword}}" data-field="newPassword" bindinput="onInput" /></view>
<view class="field"><text class="field-label">确认密码</text><input password value="{{form.confirmPassword}}" data-field="confirmPassword" bindinput="onInput" /></view>
<view class="card password-guide">
<text class="password-guide-title">保护当前账号</text>
<text class="password-guide-desc">修改成功后会重新登录,请确认新密码已经记牢。</text>
</view>
<view class="card form-card">
<view class="field password-field password-field-active"><text class="field-label">原密码</text><input password value="{{form.oldPassword}}" data-field="oldPassword" bindinput="onInput" placeholder="请输入原密码" focus="{{true}}" /></view>
<view class="field password-field"><text class="field-label">新密码</text><input password value="{{form.newPassword}}" data-field="newPassword" bindinput="onInput" placeholder="请输入新密码" /></view>
<view class="field password-field"><text class="field-label">确认密码</text><input password value="{{form.confirmPassword}}" data-field="confirmPassword" bindinput="onInput" placeholder="再次输入新密码" /></view>
</view>
<view class="card password-tip">建议使用 8 位以上密码,包含字母和数字,不要与其他平台共用密码。</view>
<view class="fixed-bottom"><button class="primary-btn" loading="{{saving}}" disabled="{{saving}}" bindtap="save">保存密码</button></view>
</view>
+66
View File
@@ -1 +1,67 @@
.password-guide {
display: flex;
flex-direction: column;
gap: 12rpx;
margin-bottom: 22rpx;
padding: 28rpx;
background: linear-gradient(135deg, #fffdf8, #ecf5ef);
}
.password-guide-title {
color: #27231f;
font-size: 34rpx;
font-weight: 900;
}
.password-guide-desc {
color: #756b61;
font-size: 25rpx;
line-height: 1.5;
}
.form-card {
padding: 8rpx 0;
overflow: hidden;
}
.password-field {
display: flex;
flex-direction: column;
align-items: stretch;
gap: 12rpx;
min-height: 130rpx;
padding: 20rpx 24rpx;
}
.password-field .field-label {
width: auto;
color: #62574d;
font-size: 25rpx;
font-weight: 900;
}
.password-field input {
width: 100%;
min-height: 76rpx;
padding: 0 22rpx;
border: 1rpx solid #eadfd2;
border-radius: 18rpx;
background: #fffdf8;
color: #2d2722;
font-size: 28rpx;
line-height: 76rpx;
}
.password-field-active input {
border-color: #78a78f;
box-shadow: 0 0 0 4rpx rgba(120, 167, 143, 0.12);
}
.password-tip {
margin-top: 22rpx;
padding: 24rpx;
color: #82776c;
font-size: 24rpx;
line-height: 1.5;
}