'+
''+
''+
'
'+
''+
''+
'
'+
''+
'
Upload:
'+
'
Upload
'+
'
'+
'
'+
''+
'
Code:
'+
'
'+
'
'+
'
'+
'
'+
'';
layer.open({
type: 1,
title: false,
closeBtn: 1,
shadeClose: false,
area: ['auto','auto'],
content: html,
});
//提交简历
$("#submit_btn").click(function(){
var formdata = new FormData(document.getElementById("form1"));
$.ajax({
type:"POST",
url:"/en/index.php?a=ajax&mod=dyajax&act=resume",
data:formdata,
cache:false,
async:false,
contentType: false,
processData: false,
dataType:"json",
success:function(data){
if(data.errcode == 0){
layer.alert(data.message, {skin: 'layui-layer-molv' ,closeBtn: 0,title:"Tips:",icon:2,anim:2});
}else if(data.errcode == 1){
layer.alert(data.message, {skin: 'layui-layer-molv' ,closeBtn:0,title:"Tips:",icon:1,anim:2},function(){window.parent.location.reload();});
}
},
error: function(){
layer.tips("Information submission failed, please click to try again");
}
})
})
};
function changeFile(obj) {
console.log($(obj)[0].value.split('\\'));
$("#file_name").text($(obj)[0].value.split('\\')[2]);
};