修正card显示详情之后日期错误的问题
This commit is contained in:
parent
257ec88174
commit
506a405f21
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue