Browse Source

rel: 处理BUG

wangcz 6 years ago
parent
commit
1f96301217

+ 3 - 2
src/main/webapp/resources/js/admin/controllers/StoreQualificationCtrl.js

@@ -84,6 +84,7 @@ define([ 'app/app' ], function(app) {
                 $scope.qualifications[$scope.qType.businessLicense].resourceUrl = $scope.resourceNodUrl;
 			} else {
                 $scope.newImg.resourceUrl = $scope.qualifications[$scope.qType.businessLicense].resourceUrl;
+                toaster.pop('success', "图片修改完成,请提交后进行更新!");
 			}
 		}
 
@@ -394,7 +395,7 @@ define([ 'app/app' ], function(app) {
 			// 如果审核通过,验证企业信息
 			if (isPass) {
 				var qualificationFlag = validateEnQualification();
-				var brandsFlag = validateBrands();
+				var brandsFlag = $scope.storeType !== 'DISTRIBUTION' ? validateBrands() : true;
 				if (!qualificationFlag || !brandsFlag) {
 					toaster.pop('error', '请补充完信息后再次提交');
 					return ;
@@ -487,7 +488,7 @@ define([ 'app/app' ], function(app) {
 		function saveUpdate() {
 			// 先检查信息是否为空
 			var qualificationFlag = validateEnQualification();
-			var brandsFlag = validateBrands();
+            var brandsFlag = $scope.storeType !== 'DISTRIBUTION' ? validateBrands() : true;
 			if (!qualificationFlag || !brandsFlag) {
 				toaster.pop('error', '请补充完信息后再次提交');
 				return ;

+ 3 - 1
src/main/webapp/resources/view/admin/store_qualification_maintenance.html

@@ -70,6 +70,7 @@
 		position: relative;
 		top: -40px;
 		left: 10px;
+		z-index:10;
 		font-size: 14px;
 	}
 	.qualification-list01 .store-img .col-sm-4 .handle-btn a{
@@ -247,6 +248,7 @@
 		height: 100%;
 		top: 100%;
 		left: 0;
+		z-index:100;
 		background: rgba(0,0,0,.5);
 	}
 	.hover-show .delete{
@@ -408,7 +410,7 @@
 								<a ng-href="{{qualifications[qType.businessLicense].resourceUrl}}" target="_blank"><i class="fa fa-search"></i>查看</a>
 							</div>
 							<div ng-show="editImg" image-upload data-src="static/img/example/upload-apply_2.png" on-success="onUploadLogo($data, 'BUSINESS_LICENSE')" non-preview="true" max-size="512000" error-size-msg="文件大小不超过500kb"
-								 style="width: 208px;height: 168px; top:0; left: 0; position: absolute;background: rgba(0,0,0,.5);"></div>
+								 style="width: 208px;height: 168px; top:0; left: 0; position: absolute;z-index: 1000;background: rgba(0,0,0,.5);"></div>
 						</div>
 						<div class="no-photo-img" ng-if="!qualifications[qType.businessLicense]">未上传图片!</div>
 						<span class="text">营业执照 <em>*</em></span>