Kaynağa Gözat

Merge remote-tracking branch 'origin/dev' into dev

dongbw 8 yıl önce
ebeveyn
işleme
9678c85252

+ 3 - 3
donate-console/src/main/webapp/WEB-INF/views/publicOfferingCertification.html

@@ -132,7 +132,7 @@
         .detail .agree div.read{
             margin-top: -2px;
         }
-        .detail a.btn{
+        .detail button.btn{
             margin: 30px 0 47px 0;
             display: inline-block;
             width:160px;
@@ -143,7 +143,7 @@
             border: none;
             outline: none;
         }
-        .detail a.btn:hover{
+        .detail button.btn:hover{
             background: #be3b1b;
         }
         /*机构信息*/
@@ -589,7 +589,7 @@
                                         <input type="checkbox" class="fl"/>
                                         <div class="fl read"><span>我已经阅读并同意<a href="http://lj.ubtob.com/userAgreement" target="_blank">《优软一元捐用户协议》</a></span></div>
                                     </div>
-                                    <a class="btn" href="publicOfferingCertification1">确定,下一步</a>
+                                    <button class="btn" ng-disabled="!checked" ng-click="stepNext(checked, 1)">确定,下一步</button>
                                 </div>
                             </div>
                         </div>

+ 44 - 6
donate-console/src/main/webapp/resources/js/index/app.js

@@ -566,6 +566,7 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
      */
     app.controller('SelectInstitutionsNatureCtrl', ['$scope', 'toaster', 'Organization', '$location', 'AuthenticationService', 'BaseService', '$rootScope',
         function ($scope, toaster, Organization, $location, AuthenticationService, BaseService, $rootScope) {
+            $scope.loading = true;
             BaseService.scrollBackToTop();
             $rootScope.tree = 'user';
             $rootScope.thief = 'newOrg';
@@ -578,17 +579,14 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
                         $scope.org = data;
                     }, function() {
                         toaster.pop('error', '注册情况加载失败');
+                        $scope.loading = false;
                     });
                 }
                 if (data == null || !data.content) {
                     //$scope.isAuthed = false;
                     AuthenticationService.redirectSignin();
                 }
-            });
-            Organization.getByUuid({uuid : $scope.userUU}, {}, function(data) {//10041558
-                $scope.org = data;
-            }, function() {
-                toaster.pop('error', '注册情况加载失败');
+                $scope.loading = false;
             });
 
             //公益机构注册
@@ -706,6 +704,7 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
      */
     app.controller('CertificationStep0Ctrl', ['$scope', 'toaster', 'Organization', '$location', 'AuthenticationService', 'BaseService', '$rootScope',
         function ($scope, toaster, Organization, $location, AuthenticationService, BaseService, $rootScope) {
+            $scope.loading = true;
             BaseService.scrollBackToTop();
             $rootScope.tree = 'user';
             $rootScope.thief = 'newOrg';
@@ -736,12 +735,14 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
                         $scope.checked = true;
                     }, function() {
                         toaster.pop('error', '注册情况加载失败');
+                        $scope.loading = false;
                     });
                 }
                 if (data == null || !data.content) {
                     //$scope.isAuthed = false;
                     AuthenticationService.redirectSignin();
                 }
+                $scope.loading = false;
             });
 
         }]);
@@ -751,6 +752,7 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
      */
     app.controller('CertificationStep1Ctrl', ['$scope', 'BaseService', '$http', '$rootScope', '$timeout', '$location', '$filter', 'toaster', 'Organization', 'AuthenticationService',
         function ($scope, BaseService, $http, $rootScope, $timeout, $location, $filter, toaster, Organization, AuthenticationService) {
+            $scope.loading = true;
             BaseService.scrollBackToTop();
             $rootScope.tree = 'user';
             $rootScope.thief = 'newOrg';
@@ -774,6 +776,7 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
                         $scope.org = data;
                         orgCopy = angular.copy($scope.org);
                     }, function() {
+                        $scope.loading = false;
                         toaster.pop('error', '注册情况加载失败');
                     });
                 }
@@ -781,6 +784,7 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
                     //$scope.isAuthed = false;
                     AuthenticationService.redirectSignin();
                 }
