Browse Source

优化规格书弹窗

shenjj 7 years ago
parent
commit
bc84a673b5

+ 0 - 22
src/main/webapp/resources/js/vendor/controllers/forstore/vendor_onSaleCtrl.js

@@ -1912,26 +1912,4 @@ define([ 'app/app' ], function(app) {
         }
     }]);
 
-    // 上传规格书
-    app.register.controller('editRegulationCtrl', ['$scope', 'Regulpic', '$modalInstance', 'showAction', function ($scope, Regulpic, $modalInstance, showAction) {
-      $scope.Regulpic = Regulpic;
-      $scope.showAction = showAction || false
-      $scope.cancel = function () {
-        $modalInstance.close();
-      };
-
-      // 删除已上传图片
-      $scope.deleteImg = function () {
-        $scope.Regulpic = 'static/img/store/common/default.png'
-      }
-
-      // 图片上传成功之后
-      $scope.onUploadSuccess = function(data){
-        $scope.Regulpic = data.path;
-      };
-
-      $scope.confirm = function() {
-        $modalInstance.close($scope.Regulpic);
-      }
-    }]);
 });