| xqd
@@ -26,8 +26,7 @@
|
|
|
//$scope.chosedIndex = 0;
|
|
|
$scope.clickAvatar = function(id){
|
|
|
homeService.toUserDetail(id).then(function(result){
|
|
|
- $scope.items = result.data.data;
|
|
|
- $state.go('app.home_userDetail',{id:id,items:$scope.items});
|
|
|
+ $state.go('app.home_dreamdetail',{id:id,type:2});
|
|
|
},function(error){
|
|
|
//msg.error(msg.data.error)
|
|
|
});
|
| xqd
@@ -51,6 +50,7 @@
|
|
|
$scope.type = type;
|
|
|
$scope.load(true);
|
|
|
};
|
|
|
+
|
|
|
$scope.toDetail = function (id) {
|
|
|
$state.go('app.home_dreamdetail',{id:id});
|
|
|
};
|
| xqd
@@ -89,9 +89,22 @@
|
|
|
age: 0,//0:全部,1:18-21,2:22-25,3:26-29,4:30-33,5:34-37,6:>38,7:>18
|
|
|
city:''
|
|
|
};
|
|
|
+
|
|
|
+ $scope.ages = [
|
|
|
+ {"id": 0, "age": "所有"},
|
|
|
+ {"id": 1, "age": "<18"},
|
|
|
+ {"id": 2, "age": "18-21"},
|
|
|
+ {"id": 3, "age": "22-25"},
|
|
|
+ {"id": 4, "age": "26-29"},
|
|
|
+ {"id": 5, "age": "30-33"},
|
|
|
+ {"id": 6, "age": "34-37"},
|
|
|
+ {"id": 7, "age": ">37"}
|
|
|
+ ];
|
|
|
+
|
|
|
$scope.doFilter = function () {
|
|
|
homeService.doFilter($scope.filter.sex,$scope.filter.age,$scope.filter.city).then(function(result){
|
|
|
$scope.index.dreams = result.data.data.dreams.data;
|
|
|
+ debugger;
|
|
|
},function(error){
|
|
|
msg.error(data.error.message);
|
|
|
});
|
| xqd
@@ -182,6 +195,12 @@
|
|
|
, function ($scope,$location, $ionicHistory,$timeout,$state,WechatService,$ionicModal, storage , msg, common, config, homeService, $ionicTabsDelegate, $stateParams,$ionicBackdrop, $timeout, $ionicScrollDelegate, $interval) {
|
|
|
var id = $stateParams.id;
|
|
|
var top3user = '';
|
|
|
+ if($stateParams.type!=null){
|
|
|
+ $scope.type = $stateParams.type;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ $scope.type = 1;//tab切换
|
|
|
+ }
|
|
|
$scope.chosedIndex = 0;
|
|
|
$scope.clickAvatar = function (index) {
|
|
|
$scope.chosedIndex = index;
|
| xqd
@@ -281,7 +300,7 @@
|
|
|
result: 1,
|
|
|
promise:null
|
|
|
};
|
|
|
- $scope.type = 1;//tab切换
|
|
|
+
|
|
|
$scope.tosupport = false;
|
|
|
$scope.support = function ($event) {
|
|
|
$event.stopPropagation();
|