+                $scope.loading = false;
             });
 
             // 获取地址信息
@@ -807,9 +811,11 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
 
             //提交
             $scope.saveStep1 = function (org, orgType, invalid) {
+                $scope.loading = true;
                 if (invalid == true) {
                     $scope.submited = true;
                     BaseService.scrollBackToTop();
+                    $scope.loading = false;
                     return;
                 }
                 if (orgCopy == org) {
@@ -844,6 +850,7 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
                         if (data.error) {
                             toaster.pop('error', '提示', data.error);
                         }
+                        $scope.loading = false;
 
                     }).error(function (data, status) {
                         $scope.loadingShow = false;
@@ -852,6 +859,7 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
                         } else {
                             toaster.pop('error', '操作失败', data.error);
                         }
+                        $scope.loading = false;
                     });
                 }
             };
@@ -862,6 +870,7 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
      */
     app.controller('CertificationStep2Ctrl', ['$scope', 'BaseService', '$http', '$rootScope', '$timeout', '$location', 'toaster', 'Organization', 'AuthenticationService',
         function ($scope, BaseService, $http, $rootScope, $timeout, $location, toaster, Organization, AuthenticationService) {
+            $scope.loading = true;
             BaseService.scrollBackToTop();
             $rootScope.tree = 'user';
             $rootScope.thief = 'newOrg';
@@ -875,6 +884,7 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
                         $scope.org = data;
                         orgCopy = angular.copy($scope.org);
                     }, function() {
+                        $scope.loading = false;
                         toaster.pop('error', '注册情况加载失败');
                     });
                 }
@@ -882,13 +892,16 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
                     //$scope.isAuthed = false;
                     AuthenticationService.redirectSignin();
                 }
+                $scope.loading = false;
             });
 
             //提交
             $scope.saveStep2 = function (org, orgType, invalid) {
+                $scope.loading = true;
                 if (invalid == true) {
                     $scope.submited = true;
                     BaseService.scrollBackToTop();
+                    $scope.loading = false;
                     return;
                 }
 
@@ -916,6 +929,7 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
                         if (data.error) {
                             toaster.pop('error', '提示', data.error);
                         }
+                        $scope.loading = false;
 
                     }).error(function (data, status) {
                         $scope.loadingShow = false;
@@ -924,6 +938,8 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
                         } else {
                             toaster.pop('error', '操作失败', data.error);
                         }
+                        $scope.loading = false;
+
                     });
                 }
             };
@@ -934,6 +950,7 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
      */
     app.controller('CertificationStep3Ctrl', ['$scope', '$http', '$rootScope', '$timeout', '$location', 'toaster', 'Organization', 'BaseService', 'AuthenticationService',
         function ($scope, $http, $rootScope, $timeout, $location, toaster, Organization, BaseService, AuthenticationService) {
+            $scope.loading = true;
             BaseService.scrollBackToTop();
             $rootScope.tree = 'user';
             $rootScope.thief = 'newOrg';
@@ -956,12 +973,14 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
                         orgCopy = angular.copy($scope.org);
                     }, function() {
                         toaster.pop('error', '注册情况加载失败');
+                        $scope.loading = false;
                     });
                 }
                 if (data == null || !data.content) {
                     //$scope.isAuthed = false;
                     AuthenticationService.redirectSignin();
                 }
+                $scope.loading = false;
             });
 
             if (angular.isUndefined($scope.org)) {
@@ -1029,6 +1048,7 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
 
             // 图片上传
             $scope.fileChanged = function(ele, order){
+                $scope.loading = true;
                 if (order == 0) {
                     $scope.logo = ele.files[0];
                     $scope.logoUrl = getObjectURL($scope.logo);
@@ -1042,11 +1062,13 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
                     $scope.legalIdCard = ele.files[0];
                     $scope.legalIdCardUrl = getObjectURL($scope.legalIdCard);
                 }
+                $scope.loading = false;
                 $scope.$apply();
             };
 
             // 查看范例
             $scope.showImg = function (type) {
+                $scope.loading = true;
                 var img = null;
                 var imgUrl = null;
                 switch (type) {
@@ -1088,6 +1110,7 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
                         box.hide();
                     });
                 }
