完成:公众号超出围栏的提醒功能
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user