loading调整

This commit is contained in:
2024-05-29 08:58:12 +08:00
parent 3cd40fa8a2
commit cf013208ff
5 changed files with 64 additions and 54 deletions

View File

@@ -200,26 +200,29 @@
createBy: "admin",
firstNum: this.firstNum || 0
};
GoodsActionApi.doUnpackingGoods(data).then((res) => {
if (res.code === 200) {
uni.showModal({
title: '提示',
content: '拆箱成功!' + res.data.description,
showCancel: false,
confirmText: '确认'
});
this.modalShow = false;
this.loading = false;
this.clear();
} else {
uni.showToast({
icon: 'error',
title: '拆箱失败!'
});
this.modalShow = false;
this.loading = false;
}
});
uni.$u.throttle(()=>{
GoodsActionApi.doUnpackingGoods(data).then((res) => {
if (res.code === 200) {
uni.showModal({
title: '提示',
content: '拆箱成功!' + res.data.description,
showCancel: false,
confirmText: '确认'
});
this.modalShow = false;
this.loading = false;
this.clear();
} else {
uni.showToast({
icon: 'error',
title: '拆箱失败!'
});
this.modalShow = false;
this.loading = false;
}
});
},5000)
},
modalCancel(){
this.modalShow = false;