+                $scope.loading = false;
             };
 
             // 删除
@@ -1123,9 +1146,11 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
 
             //提交
             $scope.saveStep3 = function (org, isDraft, orgType, invalid) {
+                $scope.loading = true;
                 if (invalid == true) {
                     $scope.submited = true;
                     BaseService.scrollBackToTop();
+                    $scope.loading = false;
                     return;
                 }
 
@@ -1171,6 +1196,7 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
                         if (data.error) {
                             toaster.pop('error', '提示', data.error);
                         }
+                        $scope.loading = false;
 
                     }).error(function (data, status) {
                         $scope.loadingShow = false;
@@ -1179,6 +1205,8 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
                         } else {
                             toaster.pop('error', '操作失败', data.error);
                         }
+                        $scope.loading = false;
+
                     });
                 }
             };
@@ -1189,7 +1217,7 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
      */
     app.controller('PublicCertificationStep4Ctrl', ['$scope', 'BaseService', '$http', '$rootScope', '$timeout', '$location', 'toaster', 'Organization', 'AuthenticationService',
         function ($scope, BaseService, $http, $rootScope, $timeout, $location, toaster, Organization, AuthenticationService) {
-
+            $scope.loading = true;
             BaseService.scrollBackToTop();
             $rootScope.tree = 'user';
             $rootScope.thief = 'newOrg';
@@ -1210,12 +1238,14 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
                         orgCopy = angular.copy($scope.org);
                     }, function() {
                         toaster.pop('error', '注册情况加载失败');
+                        $scope.loading = false;
                     });
                 }
                 if (data == null || !data.content) {
                     //$scope.isAuthed = false;
                     AuthenticationService.redirectSignin();
                 }
+                $scope.loading = false;
             });
 
             if (angular.isUndefined($scope.org)) {
@@ -1238,6 +1268,7 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
 
             // 图片上传
             $scope.fileChanged = function(ele, order){
+                $scope.loading = true;
                 if (order == 0) {
                     $scope.material = ele.files[0];
                     $scope.materialUrl = getObjectURL($scope.material);
@@ -1246,10 +1277,12 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
                     $scope.certifyUrl = getObjectURL($scope.certify);
                 }
                 $scope.$apply();
+                $scope.loading = false;
             };
 
             // 查看范例
             $scope.showImg = function (type) {
+                $scope.loading = true;
                 var img = null;
                 var imgUrl = null;
                 switch (type) {
@@ -1283,6 +1316,7 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
                         box.hide();
                     });
                 }
+                $scope.loading = false;
             };
 
             // 删除
@@ -1310,9 +1344,11 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
 
             //提交
             $scope.saveStep4 = function (org, isDraft, invalid) {
+                $scope.loading = true;
                 if (invalid == true) {
                     $scope.submited = true;
                     BaseService.scrollBackToTop();
+                    $scope.loading = false;
                     return;
                 }
 
@@ -1348,6 +1384,7 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
                         if (data.error) {
                             toaster.pop('error', '提示', data.error);
                         }
+                        $scope.loading = false;
 
                     }).error(function (data, status) {
                         $scope.loadingShow = false;
@@ -1356,6 +1393,7 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
                         } else {
                             toaster.pop('error', '操作失败', data.error);
                         }
+                        $scope.loading = false;
                     });
                 }
             };

+ 5 - 2
donate-console/src/main/webapp/resources/view/user/charityCertification.html

@@ -114,7 +114,7 @@
     .detail .agree div.read{
         margin-top: -2px;
     }
-    .detail a.btn{
+    .detail button.btn{
         margin: 30px 0 47px 0;
         display: inline-block;
         width:160px;
@@ -124,7 +124,7 @@
         background: #ff6000;
         border: none;
     }
-    .detail a.btn:hover{
+    .detail button.btn:hover{
         background: #be3b1b;
     }
     /*机构信息*/
@@ -380,6 +380,9 @@
         color: #1968f9;
     }
 </style>
+<!-- loading start -->
+<div class="loading in" ng-class="{'in': loading}"><i></i></div>
+<!-- loading end -->
 <!--主体内容-->
 <div class="content-wrapper" style="min-height: 924px;; z-index: 50;">
     <!-- Main content -->

+ 3 - 0
donate-console/src/main/webapp/resources/view/user/charityCertification1.html

@@ -488,6 +488,9 @@
     }
 </style>
 <link rel="stylesheet" href="https://cdn.bootcss.com/jquery-datetimepicker/2.5.4/jquery.datetimepicker.css">
