my.js 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. (function (app) {
  2. app.controller('myCtrl', ["$scope", "$state", "storage", "myService", "msg"
  3. , function ($scope, $state, storage, myService, msg) {
  4. $scope.$on('$ionicView.beforeEnter', function (viewResult) {
  5. });
  6. $scope.toprofile = function () {
  7. $state.go('app.my_profile');
  8. }
  9. }]);
  10. app.controller('profileCtrl', ["$scope", "$state", "storage", "myService", "msg"
  11. , function ($scope, $state, storage, myService, msg) {
  12. $scope.$on('$ionicView.beforeEnter', function () {
  13. });
  14. }]);
  15. app.controller('settingCtrl', ["$scope", "$state", "myService", "msg"
  16. , function ($scope, $state,myService, msg) {
  17. $scope.$on('$ionicView.beforeEnter', function () {
  18. });
  19. }]);
  20. app.controller('rechargeCtrl', ["$scope", "$state", "myService", "msg"
  21. , function ($scope, $state, myService, msg) {
  22. $scope.$on('$ionicView.beforeEnter', function () {
  23. });
  24. }]);
  25. app.controller('messageCtrl', ["$scope", "$state", "myService", "msg"
  26. , function ($scope, $state, myService, msg) {
  27. $scope.$on('$ionicView.beforeEnter', function () {
  28. });
  29. }]);
  30. app.controller('dreamCtrl', ["$scope", "$state", "myService", "msg"
  31. , function ($scope, $state, myService, msg) {
  32. $scope.$on('$ionicView.beforeEnter', function () {
  33. });
  34. }]);
  35. app.controller('collectCtrl', ["$scope", "$state", "myService", "msg"
  36. , function ($scope, $state, myService, msg) {
  37. $scope.$on('$ionicView.beforeEnter', function () {
  38. });
  39. }]);
  40. app.controller('messageSysCtrl', ["$scope", "$state", "myService", "msg"
  41. , function ($scope, $state, myService, msg) {
  42. $scope.$on('$ionicView.beforeEnter', function () {
  43. });
  44. }]);
  45. app.controller('messageReplyCtrl', ["$scope", "$state", "myService", "msg", "$ionicModal"
  46. , function ($scope, $state, myService, msg, $ionicModal) {
  47. $ionicModal.fromTemplateUrl('my-modal.html', {
  48. scope: $scope,
  49. animation: 'slide-in-up'
  50. }).then(function (modal) {
  51. $scope.modal = modal;
  52. });
  53. $scope.openModal = function () {
  54. $scope.modal.show();
  55. };
  56. $scope.closeModal = function () {
  57. $scope.modal.hide();
  58. };
  59. $scope.$on('$ionicView.beforeEnter', function () {
  60. });
  61. }]);
  62. })(angular.module('app.controllers'));