|
|
@@ -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 ;
|
|
|
}
|