<%for (const [year, yearMap] of dataMaps) {%> <%for (const [month, monthItems] of yearMap) {%> <%for (let index = 0; index < monthItems.length; index++) {%> <%const favorite = monthItems[index]%> <%favorite.uid = 'QZFAV-' + API.Utils.newSimpleUid(16)%> <%total = total -1%>
<%:=API.Common.formatContent(API.Favorites.getFavoriteOwner(favorite).name, 'HTML', false, false, false, false, true)%> <%:=API.Favorites.getType(favorite.type)%>
<%:=API.Common.formatContent(favorite.custom_create_time)%>
<%if(favorite.shuoshuo_info && favorite.shuoshuo_info.reason && favorite.shuoshuo_info.reason.trim() !== ''){%>
<%:=API.Common.formatContent(favorite.shuoshuo_info.reason,'HTML', false, true, false, false, true)%>

<%}%> <%if(favorite.share_info && favorite.share_info.reason && favorite.share_info.reason.trim() !== ''){%>
<%:=API.Common.formatContent(favorite.share_info.reason,'HTML', false, true, false, false, true)%>

<%}%> <%if(favorite.type === 5){%> <%/* 说说 */%> <%if(favorite.shuoshuo_info && favorite.shuoshuo_info.detail_shuoshuo_info && favorite.shuoshuo_info.detail_shuoshuo_info.content){%>
<%:=API.Common.formatContent(favorite.shuoshuo_info.detail_shuoshuo_info.content,'HTML', false, false, false, false, true)%>
<%}else{%>
<%:=API.Common.formatContent(favorite.abstract || favorite.desp,'HTML', false, false, false, false, true)%>
<%}%> <%}else if(favorite.type === 7){%> <%/* 分享 */%> <%if(favorite.title && favorite.title.trim() !== ''){%>
<%:=favorite.title%>
<%}%> <%if(favorite.abstract && favorite.abstract.trim() !== ''){%>
<%:=API.Common.formatContent(favorite.abstract || favorite.desp,'HTML', false, true, false, false, true)%>
<%}%> <%}else if(favorite.type === 3){%> <%/* 日志 */%> <%if(favorite.title && favorite.title.trim() !== ''){%>
<%:=favorite.title%>
<%}%> <%if(favorite.abstract && favorite.abstract.trim() !== ''){%>
<%:=API.Common.formatContent(favorite.abstract,'HTML', false, true, false, false, true)%>
<%}%> <%}else{%>
<%:=API.Common.formatContent(favorite.abstract || favorite.desp,'HTML', false, true, false, false, true)%>
<%}%>
<%/* 多媒体内容 */%>
<%/* 视频内容 */%> <%if(favorite.custom_videos){%> <%let imgIdex = 0%> <%for(let video of favorite.custom_videos){%> <% video.vid = 'QZ-' + API.Utils.newSimpleUid(16); %> <%if(video.play_url){%> <%}else{%> <%imgIdex++%> <%}%> <%}%> <%}%> <%/* 图片内容 */%> <%if(favorite.custom_origin_images || favorite.custom_images){%> <%let imgIdex = 0%> <%let favImages = favorite.custom_origin_images || favorite.custom_images%> <%for(let image of favImages){%> <%imgIdex++%> <%}%> <%}%>
<%/* 音乐内容(目前PC端已无法正常播放,直接显示专辑图片与歌曲信息) */%> <%if(favorite.custom_audios && favorite.custom_audios.length > 0){%>
<%}%>
<%}%> <%}%> <%}%>