ソースを参照

一键开启关闭功能方法更新

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@10111 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
hejq 8 年 前
コミット
667c7abbcb
1 ファイル変更6 行追加6 行削除
  1. 6 6
      src/main/webapp/resources/js/index/app.js

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

@@ -10481,10 +10481,10 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
 
 		// 一键开启关闭
 		$scope.toggle = function(status) {
-			if($scope.saleStatus = 0) {
-				$scope.saleStatus = 1;
+			if($scope.saleStatus == 0) {
+				$scope.saleStatus == 1;
 			} else {
-				$scope.saleStatus = 0;
+				$scope.saleStatus == 0;
 			}
 			$scope.loading = true;
 			GetProductInfo.toggle({status: status}, {}, function(data) {
@@ -17756,10 +17756,10 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
 		
 		// 一键开启关闭
 		$scope.toggle = function(status) {
-			if($scope.purcStatus = 0) {
-				$scope.purcStatus = 1;
+			if($scope.purcStatus == 0) {
+				$scope.purcStatus == 1;
 			} else {
-				$scope.purcStatus = 0;
+				$scope.purcStatus == 0;
 			}
 			$scope.loading = true;
 			Products.toggle({status: status}, {}, function(data) {