Browse Source

设置买家中心截至日期90天上限

liusw 7 years ago
parent
commit
98d48765e8

+ 1 - 3
src/main/webapp/resources/js/usercenter/controllers/forstore/seek_purchase_ctrl.js

@@ -176,9 +176,7 @@ define(['app/app'], function (app) {
 
           $scope.nowDate = new Date();
 
-          $scope.deadDate = new Date();
-          $scope.deadDate.setMonth($scope.deadDate.getMonth() + 3);
-          $scope.deadDate.setDate($scope.deadDate.getDate() + 1);
+          $scope.deadDate = new Date(Date.now() + 1000 * 60 * 60 * 24 * 30 * 3);
 
 
           $scope.checkNull = function (code) {