first commit
Cette révision appartient à :
@@ -0,0 +1,22 @@
|
||||
<#if cardList.isEmpty()>
|
||||
<div class="z-w100p z-h50 z-text-center z-px18">未查询到历史模板</div>
|
||||
<#else>
|
||||
<script>
|
||||
</script>
|
||||
|
||||
<div class="svgTemplateList">
|
||||
<#for item : cardList>
|
||||
<div id="sel_${item.getId()}" class="svgTemplateItem">
|
||||
<#if item.getCardUrl() != null && item.getCardUrl() != "">
|
||||
<div class="showSvg"><img src="${item.getCardUrl()}" width="240px" height="146px" /></div>
|
||||
<#else>
|
||||
<div class="showSvg"><img src="/zinc/images/nopic.png" width="240px" height="146px" /></div>
|
||||
</#if>
|
||||
<span class="templateItemBtn z-absolute z-w100p z-h100p">
|
||||
<button type="button" class="z-button z-large z-blue z-mg-t30" onclick="doSelectHistoryTemplate('${item.getId()}');">选择</button>
|
||||
</span>
|
||||
<div class="z-lh30 z-px16 z-color-gray">${item.getId()}</div>
|
||||
</div>
|
||||
</#for>
|
||||
</div>
|
||||
</#if>
|
||||
@@ -0,0 +1,14 @@
|
||||
|
||||
<div class="svgTemplateList">
|
||||
<#for key : svgMap.keySet()>
|
||||
<#var item = svgMap.get(key)/>
|
||||
<div id="sel_${item.getMediaId()}" class="svgTemplateItem">
|
||||
<#if item != null>
|
||||
<#for bg : item.getBgList()>
|
||||
<div class="showSvg">${bg.getSvgCode()}</div>
|
||||
</#for>
|
||||
</#if>
|
||||
<div class="z-lh30 z-px16 z-color-gray">${item.getMediaId()}<button class="z-button z-purple z-operater" style="margin-left:20px;"onclick="copyMediaId('${item.getMediaId()}');">复制模板编号</button></div>
|
||||
</div>
|
||||
</#for>
|
||||
</div>
|
||||
@@ -0,0 +1,24 @@
|
||||
<#if cardList.isEmpty()>
|
||||
<div class="z-w100p z-h50 z-text-center z-px18">请创建名片</div>
|
||||
<#else>
|
||||
<script>
|
||||
</script>
|
||||
|
||||
<div class="svgTemplateList">
|
||||
<#for item : cardList>
|
||||
<div id="sel_${item.getId()}" class="svgTemplateItem" onmouseenter='Z(this).children(".itemCtrBar").show();' onmouseleave='Z(this).children(".itemCtrBar").hide();'>
|
||||
<#if item.getCardUrl() != null && item.getCardUrl() != "">
|
||||
<div class="showSvg"><img src="${item.getCardUrl()}" width="240px" height="146px" /></div>
|
||||
<#else>
|
||||
<div class="showSvg"><img src="/zinc/images/nopic.png" width="240px" height="146px" /></div>
|
||||
</#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="goDzmpCardEdit('${item.getId()}', '${item.getMediaId()}');"><i class="z-font z-px12 z-modify"></i>编辑</button>
|
||||
<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>
|
||||
<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>
|
||||
</span>
|
||||
<div class="z-lh30 z-px16 z-color-gray">${item.getId()}</div>
|
||||
</div>
|
||||
</#for>
|
||||
</div>
|
||||
</#if>
|
||||
@@ -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="+${type.getBleeding()}+"&"
|
||||
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>
|
||||
@@ -0,0 +1,70 @@
|
||||
<#if Validates.isEqual(queryType, "KEYWORD")>
|
||||
<div class="z-mg-b20 z-text-center" style="display:block">
|
||||
<div class="z-show-ib">
|
||||
<input id="searchSort" type="hidden" />
|
||||
<button type="button" style="width:100px;" data-options="group:sort" class="z-button z-large z-bordered z-blue-bd z-hover <#if sort=='3'>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Z('#searchSort').val('3');doKeywordQuery('1');">最热</button>
|
||||
<button type="button" style="width:100px;" data-options="group:sort" class="z-button z-large z-bordered z-blue-bd z-hover <#if sort=='1'>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Z('#searchSort').val('1');doKeywordQuery('1');">最新</button>
|
||||
<button type="button" style="width:100px;" data-options="group:sort" class="z-button z-large z-bordered z-blue-bd z-hover <#if sort=='4'>z-active</#if>" onclick="Z.EL.toggleClass(this,'z-active');Z('#searchSort').val('4');doKeywordQuery('1');">精品</button>
|
||||
<input id="searchinput" class="z-input z-w400 zi-h40 zi-bd-r-none" placeholder="输入关键词" value="${keyword}" maxlength="60"><button type="button" class="z-button z-w80 z-h40 zi-bd-rd0 z-orange" onclick="doKeywordQuery('1');"><i class="z-font z-query"></i>搜索</button>
|
||||
<div class="z-mg-t10 z-text-left">热词:
|
||||
<#for item : subIndustryList>
|
||||
<a href="javascript:{Z('#searchinput').val('${item.getIndustrySubName()}');doKeywordQuery('1');}" >${item.getIndustrySubName()}</a>
|
||||
</#for>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<#elseif Validates.isEqual(queryType, "COLLECT")>
|
||||
<div class="z-mg-b20 z-text-center" style="display:block">
|
||||
<div class="z-show-ib">
|
||||
<input id="searchinput" class="z-input z-w400 zi-h40 zi-bd-r-none" placeholder="输入关键词" value="${keyword}" maxlength="60"><button type="button" class="z-button z-w80 z-h40 zi-bd-rd0 z-orange" onclick="doKeywordQuery('1');"><i class="z-font z-query"></i>搜索</button>
|
||||
</div>
|
||||
</div>
|
||||
<#else>
|
||||
<#if pageResult.total() gt 0>
|
||||
<div class="z-mg-b20 z-text-center" style="display:block">
|
||||
<span class="z-button z-blue z-mg-l5 z-text-right" onclick="<#if pageResult.totalPages() == page>doTemplateTypeQuery('1');<#else>doTemplateTypeQuery('${page + 1}');</#if>">换一批</span>
|
||||
</div>
|
||||
</#if>
|
||||
</#if>
|
||||
|
||||
<div class="svgTemplateList z-mg-t5">
|
||||
<#for item : pageResult.list()>
|
||||
<#var key = item.getMediaId()/>
|
||||
<div id="nav_${key}" class="svgTemplateItem <#if designId != -1 && Lists.contains(idList, key)>selected</#if>">
|
||||
<img src="
|
||||
<#if Validates.isEmpty(item.getMediaUrl())>/zinc/images/nopic.png
|
||||
<#else>
|
||||
<#if media.getMediaUrl().indexOf(",") == -1>
|
||||
${item.getMediaUrl()}
|
||||
<#else>
|
||||
<#for path : Arrays.toStringArray(item.getMediaUrl())>
|
||||
<#if path_index lt 1>
|
||||
${path}
|
||||
</#if>
|
||||
</#for>
|
||||
</#if>
|
||||
</#if>
|
||||
">
|
||||
<div class="templateItemBtn z-absolute z-w100p z-h100p">
|
||||
<span class="z-button z-large z-blue" onclick="doSelectTemplate('${key}');">选择</span>
|
||||
<span class="z-button z-large" onclick="unSelectTemplate('${key}');">取消</span>
|
||||
</div>
|
||||
<div class="itemSelectedSign z-absolute"><span class="z-absolute">已选</span></div>
|
||||
<div class="z-lh30 z-px16 z-color-gray">${item.getMediaId()}</div>
|
||||
</div>
|
||||
</#for>
|
||||
</div>
|
||||
|
||||
<#if pageResult.total()==0>
|
||||
<div class="z-text-center z-px20 z-color-gray z-mg-t15 z-h100">该关键词未查询到模板 请换其他关键词试试!</div>
|
||||
</#if>
|
||||
|
||||
<#if Validates.isEqual(queryType, "KEYWORD") || Validates.isEqual(queryType, "COLLECT")>
|
||||
<div style="width:100%;text-align:center;margin-bottom:35px;">
|
||||
<table class="z-table z-bordered zi-bd-t-none z-bg-white">
|
||||
<tr class="z-h50">
|
||||
<td><div class="z-float-right z-mg-r10">${PagingGo.toHtmlClick(pageResult, "doKeywordQuery")}</div></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</#if>
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur