|
@@ -123,8 +123,8 @@
|
|
icon: 'none',
|
|
icon: 'none',
|
|
duration: 2000
|
|
duration: 2000
|
|
})
|
|
})
|
|
- uni.navigateTo({
|
|
|
|
- url: `/pages/attestation/indexThree`
|
|
|
|
|
|
+ uni.navigateBack({
|
|
|
|
+ delta:3
|
|
})
|
|
})
|
|
} else if (res.data.code ==
|
|
} else if (res.data.code ==
|
|
'ERROR002') {
|
|
'ERROR002') {
|
|
@@ -132,25 +132,14 @@
|
|
title: '提示',
|
|
title: '提示',
|
|
content: '司机身份证号重复,添加失败',
|
|
content: '司机身份证号重复,添加失败',
|
|
});
|
|
});
|
|
- uni.navigateTo({
|
|
|
|
- url: `/pages/attestation/indexThree`
|
|
|
|
- })
|
|
|
|
} else if (res.data.code == 'ERROR003') {
|
|
} else if (res.data.code == 'ERROR003') {
|
|
uni.showModal({
|
|
uni.showModal({
|
|
title: '提示',
|
|
title: '提示',
|
|
content: '收款人身份证号重复,添加失败',
|
|
content: '收款人身份证号重复,添加失败',
|
|
});
|
|
});
|
|
- uni.navigateTo({
|
|
|
|
- url: `/pages/attestation/indexThree`
|
|
|
|
- })
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- } else if (res.cancel) {
|
|
|
|
- uni.showToast({
|
|
|
|
- title: '提交失败',
|
|
|
|
- icon: 'none',
|
|
|
|
- duration: 2000
|
|
|
|
- })
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -162,34 +151,21 @@
|
|
icon: 'none',
|
|
icon: 'none',
|
|
duration: 2000
|
|
duration: 2000
|
|
})
|
|
})
|
|
- uni.navigateTo({
|
|
|
|
- url: `/pages/attestation/indexThree`
|
|
|
|
|
|
+ uni.navigateBack({
|
|
|
|
+ delta:3
|
|
})
|
|
})
|
|
} else if (res.data.code =='ERROR002') {
|
|
} else if (res.data.code =='ERROR002') {
|
|
uni.showModal({
|
|
uni.showModal({
|
|
title: '提示',
|
|
title: '提示',
|
|
content: '司机身份证号重复,添加失败',
|
|
content: '司机身份证号重复,添加失败',
|
|
});
|
|
});
|
|
- uni.navigateTo({
|
|
|
|
- url: `/pages/attestation/indexThree`
|
|
|
|
- })
|
|
|
|
} else if (res.data.code == 'ERROR003') {
|
|
} else if (res.data.code == 'ERROR003') {
|
|
uni.showModal({
|
|
uni.showModal({
|
|
title: '提示',
|
|
title: '提示',
|
|
content: '收款人身份证号重复,添加失败',
|
|
content: '收款人身份证号重复,添加失败',
|
|
});
|
|
});
|
|
- uni.navigateTo({
|
|
|
|
- url: `/pages/attestation/indexThree`
|
|
|
|
- })
|
|
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- // } else if (res.cancel) {
|
|
|
|
- // uni.showToast({
|
|
|
|
- // title: '提交失败',
|
|
|
|
- // icon: 'none',
|
|
|
|
- // duration: 2000
|
|
|
|
- // })
|
|
|
|
- // }
|
|
|
|
}
|
|
}
|
|
}).catch(res => {
|
|
}).catch(res => {
|
|
uni.showToast({
|
|
uni.showToast({
|