|
@@ -105,7 +105,7 @@ var payContainer = new Vue({
|
|
|
_self.obligation = data.shopOrder.obligation;// 待付金额
|
|
|
_self.payableAmount = data.shopOrder.realPay;
|
|
|
_self.receiptAmount = data.shopOrder.receiptAmount;
|
|
|
- _self.balanceAmount = ( _self.obligation - _self.receiptAmount).toFixed(2) - _self.payInfo.payAmount;
|
|
|
+ _self.balanceAmount = (_self.obligation*100 - _self.payInfo.payAmount*100)/100;
|
|
|
_self.payAmount = (_self.payableAmount - _self.receiptAmount).toFixed(2);
|
|
|
_self.paySuccessCounter = data.shopOrder.paySuccessCounter;
|
|
|
_self.onlinePay = data.onlinePay;
|
|
@@ -361,7 +361,7 @@ var payContainer = new Vue({
|
|
|
}
|
|
|
});
|
|
|
}else{
|
|
|
- PayApi.PayOrderPayWhetherSuccess({shopOrderId: _self.payInfo.shopOrderId, paySuccessCounter:_self.paySuccessCounter},function(response){
|
|
|
+ PayApi.PayOrderPayWhetherSuccess({shopOrderId: _self.payInfo.shopOrderId, paySuccessCounter:_self.paySuccessCounter,shopOrderId:_self.payInfo.shopOrderId},function(response){
|
|
|
_self.isPayAlert = false;
|
|
|
if(response.code === 0){
|
|
|
_self.windowLocationHref('success');
|