|
@@ -761,22 +761,30 @@ var shoppingConfirm = new Vue({
|
|
_self.isModelAlert = true;
|
|
_self.isModelAlert = true;
|
|
_self.isShowConfirm = false;
|
|
_self.isShowConfirm = false;
|
|
_self.submitLoading = false;
|
|
_self.submitLoading = false;
|
|
- _self.isModelAlertText = res.msg;
|
|
|
|
- _self.confirmParam.payInfo = JSON.parse(_self.confirmParam.payInfo);
|
|
|
|
- _self.confirmParam.orderInfo = JSON.parse(_self.confirmParam.orderInfo);
|
|
|
|
- _self.confirmParam.orderInvoice = JSON.parse(_self.confirmParam.orderInvoice);
|
|
|
|
|
|
+ _self.isModelAlertText = '您已有2个采购金额过小的订单,本次不能再进行采购。您可使用微信扫描以下二维码,进入采美旗下“呵呵商城”小程序购买小额商品。';
|
|
|
|
+ _self.formatConfirmParam();
|
|
|
|
+ }else if(res.code === -4){
|
|
|
|
+ _self.isModelAlert = true;
|
|
|
|
+ _self.isShowConfirm = false;
|
|
|
|
+ _self.submitLoading = false;
|
|
|
|
+ _self.isModelAlertText = '采美豆不足,不能提交订单。您可使用微信扫描以下二维码,进入采美旗下“呵呵商城”小程序购买小额商品。';
|
|
|
|
+ _self.formatConfirmParam();
|
|
}else{
|
|
}else{
|
|
CAIMEI.Alert(res.msg,'确定',true, function(){
|
|
CAIMEI.Alert(res.msg,'确定',true, function(){
|
|
setTimeout(function(){
|
|
setTimeout(function(){
|
|
_self.submitLoading = false;
|
|
_self.submitLoading = false;
|
|
- _self.confirmParam.payInfo = JSON.parse(_self.confirmParam.payInfo);
|
|
|
|
- _self.confirmParam.orderInfo = JSON.parse(_self.confirmParam.orderInfo);
|
|
|
|
- _self.confirmParam.orderInvoice = JSON.parse(_self.confirmParam.orderInvoice);
|
|
|
|
|
|
+ _self.formatConfirmParam();
|
|
},500);
|
|
},500);
|
|
});
|
|
});
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ formatConfirmParam:function(){// 还原提交订单参数格式
|
|
|
|
+ var _self = this;
|
|
|
|
+ _self.confirmParam.payInfo = JSON.parse(_self.confirmParam.payInfo);
|
|
|
|
+ _self.confirmParam.orderInfo = JSON.parse(_self.confirmParam.orderInfo);
|
|
|
|
+ _self.confirmParam.orderInvoice = JSON.parse(_self.confirmParam.orderInvoice);
|
|
|
|
+ },
|
|
handleCloseModel:function () {
|
|
handleCloseModel:function () {
|
|
this.isModelAlert = false;
|
|
this.isModelAlert = false;
|
|
this.isShowConfirm= true;
|
|
this.isShowConfirm= true;
|