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