From a3b179a4e707a262bf9b3267e2e69e5442cfa880 Mon Sep 17 00:00:00 2001 From: HelloWorld Date: Thu, 23 Apr 2020 08:25:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=BE=AE=E4=BF=A1=E5=88=B0?= =?UTF-8?q?=E7=83=AD=E9=97=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view/index_index.html | 2 +- www/scripts/app-angular.js | 8 +- ...rticle-controller.js => hot-controller.js} | 4 +- www/scripts/services/data-service.js | 4 +- www/views/{weixin-article.html => hot.html} | 152 +++++++++--------- 5 files changed, 85 insertions(+), 85 deletions(-) rename www/scripts/controllers/{weixin-article-controller.js => hot-controller.js} (95%) rename www/views/{weixin-article.html => hot.html} (98%) 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 @@ - -
-
-
{{ channel.name }}
-
- -
- 正在加载中... -
- -
-
-
-
-
- {{bookmark.title}} -
-
-
- -
-
- - {{ bookmark.tagName }} - ·{{ bookmark.clickCount }}人收藏 - -
-
- - - - -
-
-
- -
-
-
共计 {{count}} 个
-
-
- -
-
-
+ +
+
+
{{ channel.name }}
+
+ +
+ 正在加载中... +
+ +
+
+
+
+
+ {{bookmark.title}} +
+
+
+ +
+
+ + {{ bookmark.tagName }} + ·{{ bookmark.clickCount }}人收藏 + +
+
+ + + + +
+
+
+ +
+
+
共计 {{count}} 个
+
+
+ +
+
+