Skip to content

Commit

Permalink
增加持久化集成支持
Browse files Browse the repository at this point in the history
  • Loading branch information
gwuhaolin committed Jul 3, 2015
1 parent 722845b commit 9ca1fe2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
@@ -0,0 +1,3 @@
language: node_js
node_js:
- "0.12"
Empty file added README.md
Empty file.
2 changes: 1 addition & 1 deletion web/index.html
@@ -1,4 +1,4 @@
<!DOCTYPE html>

<html lang="zh-CN">
<head>
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
Expand Down
4 changes: 2 additions & 2 deletions web/js/service/BookRecommend.js
Expand Up @@ -20,8 +20,8 @@ APP.service('BookRecommend$', function ($rootScope, DoubanBook$, BookInfo$) {
});
},
getTagAttrNames: function () {
if (that['BookTag']['tag']) {
return Object.keys(that['BookTag']['tag']);
if (that.BookTag.tag) {
return Object.keys(that.BookTag.tag);
}
return [];
}
Expand Down
8 changes: 4 additions & 4 deletions web/wechat/temp/book/recommend.html
Expand Up @@ -4,7 +4,7 @@
</ion-nav-buttons>
<ion-content>
<!-- 图书分类-->
<div ng-if="BookRecommend$['BookTag']['tag']">
<div ng-if="BookRecommend$.BookTag.tag">
<ion-item class="item-divider item-button-right">图书分类
<button class="button button-small button-clear button-balanced" style="top: 0"
ng-click="bookTagsModalView.show()">更多
Expand All @@ -13,7 +13,7 @@
<ion-item style="white-space:normal">
<button class="button button-small button-outline button-balanced" style="margin: 5px"
ui-sref="tab.book_bookList({cmd:'tag',tag:tag})"
ng-repeat="tag in BookRecommend$['BookTag'].getTagAttrNames()">{{tag}}
ng-repeat="tag in BookRecommend$.BookTag.getTagAttrNames()">{{tag}}
</button>
</ion-item>
</div>
Expand Down Expand Up @@ -89,13 +89,13 @@ <h1 class="title">图书热门分类</h1>
</ion-header-bar>
<ion-content class="has-header">
<ion-list>
<div ng-repeat="bigTag in BookRecommend$['BookTag'].getTagAttrNames()">
<div ng-repeat="bigTag in BookRecommend$.BookTag.getTagAttrNames()">
<ion-item class="item-divider item-button-right">{{bigTag}}</ion-item>
<ion-item style="white-space:normal">
<button class="button button-small button-outline button-balanced" style="margin: 5px"
ui-sref="tab.book_bookList({cmd:'tag',tag:tag})"
ng-click="bookTagsModalView.hide()"
ng-repeat="tag in BookRecommend$['BookTag']['tag'][bigTag]">
ng-repeat="tag in BookRecommend$.BookTag.tag.bigTag">
{{tag}}
</button>
</ion-item>
Expand Down

0 comments on commit 9ca1fe2

Please sign in to comment.