first commit

This commit is contained in:
2025-02-20 14:59:35 +08:00
parent d7be84fac6
commit d4a3bb8ffc
2541 changed files with 336536 additions and 0 deletions
@@ -0,0 +1,35 @@
<#if svgMap.isEmpty()>
<div class="z-w100p z-h50 z-text-center z-px18">请选择模板</div>
<#else>
<script>
function templateSelectedEdit(mediaId)
{
var newUrl = "/zhiqimMediaEditor/mediaDesign.htm?";
newUrl += "mediaId=" + mediaId + "&"
newUrl += "designWidth="+${type.getSizeMWidth()}+"&"
newUrl += "designHeight="+${type.getSizeMHeight()}+"&"
newUrl += "printWidth="+${designOrder.getPrintWidth()}+"&"
newUrl += "printHeight="+${designOrder.getPrintHeight()}+"&";
newUrl += "bleedSize="+${sizeItem.getSizeBleed()}+"&"
newUrl += "orderIsCardType="+${orderIsCardType}+"&"
window.open(newUrl);
}
</script>
<div class="svgTemplateList">
<#for key : svgMap.keySet()>
<#var item = svgMap.get(key)/>
<div id="sel_${item.getMediaId()}" class="svgTemplateItem" onmouseenter='Z(this).children(".itemCtrBar").show();' onmouseleave='Z(this).children(".itemCtrBar").hide();'>
<#if item != null>
<#for bg : item.getBgList()>
<div class="showSvg">${bg.getSvgCode()}</div>
</#for>
</#if>
<span class="itemCtrBar z-absolute z-w100p z-pd10 z-hide">
<button type="button" class="z-button modelCheckBtn z-blue z-float-left" onclick="templateSelectedEdit('${key}');"><i class="z-font z-px12 z-success"></i>编辑</button>
<button type="button" class="z-button modelCheckBtn z-red z-float-right" onclick="doTemplateDelete('${key}')"><i class="z-font z-px12 z-error"></i>删除</button>
</span>
<div class="z-lh30 z-px16 z-color-gray">${item.getMediaId()}</div>
</div>
</#for>
</div>
</#if>