Przeglądaj źródła

分期付款总金额修改

yangc 8 lat temu
rodzic
commit
a6581af052

+ 3 - 3
src/main/webapp/resources/js/vendor/controllers/forstore/purchase_detail.js

@@ -146,7 +146,7 @@ define(['app/app'], function(app) {
 				item.price = '';
 			} else if (price.split('.').length>1&&price.split('.').last().length > 2) {
 				toaster.pop('warning', '提示', '输入小数点位数不能大于2');
-			} else if (price > $scope.purchase.currentTotal) {
+			} else if (price > $scope.purchase.ensurePrice) {
 				toaster.pop('warning', '提示', '输入金额不得大于或等于总支付金额');
 			}
 			// $scope.totalNum();
@@ -227,7 +227,7 @@ define(['app/app'], function(app) {
 					return ;
 				}
 			}
-			if ($scope.totalPrice.toFixed(2) != $scope.purchase.price) {
+			if ($scope.totalPrice.toFixed(2) != $scope.purchase.ensurePrice) {
 				toaster.pop('warning', '提示', '输入金额须等于总支付金额');
 				return ;
 			}
@@ -279,7 +279,7 @@ define(['app/app'], function(app) {
 					return ;
 				}
 			}
-			if ($scope.totalPrice != $scope.purchase.price) {
+			if ($scope.totalPrice != $scope.purchase.ensurePrice) {
 				toaster.pop('warning', '提示', '输入金额须等于总支付金额');
 				return ;
 			}