YanaDH %!s(int64=7) %!d(string=hai) anos
pai
achega
6f4236096c

+ 8 - 1
miaomiao/ionic.config.json

xqd
@@ -1,5 +1,12 @@
 {
   "name": "newtest",
   "app_id": "",
-  "type": "ionic1"
+  "type": "ionic1",
+  "integrations": {},
+  "watchPatterns": [
+    "scss/**/*",
+    "www/**/*",
+    "!www/lib/**/*",
+    "!www/**/*.map"
+  ]
 }

+ 4 - 4
miaomiao/www/js/config/config.js

xqd
@@ -1,11 +1,11 @@
 (function (app) {
     //全局配置 
     app.constant("config", {
-        // server: 'http://q8.9026.com/',
-        // imgServer: 'http://q8.9026.com/attachment/'
+        server: 'http://q8.9026.com/',
+        imgServer: 'http://q8.9026.com/attachment/'
         //server: 'http://localhost:8092/',
         //imgServer: 'http://localhost:8092/attachment/',
-        server: 'http://miao.beiyuesi.com/',
-        imgServer: 'http://miao.beiyuesi.com/attachment/'
+        // server: 'http://miao.beiyuesi.com/',
+        // imgServer: 'http://miao.beiyuesi.com/attachment/'
     });
 })(angular.module('app'));

+ 6 - 4
miaomiao/www/js/controllers/home.js

xqd xqd
@@ -1080,8 +1080,9 @@
 
                 })
             };
-            $scope.toDetail = function(){
-                $state.go("app.home_userDetail",{user_id:user_id,items:$scope.items})
+            $scope.toDetail = function(id){
+                $state.go('app.my_dreamdetail',{id:id});
+                // $state.go("app.home_userDetail",{user_id:user_id,items:$scope.items})
             };
 
         }]);
@@ -1100,8 +1101,9 @@
 
                 })
             };
-            $scope.toDetail = function(){
-                $state.go("app.home_userDetail",{user_id:user_id,items:$scope.items})
+            $scope.toDetail = function(id){
+                $state.go('app.my_dreamdetail',{id:id});
+                // $state.go("app.home_userDetail",{user_id:user_id,items:$scope.items})
             }
         }]);
     app.controller('searchCtrl', ["$scope","homeService", "$state", "msg", "$ionicTabsDelegate", "$ionicNavBarDelegate"

+ 6 - 8
miaomiao/www/js/controllers/my.js

xqd xqd
@@ -339,8 +339,9 @@
 
                 })
             };
-            $scope.toDetail = function(){
-                $state.go("app.attention_Detail",{user_id:user_id,items:$scope.items})
+            $scope.toDetail = function(id){
+                $state.go('app.my_dreamdetail',{id:id});
+                // $state.go("app.attention_Detail",{user_id:user_id,items:$scope.items})
             }
         }]);
     app.controller('myOldDreamCtrl', ["$scope","homeService", "$stateParams","$state", "msg"
@@ -358,14 +359,11 @@
 
                 })
             };
-            $scope.toDetail = function(){
-                $state.go("app.attention_Detail",{user_id:user_id,items:$scope.items})
+            $scope.toDetail = function(id){
+                $state.go('app.my_dreamdetail',{id:id});
+                // $state.go("app.attention_Detail",{user_id:user_id,items:$scope.items})
             };
         }]);
-    //app.controller('messageReplyCtrl', ["$scope","$ionicTabsDelegate", "$state", "myService", "msg","storage"
-    //    , function ($scope,$ionicTabsDelegate, $state,myService, msg, storage) {
-    //
-    //    }]);
     app.controller('personalLetterCtrl', ["$scope","$ionicTabsDelegate", '$location',"$state", "myService", "msg","storage"
         , function ($scope,$ionicTabsDelegate,$location, $state,myService, msg, storage) {
             $scope.$on('$ionicView.beforeEnter', function () {