更新微信到热门
This commit is contained in:
parent
b812d99ee6
commit
a3b179a4e7
|
|
@ -95,7 +95,7 @@
|
|||
<script src="scripts/controllers/edit-controller.js"></script>
|
||||
<script src="scripts/controllers/bookmark-info-controller.js"></script>
|
||||
<script src="scripts/controllers/search-controller.js"></script>
|
||||
<script src="scripts/controllers/weixin-article-controller.js"></script>
|
||||
<script src="scripts/controllers/hot-controller.js"></script>
|
||||
<script src="scripts/controllers/note-controller.js"></script>
|
||||
<script src="scripts/externe/semantic.min.js"></script>
|
||||
<script src="scripts/externe/calendar.min.js"></script>
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue