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