<logout/>
<logout logout-url="" logout-success-url=""/>
<div class="pull-right">
<a href="../logout" class="btn btn-default btn-flat">注销</a>
</div>
<script type="text/javascript" src="plugins/angularjs/angular.min.js"> </script>
<script type="text/javascript" src="js/base.js"> </script>
<script type="text/javascript" src="js/service/sellerService.js"> </script>
<script type="text/javascript" src="js/controller/baseController.js"> </script>
<script type="text/javascript" src="js/controller/sellerController.js"> </script>
<body ng-app="pinyougou" ng-controller="sellerController">
<div class="control-group">
<label class="control-label">登陆名(不可修改):</label>
<div class="controls">
<input type="text" ng-model="entity.sellerId" placeholder="登陆名"
class="input-xfat input-xlarge">
</div>
</div>
<div class="control-group">
<label class="control-label">登陆密码:</label>
<div class="controls">
<input type="password" ng-model="entity.password" placeholder="登陆密码"
class="input-xfat input-xlarge">
</div>
</div>
..............略
//保存
$scope.add=function(){
sellerService.add( $scope.entity ).success(
function(response){
if(response.success){
location.href='shoplogin.html';
}else{
alert(response.message);
}
}
);
}
<a class="sui-btn btn-block btn-xlarge btn-danger" ng-click="add()" target="_blank">
申请入驻</a>
/**
* 增加
*/
@Override
public void add(TbSeller seller) {
seller.setStatus("0");
seller.setCreateTime(new Date());
sellerMapper.insert(seller);
}
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |