walletController.js
494 Bytes
angular.module('myApp')
.controller('walletController',['$scope','$rootScope','dingdaService','$state','globalService',function($scope,$rootScope,dingdaService,$state,globalService){
$scope.balance = "";
var init = function() {
dingdaService.getWallet().success(function(data , status){
// alert(JSON.stringify(data.data))
$scope.balance = data.data.balance;
})
}
init();
$scope.prepay = function() {
$state.go('prepay', { }, { reload: false });
}
}]);