std_face_score.js 424 B

12345678910111213141516
  1. app.controller('StdFaceScoreCtrl', function($rootScope, $scope, $http, $timeout, $state, toaster) {
  2. $scope.load = function(){
  3. $scope.score = {};
  4. $scope.myPromise = $http({
  5. url : $rootScope.host_url + '/acquire/getFaceScore?session=' + $rootScope.session,
  6. method : 'GET'
  7. }).success(function(data) {
  8. if(data.code == 0){
  9. $scope.score = data.result;
  10. }
  11. }).error(function() {
  12. });
  13. }
  14. $scope.load();
  15. })