39,082
社区成员
发帖
与我相关
我的任务
分享
<div class="container-fluid" >
<table class=" pay-list" >
<tbody>
<tr class="pay-class" ng-repeat="item in ddvm.paywalts">
<td class="radio-con">
<input type="radio" name="paywalt" ng-model="ddvm.selectionW.ID" ng-value="item" ng-checked="ddvm.selectionW == item" />
</td>
<td class="text">
<label @*for="{{items.ID}}"*@>
<span class="pay-name"><span ng-bind="item.Name" ></span>
<span class="pay-desc"> <span ng-bind="item.PriTxt"></span></span>
</label>
</td>
</tr>
</tbody>
</table>
</div>
app.controller('OrderListController', ['$scope', '$location', '$http', 'OrderListService', 'GetWaltService', 'ReBookOrderService', function ($scope, $location, $http, OrderListService, GetWaltService, ReBookOrderService) {
//配置分页基本参数
$scope.paginationConf = {
currentPage: 1,//当前页
itemsPerPage: 5//每页显示的数量
};
//去付款按钮事件
$scope.FormPay = function (u) {
//alert('13111');
..............................................
ReBookOrderService.getBasicInfoByMerID(u)
.success(function (resp) {
//alert('adadadad');
ddvm.paywalts = resp.walt;//钱包集合
ddvm.selectionW = ddvm.paywalts[0];//选择的钱包
//alert('2222');
})
.error(function (resp) { console.log(resp) });
};
//监控钱包列表的选择变化
$scope.$watch("ddvm.selectionW.ID", function () {
alert('141'); //每次变更选择都可以弹出
alert(ddvm.selectionW.ID);//报错 找不到ddvm
alert(time.ID);//报错 找不到ddvm
},true);
......................................
}])