Ben 7 anni fa
parent
commit
e695e8d458

BIN
.vs/miaomiao/v14/.suo


BIN
miaomiao/bin/Android/Debug/android-debug.apk


+ 1 - 0
miaomiao/package.json

xqd
@@ -5,6 +5,7 @@
     "dependencies": {
         "cordova-android": "^6.2.3",
         "cordova-hot-code-push-plugin": "^1.5.3",
+        "cordova-ios": "^4.4.0",
         "cordova-plugin-actionsheet": "2.3.3",
         "cordova-plugin-camera": "file:node_modules\\cordova-plugin-camera",
         "cordova-plugin-compat": "1.1.0",

+ 54 - 0
miaomiao/plugins/ios.json

xqd
@@ -0,0 +1,54 @@
+{
+    "prepare_queue": {
+        "installed": [],
+        "uninstalled": []
+    },
+    "config_munge": {
+        "files": {}
+    },
+    "installed_plugins": {
+        "cordova-hot-code-push-plugin": {
+            "PACKAGE_NAME": "com.miaomiao.app"
+        },
+        "cordova-plugin-actionsheet": {
+            "PACKAGE_NAME": "com.miaomiao.app"
+        },
+        "cordova-plugin-camera": {
+            "CAMERA_USAGE_DESCRIPTION": " ",
+            "PHOTOLIBRARY_USAGE_DESCRIPTION": " ",
+            "PACKAGE_NAME": "com.miaomiao.app"
+        },
+        "cordova-plugin-console": {
+            "PACKAGE_NAME": "com.miaomiao.app"
+        },
+        "cordova-plugin-device": {
+            "PACKAGE_NAME": "com.miaomiao.app"
+        },
+        "cordova-plugin-file-transfer": {
+            "PACKAGE_NAME": "com.miaomiao.app"
+        },
+        "cordova-plugin-media-capture": {
+            "CAMERA_USAGE_DESCRIPTION": " ",
+            "MICROPHONE_USAGE_DESCRIPTION": " ",
+            "PHOTOLIBRARY_USAGE_DESCRIPTION": " ",
+            "PACKAGE_NAME": "com.miaomiao.app"
+        },
+        "cordova-plugin-splashscreen": {
+            "PACKAGE_NAME": "com.miaomiao.app"
+        },
+        "cordova-plugin-statusbar": {
+            "PACKAGE_NAME": "com.miaomiao.app"
+        }
+    },
+    "dependent_plugins": {
+        "cordova-plugin-compat": {
+            "PACKAGE_NAME": "com.miaomiao.app"
+        },
+        "cordova-plugin-file": {
+            "PACKAGE_NAME": "com.miaomiao.app"
+        },
+        "cordova-plugin-jcore": {
+            "PACKAGE_NAME": "com.miaomiao.app"
+        }
+    }
+}

+ 1 - 0
miaomiao/www/js/app.js

xqd
@@ -50,6 +50,7 @@
                   StatusBar.styleLightContent();
                }
                var receiveNotification = function (event) {
+                   $rootScope.$emit('msg-new', { msg: '有新消息' });
                    // alert("receiveMessageIniOSCallback是" + +JSON.stringify(event));
                };
                var setTagsWithAliasCallback = function (event) {

+ 8 - 2
miaomiao/www/js/controllers/home.js

xqd xqd xqd
@@ -1,6 +1,6 @@
 (function (app) {
-    app.controller('homeCtrl', ["$scope", "$ionicTabsDelegate", "$http", 'config', "$state", "msg", "$ionicPopover", "homeService", "$ionicPopup", "$timeout", "$ionicSideMenuDelegate"
-        , function ($scope,$ionicTabsDelegate, $http, config, $state, msg, $ionicPopover, homeService, $ionicPopup, $timeout, $ionicSideMenuDelegate) {
+    app.controller('homeCtrl', ["$scope", "$ionicTabsDelegate", "$http", 'config', "$state", "msg", "$ionicPopover", "homeService", "$ionicPopup", "$timeout", "$ionicSideMenuDelegate", "$rootScope"
+        , function ($scope, $ionicTabsDelegate, $http, config, $state, msg, $ionicPopover, homeService, $ionicPopup, $timeout, $ionicSideMenuDelegate, $rootScope) {
         $scope.$on('$ionicView.beforeEnter', function () {
             $ionicTabsDelegate.showBar(true);
             $scope.load(true);
@@ -16,6 +16,11 @@
 
             });
         });
+        $rootScope.$on('msg-new', function (event, msg) {
+            //收到新消息
+            alert('收到新消息,改变样式');
+            $scope.showMessage = 1;
+        })
         $scope.type = 'hot';//tab切换
 
             //$scope.chosedIndex = 0;
@@ -97,6 +102,7 @@
             users: [],
             dreams:[]
         };
+      
         $scope.next = function (type) {
             //type:1 前一个,type:2 后一个
             if($scope.index.users.length>0){