fix:修复下单失败的圈圈没有消失问题
This commit is contained in:
@@ -330,7 +330,7 @@
|
||||
complete: () => {
|
||||
checkFreeze(orderId).then((res) => {
|
||||
console.log(record.equipmentCategory + ": " + res)
|
||||
if (res.code == 0) {
|
||||
if (res.code === 0) {
|
||||
app.$success("下单成功")
|
||||
setTimeout(() => {
|
||||
uni.hideLoading({})
|
||||
@@ -340,15 +340,18 @@
|
||||
}, 100)
|
||||
} else {
|
||||
app.$error(res.errMsg)
|
||||
uni.hideLoading({})
|
||||
uni.hideLoading({})
|
||||
}
|
||||
})
|
||||
}).catch(err=>{
|
||||
app.$error(err.message)
|
||||
uni.hideLoading({})
|
||||
})
|
||||
|
||||
}
|
||||
});
|
||||
} else {
|
||||
checkFreeze(orderId).then((res) => {
|
||||
if (res.code == 0) {
|
||||
if (res.code === 0) {
|
||||
app.$success("下单成功")
|
||||
setTimeout(() => {
|
||||
uni.hideLoading({})
|
||||
@@ -360,7 +363,10 @@
|
||||
uni.hideLoading({})
|
||||
app.$error(res.errMsg)
|
||||
}
|
||||
})
|
||||
}).catch(err=>{
|
||||
app.$error(err.message)
|
||||
uni.hideLoading({})
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user