修复bug
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
// 服务器地址(与 request.js 保持一致)
|
// 服务器地址(与 request.js 保持一致)
|
||||||
const baseUrl = 'https://wuyeapi.ckdzkj.com';
|
// const baseUrl = 'https://wuyeapi.ckdzkj.com';
|
||||||
// const baseUrl = "http://192.168.1.6:8080"
|
const baseUrl = "http://192.168.1.6:8080"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 图片上传 Hook
|
* 图片上传 Hook
|
||||||
|
|||||||
@@ -197,8 +197,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 车牌号正则:省份简称 + 城市代码字母 + 5位(蓝牌)或6位(新能源绿牌)字母数字
|
// 车牌号正则:省份简称 + 城市代码字母 + 序号
|
||||||
const CAR_NUM_REGEX = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤川青藏琼宁][A-Z][A-Z0-9]{5,6}$/
|
// 蓝牌:5位字母数字;新能源绿牌:6位,其中第3位或末位必须是 D/F
|
||||||
|
const CAR_NUM_REGEX = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤川青藏琼宁][A-Z](?:[A-Z0-9]{5}|[DF][A-Z0-9]{5}|[A-Z0-9]{5}[DF])$/
|
||||||
|
|
||||||
const saveCar = async () => {
|
const saveCar = async () => {
|
||||||
if (isSubmitting.value) return
|
if (isSubmitting.value) return
|
||||||
@@ -308,14 +309,14 @@
|
|||||||
icon: 'success'
|
icon: 'success'
|
||||||
})
|
})
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
uni.removeStorageSync("carNum")
|
uni.removeStorageSync("carNum")
|
||||||
uni.removeStorageSync("carBrand")
|
uni.removeStorageSync("carBrand")
|
||||||
uni.removeStorageSync("carModel")
|
uni.removeStorageSync("carModel")
|
||||||
uni.removeStorageSync("carColor")
|
uni.removeStorageSync("carColor")
|
||||||
uni.removeStorageSync("carImageUrl")
|
uni.removeStorageSync("carImageUrl")
|
||||||
uni.removeStorageSync("carBrandId")
|
uni.removeStorageSync("carBrandId")
|
||||||
uni.removeStorageSync("checkType")
|
uni.removeStorageSync("checkType")
|
||||||
uni.navigateBack()
|
uni.navigateBack()
|
||||||
}, 1500)
|
}, 1500)
|
||||||
} else {
|
} else {
|
||||||
isSubmitting.value = false
|
isSubmitting.value = false
|
||||||
|
|||||||
@@ -62,7 +62,7 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
<view class="form-item" @click="bindCarClick">
|
<view class="form-item" @click="bindCarClick" v-if="formData.certificationStatus === '1'">
|
||||||
<text class="item-label">绑定车辆</text>
|
<text class="item-label">绑定车辆</text>
|
||||||
<text class="item-placeholder"
|
<text class="item-placeholder"
|
||||||
:class="{selected: formData.bindCar}">{{ formData.bindCar || '请选择' }}</text>
|
:class="{selected: formData.bindCar}">{{ formData.bindCar || '请选择' }}</text>
|
||||||
@@ -115,6 +115,7 @@
|
|||||||
bindCarId: uni.getStorageSync('bindCarId'),
|
bindCarId: uni.getStorageSync('bindCarId'),
|
||||||
owner: uni.getStorageSync('ownerName'),
|
owner: uni.getStorageSync('ownerName'),
|
||||||
ownerId: uni.getStorageSync('ownerId'),
|
ownerId: uni.getStorageSync('ownerId'),
|
||||||
|
certificationStatus:''
|
||||||
})
|
})
|
||||||
|
|
||||||
onShow(() => {
|
onShow(() => {
|
||||||
@@ -274,13 +275,11 @@
|
|||||||
formData.value.parkingSpaceId = data.id
|
formData.value.parkingSpaceId = data.id
|
||||||
uni.setStorageSync('parkingSpaceId', data.id)
|
uni.setStorageSync('parkingSpaceId', data.id)
|
||||||
formData.value.parkingStatus = data.parkingStatus,
|
formData.value.parkingStatus = data.parkingStatus,
|
||||||
uni.setStorageSync('parkingStatus', data.parkingStatus)
|
uni.setStorageSync('parkingStatus', data.parkingStatus)
|
||||||
|
|
||||||
|
|
||||||
formData.value.bindCar = data.carNum
|
formData.value.bindCar = data.carNum
|
||||||
uni.setStorageSync('bindCarName', data.carNum)
|
uni.setStorageSync('bindCarName', data.carNum)
|
||||||
|
|
||||||
|
|
||||||
formData.value.bindCarId = data.carId
|
formData.value.bindCarId = data.carId
|
||||||
uni.setStorageSync('bindCarId', data.carId)
|
uni.setStorageSync('bindCarId', data.carId)
|
||||||
|
|
||||||
@@ -288,6 +287,7 @@
|
|||||||
uni.setStorageSync('ownerName', data.residentName)
|
uni.setStorageSync('ownerName', data.residentName)
|
||||||
formData.value.ownerId = data.residentId
|
formData.value.ownerId = data.residentId
|
||||||
uni.setStorageSync('ownerId', data.residentId)
|
uni.setStorageSync('ownerId', data.residentId)
|
||||||
|
formData.value.certificationStatus = data.certificationStatus
|
||||||
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
<view class="car-plate">{{ item.carNum }}</view>
|
<view class="car-plate">{{ item.carNum }}</view>
|
||||||
<view class="car-model">{{ item.carBrand }}·{{ item.carColor }}</view>
|
<view class="car-model">{{ item.carBrand }}·{{ item.carColor }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="car-bindParkingSpace">{{ item.bindParkingSpace }}</view>
|
<view class="car-bindParkingSpace">{{ item.villageName }}</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- certificationStatus -->
|
<!-- certificationStatus -->
|
||||||
<!-- <view class="status-tag"
|
<!-- <view class="status-tag"
|
||||||
@@ -237,6 +237,7 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
width: 90%;
|
width: 90%;
|
||||||
|
margin-top: 10rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.status-tag {
|
.status-tag {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view v-if="filteredList.length === 0" class="empty-state">
|
<view v-if="filteredList.length === 0" class="empty-state">
|
||||||
<uni-icons type="info" size="60" color="#ccc"></uni-icons>
|
<uni-icons type="info" size="30" color="#ccc"></uni-icons>
|
||||||
<text class="empty-text">暂无数据</text>
|
<text class="empty-text">暂无数据</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user