This commit is contained in:
2026-08-15 22:16:58 +08:00
parent a344aaedf3
commit aed71d237d
15 changed files with 13296 additions and 306 deletions
+57 -54
View File
@@ -14,57 +14,50 @@
<view class="form-card">
<view class="form">
<view class="field">
<u-input
<input
class="field-input"
v-model="form.tenant_name"
type="text"
placeholder="租户名称"
border="none"
color="#303133"
:customStyle="inputStyle"
:placeholderStyle="placeholderStyle"
placeholder-class="field-placeholder"
/>
</view>
<view class="field">
<u-input
<input
class="field-input"
v-model="form.account"
type="text"
placeholder="账号"
border="none"
color="#303133"
:customStyle="inputStyle"
:placeholderStyle="placeholderStyle"
placeholder-class="field-placeholder"
/>
</view>
<view class="field">
<u-input
<input
class="field-input"
v-model="form.name"
type="text"
placeholder="姓名"
border="none"
color="#303133"
:customStyle="inputStyle"
:placeholderStyle="placeholderStyle"
placeholder-class="field-placeholder"
/>
</view>
<view class="field">
<u-input
<input
class="field-input"
v-model="form.phone"
placeholder="手机号"
type="number"
type="tel"
maxlength="11"
border="none"
color="#303133"
:customStyle="inputStyle"
:placeholderStyle="placeholderStyle"
placeholder="手机号"
placeholder-class="field-placeholder"
/>
</view>
<view class="field field-row">
<u-input
<input
class="field-input"
v-model="form.sms_code"
placeholder="短信验证码"
type="number"
maxlength="6"
border="none"
color="#303133"
:customStyle="inputStyle"
:placeholderStyle="placeholderStyle"
placeholder="短信验证码"
placeholder-class="field-placeholder"
/>
<text
class="code-link"
@@ -73,35 +66,30 @@
>{{ countdown > 0 ? `${countdown}s` : (codeLoading ? '发送中' : '获取验证码') }}</text>
</view>
<view class="field">
<u-input
<input
class="field-input"
v-model="form.email"
type="text"
placeholder="邮箱(可选)"
border="none"
color="#303133"
:customStyle="inputStyle"
:placeholderStyle="placeholderStyle"
placeholder-class="field-placeholder"
/>
</view>
<view class="field">
<u-input
<input
class="field-input"
v-model="form.password"
placeholder="密码"
type="password"
border="none"
color="#303133"
:customStyle="inputStyle"
:placeholderStyle="placeholderStyle"
placeholder="密码"
placeholder-class="field-placeholder"
/>
</view>
<view class="field">
<u-input
<input
class="field-input"
v-model="form.confirm_password"
placeholder="确认密码"
type="password"
border="none"
color="#303133"
:customStyle="inputStyle"
:placeholderStyle="placeholderStyle"
placeholder="确认密码"
placeholder-class="field-placeholder"
/>
</view>
@@ -138,14 +126,6 @@ const form = reactive({
confirm_password: ''
})
const inputStyle = {
backgroundColor: 'transparent',
padding: '0 8rpx',
height: '96rpx',
fontSize: '28rpx'
}
const placeholderStyle = 'color: #909399; font-size: 28rpx'
function startCountdown() {
countdown.value = 60
if (timer) clearInterval(timer)
@@ -291,12 +271,35 @@ onUnmounted(() => {
background: $color-bg-page;
border-radius: $radius-md;
padding: 0 24rpx;
overflow: hidden;
min-height: 96rpx;
}
.field-input {
width: 100%;
height: 96rpx;
line-height: 96rpx;
font-size: 32rpx;
color: $color-text;
background: transparent;
border: none;
outline: none;
box-sizing: border-box;
-webkit-appearance: none;
}
.field-placeholder {
color: $color-text-muted;
font-size: 32rpx;
}
.field-row {
display: flex;
align-items: center;
.field-input {
flex: 1;
min-width: 0;
}
}
.code-link {