|
|
@@ -23,6 +23,10 @@ define([ 'app/app' ], function(app) {
|
|
|
name: 'PREPARE',
|
|
|
message: '待审核'
|
|
|
},
|
|
|
+ CHECK: {
|
|
|
+ name: 'CHECK',
|
|
|
+ message: '待审核'
|
|
|
+ },
|
|
|
PASS: {
|
|
|
name: 'PASS',
|
|
|
message: '已通过'
|
|
|
@@ -116,8 +120,11 @@ define([ 'app/app' ], function(app) {
|
|
|
var date = new Date();
|
|
|
console.log('TIMESTAMP', date.getTime());
|
|
|
angular.forEach(data.content, function (application) {
|
|
|
- if (application.status === $scope.authType.PREPARE.name) {
|
|
|
+ if (application.status === $scope.authType.PREPARE.name || application.status === $scope.authType.CHECK.name) {
|
|
|
var time = date - application.createTime;
|
|
|
+ if (application.status === $scope.authType.CHECK.name) {
|
|
|
+ time = date - application.authTime;
|
|
|
+ }
|
|
|
// 计算相差天数
|
|
|
var days = Math.floor(time / (24 * 3600 * 1000));
|
|
|
// 计算相差小时数
|