diff --git a/public/scripts/controllers/note-controller.js b/public/scripts/controllers/note-controller.js index b586b2e..66bd57d 100644 --- a/public/scripts/controllers/note-controller.js +++ b/public/scripts/controllers/note-controller.js @@ -145,6 +145,7 @@ app.controller('noteCtr', ['$scope', '$state', '$stateParams', '$filter', '$wind } }); toastr.success('备忘删除成功!', "提示"); + $scope.totalItems -= 1; } else { toastr.error('没有找到对应的备忘录,删除失败!请刷新页面再尝试', "提示"); } @@ -202,6 +203,16 @@ app.controller('noteCtr', ['$scope', '$state', '$stateParams', '$filter', '$wind }); } + $scope.closeNote = function() { + $('.js-note').transition({ + animation: dataService.animation(), + duration: '500ms', + onComplete: function() { + $(".js-note").remove(); + } + }); + } + function getNotes() { $scope.loadBusy = true; var params = { diff --git a/public/views/note.html b/public/views/note.html index e74b8f5..52790de 100644 --- a/public/views/note.html +++ b/public/views/note.html @@ -1,3 +1,14 @@ +
+ +
+
系统检测到您好像还没添加过备忘录哦! +
+ +
+
+
@@ -43,8 +54,8 @@
-
-
+
+
通过搜索关键字"{{searchWord}}"(点击菜单"备忘录"重新查看所有),共找到备忘一共约{{totalItems}}个