@@ -301,6 +301,26 @@
this.adminShow = true
return
}
+ if (this.cloudWarehouse === 1) {
+ uni.showLoading({
+ title: '加载中',
+ mask: true
+ });
+ addToCart({
+ ...this.form,
+ whetherIntegral: '0',
+ detailsText: ''
+ }).then(res => {
+ uni.hideLoading();
+ uni.showToast({
+ title: "加入购物车成功",
+ icon: "none",
+ }).catch(err => {
+ })
+ return;
+ }
if (this.inventoryDataForm.storeInventory == 0 && this.inventoryDataForm.storeInventoryShare > 0) {
let _this = this
uni.showModal({