diff --git a/view/index_index.html b/view/index_index.html index c0d3c9e..aa2c5b0 100644 --- a/view/index_index.html +++ b/view/index_index.html @@ -95,7 +95,7 @@ - + diff --git a/www/scripts/app-angular.js b/www/scripts/app-angular.js index 1090043..ae229ec 100644 --- a/www/scripts/app-angular.js +++ b/www/scripts/app-angular.js @@ -53,10 +53,10 @@ app.config(function ($stateProvider, $urlRouterProvider, $httpProvider) { templateUrl: 'views/bookmarks.html', controller: 'bookmarksCtr' }) - .state('weixin-article', { - url: '/weixin-article', - templateUrl: 'views/weixin-article.html', - controller: 'weixinArticleCtr' + .state('hot', { + url: '/hot', + templateUrl: 'views/hot.html', + controller: 'hotCtr' }) .state('note', { url: '/note', diff --git a/www/scripts/controllers/weixin-article-controller.js b/www/scripts/controllers/hot-controller.js similarity index 95% rename from www/scripts/controllers/weixin-article-controller.js rename to www/scripts/controllers/hot-controller.js index a23a855..5ddf3fc 100644 --- a/www/scripts/controllers/weixin-article-controller.js +++ b/www/scripts/controllers/hot-controller.js @@ -1,5 +1,5 @@ -app.controller('weixinArticleCtr', ['$scope', '$state', '$sce', '$filter', '$window', '$timeout', '$document', 'pubSubService', 'dataService', function ($scope, $state, $sce, $filter, $window, $timeout, $document, pubSubService, dataService) { - console.log("Hello weixinArticleCtr..."); +app.controller('hotCtr', ['$scope', '$state', '$sce', '$filter', '$window', '$timeout', '$document', 'pubSubService', 'dataService', function ($scope, $state, $sce, $filter, $window, $timeout, $document, pubSubService, dataService) { + console.log("Hello hotCtr..."); if (dataService.smallDevice()) { $window.location = "http://m.mybookmark.cn/#/tags"; return; diff --git a/www/scripts/services/data-service.js b/www/scripts/services/data-service.js index 51058cc..d30ec52 100644 --- a/www/scripts/services/data-service.js +++ b/www/scripts/services/data-service.js @@ -23,7 +23,7 @@ app.factory('dataService', [function () { uiSref: 'note', title: '备忘' }, { - uiSref: 'weixin-article', + uiSref: 'hot', title: '热门' }, { uiSref: 'settings', @@ -39,7 +39,7 @@ app.factory('dataService', [function () { uiSref: 'login', title: '登录' }, { - uiSref: 'weixin-article', + uiSref: 'hot', title: '热门' }], animationIndex: 0, diff --git a/www/views/weixin-article.html b/www/views/hot.html similarity index 98% rename from www/views/weixin-article.html rename to www/views/hot.html index 565dc88..ba24405 100644 --- a/www/views/weixin-article.html +++ b/www/views/hot.html @@ -1,76 +1,76 @@ - -