From 4f1cb8e208aedd1b41ce3f624e218886b9d62755 Mon Sep 17 00:00:00 2001 From: luchenqun Date: Thu, 18 May 2017 16:52:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=87=E5=BF=98=E5=BD=95=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/scripts/controllers/note-controller.js | 11 +++++++++++ public/views/note.html | 15 +++++++++++++-- 2 files changed, 24 insertions(+), 2 deletions(-) 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 @@ +
+ +
+
系统检测到您好像还没添加过备忘录哦! +
+
    +
  • 您可以在任意界面按快捷键A(不区分大小写)增加备忘录。双击备忘录可查看详情!
  • +
+
+
+
@@ -43,8 +54,8 @@
-
-
+
+
通过搜索关键字"{{searchWord}}"(点击菜单"备忘录"重新查看所有),共找到备忘一共约{{totalItems}}个