+<!-- loading start -->
+<div class="loading in" ng-class="{'in': loading}"><i></i></div>
+<!-- loading end -->
 <!--主体内容-->
 <div class="content-wrapper" style="min-height: 924px;; z-index: 50;">
     <!-- Main content -->

+ 3 - 0
donate-console/src/main/webapp/resources/view/user/charityCertification2.html

@@ -484,6 +484,9 @@
     }
 </style>
 
+<!-- loading start -->
+<div class="loading in" ng-class="{'in': loading}"><i></i></div>
+<!-- loading end -->
 <!--主体内容-->
 <div class="content-wrapper" style="min-height: 924px;; z-index: 50;">
     <!-- Main content -->

+ 3 - 0
donate-console/src/main/webapp/resources/view/user/charityCertification3.html

@@ -591,6 +591,9 @@
 
 </style>
 
+<!-- loading start -->
+<div class="loading in" ng-class="{'in': loading}"><i></i></div>
+<!-- loading end -->
 <!--主体内容-->
 <div class="content-wrapper" style="min-height: 924px;; z-index: 50;">
     <!-- Main content -->

+ 3 - 0
donate-console/src/main/webapp/resources/view/user/publicOfferingCertification.html

@@ -500,6 +500,9 @@
     }
 </style>
 
+<!-- loading start -->
+<div class="loading in" ng-class="{'in': loading}"><i></i></div>
+<!-- loading end -->
 <!--主体内容-->
 <div class="content-wrapper" style="min-height: 924px;; z-index: 50;">
     <!-- Main content -->

+ 3 - 0
donate-console/src/main/webapp/resources/view/user/publicOfferingCertification1.html

@@ -522,6 +522,9 @@
     }
 </style>
 
+<!-- loading start -->
+<div class="loading in" ng-class="{'in': loading}"><i></i></div>
+<!-- loading end -->
 <!--主体内容-->
 <div class="content-wrapper" style="min-height: 924px;; z-index: 50;">
     <!-- Main content -->

+ 3 - 0
donate-console/src/main/webapp/resources/view/user/publicOfferingCertification2.html

@@ -519,6 +519,9 @@
     }
 </style>
 
+<!-- loading start -->
+<div class="loading in" ng-class="{'in': loading}"><i></i></div>
+<!-- loading end -->
 <!--主体内容-->
 <div class="content-wrapper" style="min-height: 924px;; z-index: 50;">
     <!-- Main content -->

+ 3 - 0
donate-console/src/main/webapp/resources/view/user/publicOfferingCertification3.html

@@ -606,6 +606,9 @@
     }
 </style>
 
+<!-- loading start -->
+<div class="loading in" ng-class="{'in': loading}"><i></i></div>
+<!-- loading end -->
 <!--主体内容-->
 <div class="content-wrapper" style="min-height: 924px;; z-index: 50;">
     <!-- Main content -->

+ 3 - 0
donate-console/src/main/webapp/resources/view/user/publicOfferingCertification4.html

@@ -625,6 +625,9 @@
     }
 </style>
 
+<!-- loading start -->
+<div class="loading in" ng-class="{'in': loading}"><i></i></div>
+<!-- loading end -->
 <!--主体内容-->
 <div class="content-wrapper" style="min-height: 924px;; z-index: 50;">
     <!-- Main content -->

+ 3 - 0
donate-console/src/main/webapp/resources/view/user/selectInstitutionsNature.html

@@ -89,6 +89,9 @@
         }
     </style>
 
+<!-- loading start -->
+<div class="loading in" ng-class="{'in': loading}"><i></i></div>
+<!-- loading end -->
 <!--主体内容-->
 <div class="content-wrapper" style="min-height: 924px;; z-index: 50;">
     <!-- Main content -->