Mike 8 år sedan
förälder
incheckning
ed2772b2b4

+ 2 - 2
miaomiao/www/js/controllers/account.js

xqd
@@ -14,9 +14,9 @@
                 storage.set('token', result.data.data.token);
                 $http.defaults.headers.common["Authorization"] = 'Bearer ' + result.data.data.token;
                 $state.go('app.home');
-            }, function (erro) {
+            }, function (error) {
                 msg.hide();
-                msg.error(erro.data.message);
+                msg.error(error.data.message);
             });
         }
         //获取验证码

+ 9 - 9
miaomiao/www/js/controllers/add.js

xqd xqd xqd
@@ -26,11 +26,11 @@
                         var response = JSON.parse(result.response);
                         var file = response.data.file;
                         $scope.imgs.push(file);
-                    }, function (erro) {
-                        msg.erro('图片上传失败');
+                    }, function (error) {
+                        msg.error('图片上传失败');
                     });
-                }, function (erro) {
-                    msg.erro('图片选择失败');
+                }, function (error) {
+                    msg.error('图片选择失败');
                 });
             }
             $scope.addvideo = function () {
@@ -42,11 +42,11 @@
                         var response = JSON.parse(result.response);
                         var file = response.data.file;
                         debugger;
-                    }, function (erro) {
+                    }, function (error) {
                         debugger;
-                        msg.erro('视频上传失败');
+                        msg.error('视频上传失败');
                     });
-                }, function (erro) {
+                }, function (error) {
                     debugger;
                 }, options);
             }
@@ -61,8 +61,8 @@
                };
                myService.add(data).then(function(result){
 
-               },function(erro){
-
+               },function(error){
+                  msg.error(error.data.message);
                });
            }
            $scope.$on('$ionicView.beforeEnter', function (viewResult) {

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

xqd xqd xqd xqd xqd xqd
@@ -22,8 +22,8 @@
           }).then(function (result) {
               // alert(JSON.stringify(result));
             console.log("attachment upload result:"+JSON.stringify(result));
-          }, function (erro) {
-            console.log("attachment upload erro:"+JSON.stringify(erro));
+          }, function (error) {
+            console.log("attachment upload error:"+JSON.stringify(error));
               
           })
         }
@@ -33,7 +33,7 @@
         $scope.setting = function(){
             myService.setting().then(function(result){
 
-            },function(erro){
+            },function(error){
 
             });
         }
@@ -47,8 +47,8 @@
                   $timeout(function () {
                       $scope.vm.user.avatar = response.data.md5;
                   });
-              }, function (erro) {
-                  msg.erro(JSON.stringify(erro));
+              }, function (error) {
+                  msg.error(JSON.stringify(error));
               });
           };
           $scope.$on('$ionicView.beforeEnter', function () {
@@ -60,7 +60,7 @@
                 };
                 myService.reset(data).then(function(result){
 
-                },function(erro){
+                },function(error){
 
                 });
             }
@@ -86,7 +86,7 @@
             $scope.recharge = function(){
                 myService.recharge().then(function(result){
 
-                },function(erro){
+                },function(error){
 
                 });
             }
@@ -100,14 +100,14 @@
             $scope.systemInfo = function(){
                 myService.systemInfo().then(function(result){
 
-                },function(erro){
+                },function(error){
 
                 });
             };
             $scope.replyMy = function(){
                 myService.replyMy().then(function(result){
 
-                },function(erro){
+                },function(error){
 
                 });
             }

+ 6 - 6
miaomiao/www/js/services/commonservice.js

xqd xqd
@@ -156,9 +156,9 @@
                             deferred.reject(e);
                         })
                     }
-                }).error(function (erro) {
-                  //  alert(JSON.stringify(erro));
-                    deferred.reject(erro);
+                }).error(function (error) {
+                  //  alert(JSON.stringify(error));
+                    deferred.reject(error);
                 });
                 return deferred.promise;
             },
@@ -205,9 +205,9 @@
                             deferred.reject(e);
                         })
                     }
-                }).error(function (erro) {
-                  //  alert(JSON.stringify(erro));
-                    deferred.reject(erro);
+                }).error(function (error) {
+                  //  alert(JSON.stringify(error));
+                    deferred.reject(error);
                 });
                 return deferred.promise;
             }

+ 1 - 1
miaomiao/www/templates/add/index.html

xqd
@@ -21,7 +21,7 @@
                     <i class="icon ion-plus"></i>
                     添加梦想介绍
                 </a>-->
-                <textarea rows="4" cols="50" placeholder="添加梦想介绍" ng-model="vm.about" style="border: 1px solid #FF4B82;padding: 10px;"></textarea>
+                <textarea rows="4" cols="50" placeholder="添加梦想介绍" ng-model="vm.about" style="border: 1px solid #FF4B82;padding: 10px;width: 98%;"></textarea>
 
             </div>
             <div class="item">上传图片和视频,让别人更好的了解你</div>