|
@@ -126,27 +126,31 @@
|
|
}]);
|
|
}]);
|
|
app.controller('attentionCtrl', ["$scope","$ionicTabsDelegate", "$state", "myService", "msg","storage"
|
|
app.controller('attentionCtrl', ["$scope","$ionicTabsDelegate", "$state", "myService", "msg","storage"
|
|
, function ($scope,$ionicTabsDelegate, $state,myService, msg, storage) {
|
|
, function ($scope,$ionicTabsDelegate, $state,myService, msg, storage) {
|
|
- $scope.toDetail = function(){
|
|
|
|
- $state.go("app.attention_Detail");
|
|
|
|
- }
|
|
|
|
|
|
+ $scope.$on('$ionicView.beforeEnter', function () {
|
|
|
|
+ myService.attention().then(function(result){
|
|
|
|
+ $scope.users = result.data.data;
|
|
|
|
+ },function(error){
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ });
|
|
|
|
+ $scope.toMyUserDetail = function (id) {
|
|
|
|
+ myService.toMyUserDetail(id).then(function(result){
|
|
|
|
+ $scope.items = result.data.data;
|
|
|
|
+ $state.go('app.attention_Detail',{id:id,items:$scope.items});
|
|
|
|
+ },function(error){
|
|
|
|
+ //msg.error(msg.data.error)
|
|
|
|
+ })
|
|
|
|
+ };
|
|
|
|
+
|
|
}]);
|
|
}]);
|
|
|
|
|
|
app.controller('attention_DetailCtrl', ["$scope", "$state", "$ionicModal","storage","msg", "common", "config", "homeService", "$ionicTabsDelegate", "$stateParams", "$ionicModal", "$timeout", "$ionicScrollDelegate", "$interval"
|
|
app.controller('attention_DetailCtrl', ["$scope", "$state", "$ionicModal","storage","msg", "common", "config", "homeService", "$ionicTabsDelegate", "$stateParams", "$ionicModal", "$timeout", "$ionicScrollDelegate", "$interval"
|
|
, function ($scope, $state,$ionicModal, storage , msg, common, config, homeService, $ionicTabsDelegate, $stateParams, $ionicModal, $timeout, $ionicScrollDelegate, $interval) {
|
|
, function ($scope, $state,$ionicModal, storage , msg, common, config, homeService, $ionicTabsDelegate, $stateParams, $ionicModal, $timeout, $ionicScrollDelegate, $interval) {
|
|
var id = $stateParams.id;
|
|
var id = $stateParams.id;
|
|
|
|
+ $scope. items = $stateParams.items;
|
|
$scope.$on('$ionicView.beforeEnter', function () {
|
|
$scope.$on('$ionicView.beforeEnter', function () {
|
|
$ionicTabsDelegate.showBar(false);
|
|
$ionicTabsDelegate.showBar(false);
|
|
});
|
|
});
|
|
- $scope.load = function (id) {
|
|
|
|
- msg.loading();
|
|
|
|
- homeService.dreamDetail(id).then(function (result) {
|
|
|
|
- msg.hide();
|
|
|
|
- $scope.user = result.data.data;
|
|
|
|
- }, function (error) {
|
|
|
|
- msg.hide();
|
|
|
|
- });
|
|
|
|
- };
|
|
|
|
- $scope.load(id);
|
|
|
|
|
|
|
|
$scope.cancelSupport = function () {
|
|
$scope.cancelSupport = function () {
|
|
$scope.tosupport = false;
|
|
$scope.tosupport = false;
|
|
@@ -183,7 +187,7 @@
|
|
$state.go("app.attention_Detail")
|
|
$state.go("app.attention_Detail")
|
|
}
|
|
}
|
|
}]);
|
|
}]);
|
|
- app.controller('oldDreamCtrl', ["$scope","homeService", "$stateParams","$state", "msg"
|
|
|
|
|
|
+ app.controller('myOldDreamCtrl', ["$scope","homeService", "$stateParams","$state", "msg"
|
|
, function ($scope,homeService,$stateParams, $state, msg) {
|
|
, function ($scope,homeService,$stateParams, $state, msg) {
|
|
$scope.toDetail = function(){
|
|
$scope.toDetail = function(){
|
|
$state.go("app.attention_Detail")
|
|
$state.go("app.attention_Detail")
|