|
@@ -81,6 +81,16 @@
|
|
msg.error(JSON.stringify(error));
|
|
msg.error(JSON.stringify(error));
|
|
});
|
|
});
|
|
};
|
|
};
|
|
|
|
+
|
|
|
|
+ //保存个人信息
|
|
|
|
+ $scope.vm={
|
|
|
|
+ pic:"",
|
|
|
|
+ sex:"",
|
|
|
|
+ signture:"",
|
|
|
|
+ emotion:"",
|
|
|
|
+ job:"",
|
|
|
|
+ tall:""
|
|
|
|
+ };
|
|
$scope.$on('$ionicView.beforeEnter', function () {
|
|
$scope.$on('$ionicView.beforeEnter', function () {
|
|
msg.loading();
|
|
msg.loading();
|
|
myService.myIndex().then(function(result){
|
|
myService.myIndex().then(function(result){
|
|
@@ -96,50 +106,23 @@
|
|
msg.error(error.data.message);
|
|
msg.error(error.data.message);
|
|
})
|
|
})
|
|
});
|
|
});
|
|
-<<<<<<< HEAD
|
|
|
|
-
|
|
|
|
- //保存个人信息
|
|
|
|
- $scope.vm={
|
|
|
|
- pic:"",
|
|
|
|
- sex:"",
|
|
|
|
- signture:"",
|
|
|
|
- emotion:"",
|
|
|
|
- job:"",
|
|
|
|
- tall:""
|
|
|
|
- };
|
|
|
|
- $scope.saveMaterial = function(){
|
|
|
|
- var data = {
|
|
|
|
- pic:['http://img.taopic.com/uploads/allimg/130103/240435-1301030P33161.jpg'],
|
|
|
|
- //pic:$scope.vm.user.avatar,
|
|
|
|
-=======
|
|
|
|
- // $scope.vm={
|
|
|
|
- // //pic:"",
|
|
|
|
- // sex:"1",
|
|
|
|
- // signture:"",
|
|
|
|
- // emotion:"1",
|
|
|
|
- // job:"",
|
|
|
|
- // tall:""
|
|
|
|
- // };
|
|
|
|
|
|
+
|
|
$scope.saveMaterial = function(){
|
|
$scope.saveMaterial = function(){
|
|
|
|
+
|
|
var data = {
|
|
var data = {
|
|
- pic:'http://img.taopic.com/uploads/allimg/130103/240435-1301030P33161.jpg',
|
|
|
|
->>>>>>> 3e0c5c4a13e68478596981defab0f2f6b69d648b
|
|
|
|
|
|
+ pic:'http://img.taopic.com/uploads/allimg/130103/240435-1301030P33161.jpg',
|
|
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,
|
|
|
|
-<<<<<<< HEAD
|
|
|
|
- tall:$scope.vm.tall
|
|
|
|
- };
|
|
|
|
-=======
|
|
|
|
- tall:$scope.vm.tall,
|
|
|
|
|
|
+ job:$scope.vm.job,
|
|
|
|
+ tall:$scope.vm.tall,
|
|
city:$scope.vm.city
|
|
city:$scope.vm.city
|
|
- }
|
|
|
|
|
|
+ };
|
|
if($scope.vm.birthday1){
|
|
if($scope.vm.birthday1){
|
|
data.birthday = $filter('date')($scope.vm.birthday1, "yyyy-MM-dd");
|
|
data.birthday = $filter('date')($scope.vm.birthday1, "yyyy-MM-dd");
|
|
}
|
|
}
|
|
msg.loading('提交中...');
|
|
msg.loading('提交中...');
|
|
->>>>>>> 3e0c5c4a13e68478596981defab0f2f6b69d648b
|
|
|
|
|
|
+
|
|
myService.saveMaterial(data).then(function(result){
|
|
myService.saveMaterial(data).then(function(result){
|
|
msg.hide();
|
|
msg.hide();
|
|
msg.success("保存成功!");
|
|
msg.success("保存成功!");
|