|
@@ -26,10 +26,12 @@
|
|
console.log("attachment upload error:"+JSON.stringify(error));
|
|
console.log("attachment upload error:"+JSON.stringify(error));
|
|
|
|
|
|
})
|
|
})
|
|
- }
|
|
|
|
|
|
+ };
|
|
$scope.toprofile = function () {
|
|
$scope.toprofile = function () {
|
|
$state.go('app.my_profile');
|
|
$state.go('app.my_profile');
|
|
};
|
|
};
|
|
|
|
+
|
|
|
|
+ //我的设置
|
|
$scope.setting = function(){
|
|
$scope.setting = function(){
|
|
myService.setting().then(function(result){
|
|
myService.setting().then(function(result){
|
|
|
|
|
|
@@ -37,6 +39,8 @@
|
|
|
|
|
|
});
|
|
});
|
|
};
|
|
};
|
|
|
|
+
|
|
|
|
+ //我的收藏
|
|
$scope.collect = function(){
|
|
$scope.collect = function(){
|
|
myService.collect().then(function(result){
|
|
myService.collect().then(function(result){
|
|
|
|
|
|
@@ -44,13 +48,17 @@
|
|
|
|
|
|
});
|
|
});
|
|
};
|
|
};
|
|
|
|
+
|
|
|
|
+ //我的梦想
|
|
$scope.myDream = function(){
|
|
$scope.myDream = function(){
|
|
myService.myDream().then(function(result){
|
|
myService.myDream().then(function(result){
|
|
|
|
|
|
},function(error){
|
|
},function(error){
|
|
|
|
|
|
});
|
|
});
|
|
- }
|
|
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ //修改个人信息
|
|
$scope.myMaterial = function(){
|
|
$scope.myMaterial = function(){
|
|
myService.myMaterial().then(function(result){
|
|
myService.myMaterial().then(function(result){
|
|
|
|
|
|
@@ -76,8 +84,10 @@
|
|
$scope.$on('$ionicView.beforeEnter', function () {
|
|
$scope.$on('$ionicView.beforeEnter', function () {
|
|
|
|
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+ //保存个人信息
|
|
$scope.vm={
|
|
$scope.vm={
|
|
- //pic:"",
|
|
|
|
|
|
+ pic:"",
|
|
sex:"",
|
|
sex:"",
|
|
signture:"",
|
|
signture:"",
|
|
emotion:"",
|
|
emotion:"",
|
|
@@ -87,12 +97,13 @@
|
|
$scope.saveMaterial = function(){
|
|
$scope.saveMaterial = function(){
|
|
var data = {
|
|
var data = {
|
|
pic:['http://img.taopic.com/uploads/allimg/130103/240435-1301030P33161.jpg'],
|
|
pic:['http://img.taopic.com/uploads/allimg/130103/240435-1301030P33161.jpg'],
|
|
|
|
+ //pic:$scope.vm.user.avatar,
|
|
sex:$scope.vm.sex,
|
|
sex:$scope.vm.sex,
|
|
signture:$scope.vm.signture,
|
|
signture:$scope.vm.signture,
|
|
emotion:$scope.vm.emotion,
|
|
emotion:$scope.vm.emotion,
|
|
job:$scope.vm.job,
|
|
job:$scope.vm.job,
|
|
tall:$scope.vm.tall
|
|
tall:$scope.vm.tall
|
|
- }
|
|
|
|
|
|
+ };
|
|
myService.saveMaterial(data).then(function(result){
|
|
myService.saveMaterial(data).then(function(result){
|
|
|
|
|
|
},function(error){
|
|
},function(error){
|
|
@@ -105,6 +116,7 @@
|
|
$scope.$on('$ionicView.beforeEnter', function () {
|
|
$scope.$on('$ionicView.beforeEnter', function () {
|
|
|
|
|
|
});
|
|
});
|
|
|
|
+ //退出登陆
|
|
$scope.logout = function(){
|
|
$scope.logout = function(){
|
|
storage.remove("token");
|
|
storage.remove("token");
|
|
storage.remove("user");
|
|
storage.remove("user");
|
|
@@ -117,6 +129,7 @@
|
|
$scope.$on('$ionicView.beforeEnter', function () {
|
|
$scope.$on('$ionicView.beforeEnter', function () {
|
|
|
|
|
|
});
|
|
});
|
|
|
|
+ //充值
|
|
$scope.recharge = function(){
|
|
$scope.recharge = function(){
|
|
myService.recharge().then(function(result){
|
|
myService.recharge().then(function(result){
|
|
|
|
|
|
@@ -131,6 +144,7 @@
|
|
$scope.$on('$ionicView.beforeEnter', function () {
|
|
$scope.$on('$ionicView.beforeEnter', function () {
|
|
|
|
|
|
});
|
|
});
|
|
|
|
+ //系统消息
|
|
$scope.systemInfo = function(){
|
|
$scope.systemInfo = function(){
|
|
myService.systemInfo().then(function(result){
|
|
myService.systemInfo().then(function(result){
|
|
|
|
|
|
@@ -138,9 +152,10 @@
|
|
|
|
|
|
});
|
|
});
|
|
};
|
|
};
|
|
|
|
+ //回复我的
|
|
$scope.replyMy = function(){
|
|
$scope.replyMy = function(){
|
|
myService.replyMy().then(function(result){
|
|
myService.replyMy().then(function(result){
|
|
-
|
|
|
|
|
|
+ //$scope.comments = result;
|
|
},function(error){
|
|
},function(error){
|
|
|
|
|
|
});
|
|
});
|
|
@@ -187,19 +202,21 @@
|
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+ //我的回复
|
|
$scope.vm={
|
|
$scope.vm={
|
|
- content:""
|
|
|
|
|
|
+ content:"",
|
|
|
|
+ comment_id:""
|
|
};
|
|
};
|
|
$scope.myReplay = function(){
|
|
$scope.myReplay = function(){
|
|
var data = {
|
|
var data = {
|
|
content:$scope.vm.content,
|
|
content:$scope.vm.content,
|
|
- comment_id:'11'
|
|
|
|
|
|
+ comment_id:$scope.vm.id
|
|
};
|
|
};
|
|
myService.myReplay(data).then(function(result){
|
|
myService.myReplay(data).then(function(result){
|
|
|
|
|
|
},function(error){
|
|
},function(error){
|
|
|
|
|
|
- })
|
|
|
|
|
|
+ });
|
|
$scope.modal.hide();
|
|
$scope.modal.hide();
|
|
}
|
|
}
|
|
}]);
|
|
}]);
|