| 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) {
|
| xqd
@@ -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) {
|