templateCustomerPreview.zml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. ${request.getValidateScript()}
  2. <script>
  3. Z.onload(function()
  4. {
  5. doTemplateExistQuery();
  6. })
  7. function doTemplateExistQuery()
  8. {//查询已选模板
  9. var ajax = new Z.Ajax();
  10. ajax.setClassName("TemplatePreviewPresenter");
  11. ajax.setMethodName("doTemplateExistQueryForCustomer");
  12. ajax.addParam("designId", "${designId}");
  13. ajax.addParam("typeId", "${typeId}");
  14. ajax.setCallback("templateResult");
  15. ajax.setLoading("templateResult");
  16. ajax.execute();
  17. }
  18. function copyMediaId(mediaId)
  19. {//复制模板id
  20. Z.copy(mediaId);
  21. top.Z.tips("复制成功");
  22. }
  23. </script>
  24. <style>
  25. body{height:100%;}
  26. /*图片展示区*/
  27. .container{min-height:auto;}
  28. .mainbody{height:100%;}
  29. .content{height:calc(100% - 40px);overflow-y:auto;}
  30. form[name="theForm"]{float:left;width:100%;}
  31. /* tab标签 */
  32. .svgTemplateList .itemCtrBar{left:0;top:0;}
  33. #svgTemplateWrap{height:calc(100% - 176px)}
  34. #templateTab{float:none;}
  35. /*内容盒子*/
  36. #svgTemplateWrap > section{height:calc(100% - 50px);background:#ffffff;border:1px solid #dcdcdc;border-top:none;}
  37. /*模板列表*/
  38. .svgTemplateList{width:100%;height:100%;column-count:5;}
  39. .svgTemplateList .svgTemplateItem{width:100%;height:100%;text-align:center;padding:5px;background:#fff;border:1px solid #ccc;overflow:auto;position:relative;}
  40. .svgTemplateItem > .templateItemBtn{padding:10%;left:0;top:0;display:flex;justify-content:space-around;align-items:center;align-content:center;}
  41. .svgTemplateItem > .templateItemBtn .z-button{display:none;}
  42. .svgTemplateItem > .templateItemBtn:hover{background:rgba(0,0,0,.2);}
  43. .svgTemplateItem > .templateItemBtn:hover .z-button{display:inline-block;}
  44. .svgTemplateItem .itemSelectedSign{display:none;width:0;height:0;right:5px;bottom:5px;border-width:30px;border-style:solid;border-color:transparent #28a3ef #28a3ef transparent;}
  45. .svgTemplateItem .itemSelectedSign > span{white-space:nowrap;left:-5px;color:#fff;top:5px;}
  46. .svgTemplateItem.selected .itemSelectedSign{display:block;}
  47. .showSvg {pointer-events:none;display: block;margin-top:2px;}
  48. .showSvg:first-child{margin-top:0;}
  49. .showSvg > svg {width:100%;height: auto;}
  50. /** 选中样式 **/
  51. .svgTemplateItem.selected{}
  52. .column-count {-webkit-column-count:4;-moz-column-count:4;}
  53. </style>
  54. <div id="templateResult" class="z-pd20 z-active z-text-center"></div>