Browse Source

去掉多余的代码

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@9418 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
hejq 8 years ago
parent
commit
951ca7880b

+ 1 - 57
src/main/webapp/resources/js/index/app.js

@@ -1144,7 +1144,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
     }]);
 	
 	/**
-	 * 邀请记录(个人)--现在包括个人和企业
+	 * 邀请记录
 	 */
 	app.controller('InvitationCtrl', ['$scope', 'toaster', 'InvitationRecord', 'BaseService', 'ngTableParams', '$modal', function($scope, toaster, InvitationRecord, BaseService, ngTableParams, $modal) {
 		BaseService.scrollBackToTop();
@@ -1235,62 +1235,6 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
 		}
 	}]);
 	
-	// /**
-	//  * 邀请记录(企业)--弃用
-	//  */
-	// app.controller('InvitationByEnCtrl', ['$scope', 'toaster', 'InvitationRecord', 'BaseService', 'ngTableParams', function($scope, toaster, InvitationRecord, BaseService, ngTableParams) {
-	// 	BaseService.scrollBackToTop();
-	// 	$scope.status = "invitationTeam";
-	// 	var getService = function() {
-	// 		return InvitationRecord.getRecordsByEn;
-	// 	};
-	//
-	// 	$scope.tableParams = new ngTableParams({ // ng-Table参数
-	// 		page : 1,
-	// 		count : 10,
-	// 		sorting: {
-     //        }
-	// 	}, {
-	// 		total : 0,
-	// 		counts: [],
-	// 		getData : function($defer, params) { // 获取数据的方法
-	// 			$scope.loading = true;
-	// 			var pageParams = params.url();
-	// 			pageParams.keyword = $scope.keyword;
-	// 			$scope.tip = $scope.keyword;
-	// 			getService().call(null, BaseService.parseParams(pageParams), function(page){
-	// 				$scope.loading = false;
-	// 				if(page) {
-	// 					params.total(page.totalElement);
-	// 					$defer.resolve(page.content);
-	// 				}
-	// 			}, function(response){
-	// 				$scope.loading = false;
-	// 				toaster.pop('error', '数据加载失败', response.data);
-	// 			});
-	// 		}
-	// 	});
-	//
-	// 	$scope.onSearch = function(keyword){
-	// 		$scope.tableParams.page(1);
-  	// 		$scope.tableParams.reload();
-  	// 		$scope.tip = keyword;
-	// 	}
-	//
-	// 	// 再次邀请
-	// 	$scope.reInvite = function(id) {
-	// 		InvitationRecord.reInvite({id: id}, {}, function(data) {
-	// 			if(data.success) {
-	// 				toaster.pop('success', '提示', data.success);
-	// 				$scope.tableParams.page(1);
-	// 	  			$scope.tableParams.reload();
-	// 			}
-	// 		}, function(response) {
-	// 			toaster.pop('error', '提示', response.data);
-	// 		});
-	// 	}
-	// }]);
-	
 	/**
 	 * 模糊查询相似的企业名称 
 	 */

+ 0 - 17
src/main/webapp/resources/tpl/index/baseInfo/invitation.html

@@ -109,23 +109,6 @@
 <div ng-include src="'static/tpl/index/baseInfo/addPartnerAndRecord.html'"></div>
 <link rel="stylesheet" href="static/css/public.css">
 <div id="public" style="background: #f5f5f5;">
-	<div class="condition" style="padding: 0;">
-		<!--<div class="myReuest search-bg condition" >
-			<div class="row">
-				<div class="col-xs-5">
-					<div class="search">
-						<div class="form-group form-group-sm has-feedback" dropdown auto-close="outsideClick" on-toggle="searchAdvance=open">
-							<input type="search" class="form-control input-sm" ng-model="keyword" ng-search="onSearch(keyword)" placeholder="输入企业名称、联系人姓名、电话或邮箱搜索"  style="width: 100%"/>
-							<a class="btn input-group-addon" ng-click="onSearch(keyword)">搜索</a>
-						</div>
-					</div>
-				</div>
-				<div class="col-xs-4">
-					<p>搜索到<em>{{tableParams.total()}}</em>条</p>
-				</div>
-			</div>
-		</div>-->
-</div>
 	<div style="margin-top: -55px;">
 		<div class="col-xs-6" style="float: left;"></div>
 		<div class="form-input col-xs-6 myRequest search-bg">