|
@@ -808,6 +808,7 @@ let vm = new Vue({
|
|
|
vm.calActivityFlag = false;
|
|
|
},
|
|
|
minus:function(value){
|
|
|
+
|
|
|
// 减少数量
|
|
|
for(var i = 0 ; i < this.goodsList.length ; i++){
|
|
|
if(this.goodsList[i].id == value){
|
|
@@ -2389,6 +2390,7 @@ calculateOrderPrice = function() {
|
|
|
* @param type 类型,add:加 minus:减
|
|
|
*/
|
|
|
handleSellVolume = function (currentGoodsDetail, type) {
|
|
|
+ $("#loadingModal").modal('show');
|
|
|
// console.log("处理前商品详情=====>" + JSON.stringify(currentGoodsDetail));
|
|
|
// 当前未被处理的商品数量
|
|
|
let number = currentGoodsDetail.sellVolume;
|
|
@@ -2420,9 +2422,12 @@ handleSellVolume = function (currentGoodsDetail, type) {
|
|
|
vm.totalCount += 1;
|
|
|
vm.totalPrice = currentTotalPrice.add(retailPrice).toString();
|
|
|
vm.actualPrice = currentActualPrice.add(singleActualPaymentAmount).toString();
|
|
|
+ $("#loadingModal").modal('hide');
|
|
|
} else if (res.code === 500) {
|
|
|
+ $("#loadingModal").modal('hide');
|
|
|
alert(res.msg);
|
|
|
} else {
|
|
|
+ $("#loadingModal").modal('hide');
|
|
|
alert("未知异常!请联系管理员!");
|
|
|
}
|
|
|
});
|
|
@@ -2433,6 +2438,7 @@ handleSellVolume = function (currentGoodsDetail, type) {
|
|
|
vm.totalCount -= 1;
|
|
|
vm.totalPrice = currentTotalPrice.subtract(retailPrice).toString();
|
|
|
vm.actualPrice = currentActualPrice.subtract(singleActualPaymentAmount).toString();
|
|
|
+ $("#loadingModal").modal('hide');
|
|
|
}
|
|
|
|
|
|
for (let i = 0; i < vm.goodsList.length; i++) {
|
|
@@ -2442,7 +2448,7 @@ handleSellVolume = function (currentGoodsDetail, type) {
|
|
|
// console.log("被删除的元素====>" + JSON.stringify(splice));
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ $("#loadingModal").modal('hide');
|
|
|
// console.log("处理后商品详情=====>" + JSON.stringify(currentGoodsDetail));
|
|
|
}
|
|
|
|