diff --git a/templates/green/html/mobile/user/favorites.html b/templates/green/html/mobile/user/favorites.html
index 44d3d44..793c76f 100644
--- a/templates/green/html/mobile/user/favorites.html
+++ b/templates/green/html/mobile/user/favorites.html
@@ -20,6 +20,28 @@
-
@@ -95,6 +127,10 @@
+
+ 移出书架
+
@@ -105,11 +141,12 @@
-
diff --git a/templates/green/html/user/favorites.html b/templates/green/html/user/favorites.html
index 985bec0..08ebb60 100644
--- a/templates/green/html/user/favorites.html
+++ b/templates/green/html/user/favorites.html
@@ -53,7 +53,7 @@
更新时间
- 书签
+ 操作
|
@@ -94,7 +94,7 @@
var bookShelfListHtml = "";
for (var i = 0; i < bookShelfList.length; i++) {
var book = bookShelfList[i];
- bookShelfListHtml += (" \n" +
+ bookShelfListHtml += ("
\n" +
" \n" +
" [" + book.catName + "]\n" +
" | \n" +
@@ -109,7 +109,8 @@
" " + book.lastIndexUpdateTime + "\n" +
" \n" +
" \n" +
- "继续阅读" +
+ "" +
+ "" +
" | \n" +
"
");
}
@@ -160,5 +161,21 @@
})
}
+
+ function removeFromBookShelf(bookId) {
+
+ $.ajax({
+ type: "delete",
+ url: "/user/removeFromBookShelf/" + bookId,
+ data: {},
+ dataType: "json",
+ success: function (data) {
+ if (data.code == 200) {
+ $("#shelf" + bookId).remove();
+ }
+ }
+ });
+
+ }