搜索后的增加跳转

This commit is contained in:
luchenqun 2016-11-20 22:48:50 +08:00
parent 27cd720550
commit c7e09e6cf4
1 changed files with 9 additions and 0 deletions

View File

@ -46,6 +46,15 @@ app.controller('searchCtr', ['$scope', '$state', '$stateParams', '$filter', '$wi
}
$scope.jumpToUrl = function(url, id) {
if (!$scope.edit) {
$window.open(url, '_blank');
bookmarkService.clickBookmark({
id: id
});
}
}
$scope.delBookmark = function(bookmarkId) {
var params = {
id: bookmarkId