fix(mobile): 登录页医院选择始终显示+加载提示
This commit is contained in:
@@ -14,12 +14,13 @@
|
||||
<label>密码</label>
|
||||
<input v-model="form.password" type="password" placeholder="请输入密码" class="input" @keyup.enter="handleLogin" />
|
||||
</div>
|
||||
<div class="form-item" v-if="tenantOptions.length > 0">
|
||||
<div class="form-item">
|
||||
<label>医院/租户</label>
|
||||
<select v-model="form.tenantId" class="input" @change="onTenantChange">
|
||||
<option value="">请选择医院</option>
|
||||
<option v-for="t in tenantOptions" :key="t.value" :value="t.value">{{ t.label }}</option>
|
||||
</select>
|
||||
<div v-if="tenantOptions.length === 0 && form.username" class="loading-text">加载医院列表中...</div>
|
||||
</div>
|
||||
<button class="login-btn" @click="handleLogin" :disabled="loading">{{ loading ? '登录中...' : '登 录' }}</button>
|
||||
<div v-if="errorMsg" class="error-msg">{{ errorMsg }}</div>
|
||||
@@ -109,4 +110,5 @@ select.input { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg
|
||||
.login-btn { width: 100%; padding: 14px; background: #1890ff; color: #fff; border: none; border-radius: 8px; font-size: 18px; font-weight: 600; cursor: pointer; }
|
||||
.login-btn:disabled { background: #91d5ff; }
|
||||
.error-msg { color: #f5222d; text-align: center; margin-top: 12px; font-size: 14px; }
|
||||
.loading-text { color: #999; font-size: 12px; margin-top: 4px; }
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user