作者:LoveEmperor_王子様
<div class="list " ng-repeat="x in LocalDataauserauths " ng-click="getdoc_no(x.doc_no)"> <ion-item class=" item item-inupt"> <ion-item class="item " style="height: 45px;background-color: rgba(57, 127, 245, 0.94);"> <h2 style="color:white">账户:{{x.mobile}}</h2> </ion-item> <ion-item class="item " style="height: 45px;background-color: rgba(57, 127, 245, 0.94)"> <h2 style="color:white">单据类型:{{x.cust_doc_name}}</h2> </ion-item> <div style="background-color:rgba(240, 240, 240, 0.40);width: 100% ;height: 5px"><br></div> <ion-toggle ng-model="x.is_input" ng-change="pushNotificationChange1(x)" style="height: 47px"> <h3 style="color: rgba(69, 69, 69, 0.94)">输入权限</h3> </ion-toggle> <ion-toggle ng-model="x.is_check" ng-change="pushNotificationChange2(x)" style="height: 47px"> <h3 style="color: rgba(69, 69, 69, 0.94)">初审权限</h3> </ion-toggle> <ion-toggle ng-model="x.is_gps" ng-change="pushNotificationChange3(x)" style="height: 47px;" ng-if="x.doc_no=='04'"> <h3 style="color: rgba(69, 69, 69, 0.94)">物流权限 </h3> </ion-toggle> <div style="background-color:rgba(240, 240, 240, 0.40);width: 100% ;height: 5px"><br></div> <a class="item " ng-click="changekaiguan()" style="background-color: rgba(57, 127, 245, 0.94);height: 45px"> <h2 align="center" style="color:white">确认修改</h2> </a> </ion-item> </div> $scope.pushNotificationChange2 = function(x) { //console.log('Push Notification Change2', $scope.pushNotification2.checked); if( x.is_input==true){ $scope.kaiguanBool1 = "1" } else{ $scope.kaiguanBool1 = "0" } //console.log(x.is_check); if(x.is_check==true) { $scope.kaiguanBool2 = "1" } else { $scope.kaiguanBool2 = "0" } if(x.is_gps==true) { $scope.kaiguanBool3 = "1" } else { $scope.kaiguanBool3 = "0" } }; 这个demo直接大部提出来了,其他他用,