修正card显示详情之后日期错误的问题

This commit is contained in:
luchenqun 2017-02-23 21:51:45 +08:00
parent 257ec88174
commit 506a405f21
1 changed files with 3 additions and 1 deletions

View File

@ -67,7 +67,9 @@ app.controller('bookmarksCtr', ['$scope', '$state', '$stateParams', '$filter', '
}); });
} }
$scope.detailBookmark = function(bookmark) { $scope.detailBookmark = function(b) {
var bookmark = $.extend(true, {}, b); // 利用jQuery执行深度拷贝
console.log(JSON.stringify(bookmark), ' ddddd ', JSON.stringify(b));
if ($scope.showStyle == 'navigate') { if ($scope.showStyle == 'navigate') {
bookmark.last_click = bookmark.last_click.substring(0, 10); bookmark.last_click = bookmark.last_click.substring(0, 10);
bookmark.created_at = bookmark.created_at.substring(0, 10); bookmark.created_at = bookmark.created_at.substring(0, 10);