完成:公众号超出围栏的提醒功能

This commit is contained in:
2025-06-16 01:49:22 +08:00
parent 6a700e9d4b
commit 942143c678
3 changed files with 66 additions and 5 deletions

View File

@@ -103,6 +103,20 @@ const Query = () => {
// 提交表单
const submitSucceed = (values: any) => {
console.log(values)
if(FormData.image == '[]' || !FormData.image){
Taro.showToast({
title: '请上传车辆图片',
icon: 'error'
});
return false
}
if(!FormData.gpsNo){
Taro.showToast({
title: '请绑定GPS',
icon: 'error'
});
return false
}
updateHjmCar({...FormData, status: 1, driverId: adminId}).then(() => {
Taro.showToast({title: `绑定成功`, icon: 'success'})
setTimeout(() => {