templatePreviewCardListInfo.zml 1.5 KB

123456789101112131415161718192021222324
  1. <#if cardList.isEmpty()>
  2. <div class="z-w100p z-h50 z-text-center z-px18">请创建名片</div>
  3. <#else>
  4. <script>
  5. </script>
  6. <div class="svgTemplateList">
  7. <#for item : cardList>
  8. <div id="sel_${item.getId()}" class="svgTemplateItem" onmouseenter='Z(this).children(".itemCtrBar").show();' onmouseleave='Z(this).children(".itemCtrBar").hide();'>
  9. <#if item.getCardUrl() != null && item.getCardUrl() != "">
  10. <div class="showSvg"><img src="${item.getCardUrl()}" width="240px" height="146px" /></div>
  11. <#else>
  12. <div class="showSvg"><img src="/zinc/images/nopic.png" width="240px" height="146px" /></div>
  13. </#if>
  14. <span class="itemCtrBar z-absolute z-w100p z-pd10 z-hide">
  15. <button type="button" class="z-button modelCheckBtn z-blue z-float-left" onclick="goDzmpCardEdit('${item.getId()}', '${item.getMediaId()}');"><i class="z-font z-px12 z-modify"></i>编辑</button>
  16. <button type="button" class="z-button modelCheckBtn z-red z-float-right" onclick="doDzmpCardDelete('${item.getId()}', '${item.getMediaId()}');"><i class="z-font z-px12 z-error"></i>删除</button>
  17. <button type="button" class="z-button modelCheckBtn z-yellow z-absolute" style="right: 10px;top: 118px;" onclick="doDzmpCardCopy('${item.getId()}', '${item.getMediaId()}');"><i class="z-font z-px12 z-add"></i>复制</button>
  18. </span>
  19. <div class="z-lh30 z-px16 z-color-gray">${item.getId()}</div>
  20. </div>
  21. </#for>
  22. </div>
  23. </#if>