huangc 7 anni fa
parent
commit
61266e77d1

+ 1 - 0
www/apps/authuser/js/controllers.js

@@ -15,6 +15,7 @@ starter.controller('AuthUserCtrl', function ($scope, $state, $ionicSlideBoxDeleg
         showPopup.showLoading(1, '正在提交', false);
         User.user("PostUser").save("'" + JSON.stringify($scope.authuser) + "'", function (res) {
             console.log(res);
+            $window.history.back();
             showPopup.hideLoading();
         }, function (err) {
             if (err.status == 400)

+ 3 - 0
www/apps/authuser/templates/authuser.html

@@ -1,4 +1,7 @@
 <ion-view view-title="{{title}}">
+    <ion-nav-buttons side="left">
+        <ion-back-button></ion-back-button>
+    </ion-nav-buttons>
     <ion-content>
         <div class="item item-divider"></div>
         <form name="formuser" novalidate>