YanaDH 7 anni fa
parent
commit
d372a8aeda
2 ha cambiato i file con 5 aggiunte e 4 eliminazioni
  1. 4 4
      miaomiao/www/js/config/config.js
  2. 1 0
      miaomiao/www/js/controllers/home.js

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

xqd
@@ -1,12 +1,12 @@
 (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'));

+ 1 - 0
miaomiao/www/js/controllers/home.js

xqd
@@ -3,6 +3,7 @@
         , function ($scope, $ionicTabsDelegate, $http, config, $state, msg, $ionicPopover, homeService, $ionicPopup, $timeout, $ionicSideMenuDelegate) {
             $scope.$on('$ionicView.beforeEnter', function (viewResult) {
                 $ionicTabsDelegate.showBar(true);
+                $scope.load();
                 homeService.messageInfo().then(function(result){
                     $scope.infos = result.data.data;
                     if($scope.infos.letter.is_read==0 && $scope.infos.reply.is_read==0 && $scope.infos.systemInfo.is_read==0){