Mike 8 年之前
父节点
当前提交
9bceaff31a
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      miaomiao/www/js/controllers/my.js

+ 4 - 0
miaomiao/www/js/controllers/my.js

@@ -78,6 +78,10 @@
                 myService.myIndex().then(function(result){
                 myService.myIndex().then(function(result){
                   // alert(JSON.stringify(result.data.data.user));
                   // alert(JSON.stringify(result.data.data.user));
                   $scope.vm = result.data.data.user;
                   $scope.vm = result.data.data.user;
+                  if($scope.vm.birthday){
+                      var arr1 = $scope.vm.birthday.split("-");  
+                      $scope.vm.birthday1 = new Date(arr1[0],parseInt(arr1[1])-1,arr1[2]); 
+                  }
                   msg.hide();
                   msg.hide();
                 },function(error){
                 },function(error){
                   msg.hide();
                   msg.hide();