| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <#-- 主题变量和函数定义 -->
- <#include "/ztmpl/zhiqim_manager/"+themeMain+"/define.htm"/>
- <!DOCTYPE html>
- <html>
- <head>
- <title>${context.getContextName()}</title>
- <meta charset="UTF-8">
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- ${Styles.src(zhiqim.css)}
- ${Scripts.src(zhiqim.js)}
- ${Styles.src(zmr_theme.css)}
- ${Styles.src(context.getRootPath("/zinc/layui/css/layui.css"))}
- ${Scripts.src(context.getRootPath("/zinc/layui/layui.js"))}
- </head>
- <body>
- <script>
- var hostUrl = Z.l.protocol+'//'+Z.l.host;
- layui.use(['upload', 'element', 'layer'], function(){
- var $ = layui.jquery
- ,upload = layui.upload
- ,element = layui.element
- ,layer = layui.layer;
-
- //拖拽上传
- upload.render({
- elem: '#test10'
- ,url: hostUrl+'/uploadCustomFilesInfo.htm?oid='+${oid}
- ,accept: 'file'
- ,size:51200
- ,multiple:true
- ,number:0
- ,allDone: function(obj){ //当文件全部被提交后,才触发
- $("#uploadTotal").empty();
- $("#uploadSuccessful").empty();
- $("#uploadAborted").empty();
- $("#uploadTotal").append(obj.total);
- $("#uploadSuccessful").append(obj.successful);
- $("#uploadAborted").append(obj.aborted);
- }
- ,before: function(obj){
- window.ajaxLoading = Z.loading({text:"正在上传中,请稍后...", shadow:true , width:300});
- }
- ,done: function(res){
- ajaxLoading.close();
- if(res.code == 0)
- {
- layer.msg('上传成功');
- }
- else
- {
- layer.msg(res.msg);
- }
- }
- , error: function (res) {
- //请求异常回调
- layer.closeAll('loading');
- console.error(res);
- }
- });
-
- });
- </script>
- <input type="hidden" id="oid" name="oid" value="${order.getOid()}">
- <table class="z-table z-bordered z-pd6 z-bg-white zi-bd-b-none">
- <tr style="height:35px" bgcolor="${zmr_thead_bgcolor}">
- <td class="z-text-left z-w50p">客户素材</td>
- </tr>
- <tr valign="top" >
- <td>
- <div class="layui-upload-drag" id="test10" style="width: 100%;height: 240px;">
- <i class="layui-icon"></i>
- <p>点击上传或拖拽资料素材到此处</p>
- </div><br/><br/>
- 共上传:<strong id="uploadTotal" style="color: #009688;">0</strong>个
- 成功:<strong id="uploadSuccessful" style="color: #5FB878;">0</strong>个
- 失败:<strong id="uploadAborted" style="color: #FF5722;">0</strong>个
- </td>
- </tr>
- </table>
- <div class="z-absolute z-w100p z-h60 z-text-center z-bg-gray z-pd10" style="bottom:0;left:0">
- <button type="button" class="z-button z-large z-mg-l20" onclick="parent.Z.Dialog.close(location.hash);">关闭</button>
- </div>
- </body>
- </html>
|