修改登录页样式、车牌号输入问题、定位加载问题、联系物业权限问题

This commit is contained in:
zhouyanli
2026-05-23 16:44:29 +08:00
parent 6b520fb70e
commit c4d91787b5
14 changed files with 278 additions and 81 deletions

View File

@@ -58,6 +58,8 @@
<view class="car-number-wrap">
<input class="car-input" v-for="(item, index) in 8" :key="index"
:value="form.carNumber[index]" @input="(e) => onCarInput(index, e)"
:focus="carFocusIndex === index"
@focus="carFocusIndex = index"
type="text" />
</view>
</view>
@@ -170,6 +172,9 @@
const addressModalRef = ref(null);
const genderModalRef = ref(null);
// 车牌号输入框聚焦索引
const carFocusIndex = ref(0);
// =========方法===========
// 获取房屋列表
const fetchHouseList = async () => {
@@ -228,7 +233,13 @@
// 车牌号单格输入
const onCarInput = (index, e) => {
const val = (e.detail && e.detail.value !== undefined) ? e.detail.value : (e.target ? e.target.value : '');
form.carNumber[index] = (val || '').toUpperCase().slice(0, 1);
const upperVal = (val || '').toUpperCase().slice(0, 1);
form.carNumber[index] = upperVal;
// 输入一位后自动聚焦到下一个
if (upperVal && index < 7) {
carFocusIndex.value = index + 1;
}
};
// 时间校验