loading调整
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user