You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
94 lines
4.3 KiB
94 lines
4.3 KiB
<!DOCTYPE html>
|
|
<!--[if IE 8]> <html class="ie ie8"> <![endif]-->
|
|
<!--[if IE 9]> <html class="ie ie9"> <![endif]-->
|
|
<!--[if gt IE 9]><!--> <html> <!--<![endif]-->
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>上传缴费证明 {$site_name} </title>
|
|
<meta name="keywords" content="{$menu.menu_seo_key|default=$site_seo_keywords}" />
|
|
<meta name="description" content="{$menu.menu_seo_des|default=$site_seo_description}">
|
|
{include file="public:head" /}
|
|
</head>
|
|
<body class="body-white">
|
|
<div class="wrap" style="height: 350px;">
|
|
{include file="public:nav" /}
|
|
<link href="__PUBLIC__/ppy/css/fileinput.css" media="all" rel="stylesheet" type="text/css" />
|
|
<script src="__PUBLIC__/ppy/js/fileinput.js" type="text/javascript"></script>
|
|
<script src="__PUBLIC__/ppy/js/fileinput_locale_zh.js" type="text/javascript"></script>
|
|
<script src="__PUBLIC__/ueditor/ueditor.config.js" type="text/javascript"></script>
|
|
<script src="__PUBLIC__/ueditor/ueditor.all.js" type="text/javascript"></script>
|
|
<div class="content bodymb">
|
|
<form class="form-horizontal ajaxForm2" id="formcodeinfo" name="formcodeinfo" method="post" action="{:url('home/Listn/jf')}" enctype='multipart/form-data'>
|
|
<input type="hidden" name="apply_id" id="apply_id" value="{$apply_id}" />
|
|
<div class="form-group">
|
|
<div class="modeub numbercon modeac">
|
|
<div class="numberlogoleft">缴费证明</div>
|
|
<div class="numbericon modeub modeac modepc" >
|
|
<!-- <div class="numberno">
|
|
{if(!empty($cult4apply.c_proof_of_payment_url))}
|
|
<img src="{$cult4apply.c_proof_of_payment_url}" width="300px"/>
|
|
{/if}
|
|
</div>-->
|
|
<img id="logo_img" src="{$cult4apply.c_proof_of_payment_url|get_imgurl=1}" style="border-radius:110px;width:120px;height: 120px;">
|
|
</div>
|
|
<div class="headeright">
|
|
<div class="headerightdes">jpg、png、gif 格式图片 100*100px</div>
|
|
<div class="col-sm-4">
|
|
<input name="filelogo" type="file" id="filelogo" accept="image/png,image/jpeg,image/gif" class="modepc" data-show-preview="false" data-show-upload="false" data-show-caption="true">
|
|
</div>
|
|
<button class="headerightbun modeub modeac modepc" type="submit" name="btnf6" value="SUBUPLOAD"><i class="ace-icon fa fa-check bigger-110"></i>上传</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{include file="public:footer"/}
|
|
{include file="public:scripts"/}
|
|
<script>
|
|
|
|
/* 通用表单不带检查操作,失败跳转 */
|
|
$(function () {
|
|
$('.ajaxForm2').ajaxForm({
|
|
success: complete, // 这是提交后的方法
|
|
dataType: 'json'
|
|
});
|
|
$("#filelogo").change(function(e){
|
|
if(e.currentTarget.files.length!=0) {
|
|
if (e.currentTarget.files[0].size > (20 * 1024 * 1024)) {
|
|
layer.msg('图片超过20M', {icon: 5, time: 3000});
|
|
$(this).val('');
|
|
return false;
|
|
}
|
|
var fileObj = e.currentTarget.files[0];
|
|
var reader = new FileReader();
|
|
//使用该对象读取file文件
|
|
reader.readAsDataURL(fileObj);
|
|
//读取文件成功后执行的方法函数
|
|
reader.onload=function(e) {
|
|
// 读取成功后返回的一个参数e,整个的一个进度事件
|
|
console.log(e);
|
|
// 选择所要显示图片的img,要赋值给img的src就是e中target下result里面的base64编码格式的地址
|
|
$('#logo_img').attr('src',e.target.result);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
//失败跳转
|
|
function complete(data) {
|
|
if (data.code == 1) {
|
|
layer.alert(data.msg, {icon: 6}, function (index) {
|
|
layer.close(index);
|
|
window.location.href = data.url;
|
|
});
|
|
} else {
|
|
layer.alert(data.msg, {icon: 5}, function (index) {
|
|
layer.close(index);
|
|
window.location.href = data.url;
|
|
});
|
|
return false;
|
|
}
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|