YanaDH 7 년 전
부모
커밋
e3205d7556
1개의 변경된 파일8개의 추가작업 그리고 8개의 파일을 삭제
  1. 8 8
      miaomiao/www/js/controllers/my.js

+ 8 - 8
miaomiao/www/js/controllers/my.js

xqd xqd
@@ -7,6 +7,14 @@
               $scope.user = result.data.data
             });
             $scope.showWithdraw = true;
+            userService.isTest().then(function(res){
+                if(res.data.data){
+                    $scope.showWithdraw = true;
+                }
+                else{
+                    $scope.showWithdraw = false;
+                }
+            })
         });
         $scope.setAvator = function () {
             common.setAvator().then(function (result) {
@@ -15,14 +23,6 @@
                 $scope.user.avatar = config.imgServer + response.data.file;
             });
         };
-        userService.isTest().then(function(res){
-            if(res.data.data){
-                $scope.showWithdraw = true;
-            }
-            else{
-                $scope.showWithdraw = false;
-            }
-        })
     }]);
     app.controller('profileCtrl', ["$scope","$ionicTabsDelegate","$state","$filter", "storage", "myService", "msg", "config", "common"
       , function ($scope, $ionicTabsDelegate, $state, $filter, storage, myService, msg, config, common) {