<button ng-click="aa='id';bian=!bian">排序</button> :在框点击排序 id是以什么排序的
// 点击发货
<td>
<span ng-show="i.state=='已发货' ">{{i.state}}</span>
<span ng-show="i.state=='发货' "><a href="#" ng-click="i.state='已发货' " >{{i.state}}</a></span>
</td>
// 修改,保存
<td>
<span ng-hide="i.edit">{{i.mima}}</span> // {{i.mima}} 是要修改的名字
<span ng-show="i.edit == true"><input ng-model="i.mima" /></span>
</td>
<td>
<button ng-hide="i.edit" ng-click="i.edit = true">修改</button>
<button ng-show="i.edit == true" ng-click="i.edit = false">保存</button>
</td>
<!-- + - 号-->
$scope.shuliang = function(index, unm) {
$scope.user[index].shuliang = $scope.user[index].shuliang + unm;
if($scope.user[index].shuliang <= 0) {
alert("是否删除该商品");
$scope.user.splice(index, 1);
}
}
<td>
<button ng-click="shuliang($index,+1)">+</button>
<input ng-model="i.shuliang" />
<button ng-click="shuliang($index,-1)">-</button>
</td>