Просмотр исходного кода

处理导入重复的显示问题

hulh 8 лет назад
Родитель
Сommit
aaf5a1650c

+ 2 - 12
src/main/webapp/resources/js/vendor/controllers/forstore/vendor_upload_ctrl.js

@@ -17,7 +17,6 @@ define([ 'app/app' ], function(app) {
         };
         $scope.deletePop = false;
         $scope.personMedol =false;
-		$scope.repeatImport = 0;
         $scope.setPersonMedol = function () {
             $scope.personMedol =false;
         };
@@ -38,22 +37,13 @@ define([ 'app/app' ], function(app) {
         $scope.batch.myFiles = null;
         //批量发布的类型
         $scope.batch.sellType = null;
-		//切换展示的信息
-		$scope.toggleActive = function(active) {
-			if($scope.tab != active) {
-				$rootScope.$$productOn.tab = active;
-			}
-		};
 
+
+        $scope.repeatImport = 0;
 		$scope.switchImport = function (type) {
 			$scope.repeatImport = type;
 		};
 
-		$scope.batch = {};
-		$scope.batch.myFiles = null;
-		//批量发布的类型
-		$scope.batch.sellType = null;
-
         //翻页的信息
         $scope.pageParams = {};
 

+ 1 - 1
src/main/webapp/resources/view/vendor/forstore/vendor_upload.html

@@ -510,7 +510,7 @@
                                 <img ng-hide="batch.sellType == 'UAS'" src="static/img/upload/ziying-active.png" alt="">
                             </span>
                         </div>
-                        <div ng-if="$$productOn.tab == 'bathOn'">2、若存在属性完全相同但价格不一致的产品</div>
+                        <div ng-if="$$productOn.tab == 'bathOn'">2、若存在属性完全相同但价格不一致的产品</div>
                         <div class="sale-label" style="margin-top: -10px;" ng-if="$$productOn.tab == 'bathOn'">
                             <label class="sellType">
                                 <input type="radio" name="import" id="forIgnore" ng-model="repeatImport" value="0" ng-click="switchImport(0)">