!114 Checkout request returns error message display

* Optimize checkout page error request prompt
This commit is contained in:
pushuo 2023-06-05 03:49:34 +00:00 committed by Edward Yang
parent fdbe7120c0
commit 43f6fdbb40
1 changed files with 5 additions and 0 deletions

View File

@ -165,6 +165,11 @@
const updateCheckout = (key, value, callback) => {
$http.put('/checkout', {[key]: value}).then((res) => {
if (res.status == 'fail') {
layer.msg(res.message, ()=>{})
return;
}
updateTotal(res.totals)
if (typeof callback === 'function') {