<?php /* Smarty version Smarty-3.1.21-dev, created on 2025-04-16 17:17:21
|
compiled from "E:\ishangstudywebs\zhaopin\app\template\\member\public\changeutype.htm" */ ?>
|
<?php /*%%SmartyHeaderCode:2534767ff75a17afcb6-20880449%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
'file_dependency' =>
|
array (
|
'8ead6a04918b6611fea3d0a9ff7ddc2c9fb7aa67' =>
|
array (
|
0 => 'E:\\ishangstudywebs\\zhaopin\\app\\template\\\\member\\public\\changeutype.htm',
|
1 => 1634883847,
|
2 => 'file',
|
),
|
),
|
'nocache_hash' => '2534767ff75a17afcb6-20880449',
|
'function' =>
|
array (
|
),
|
'variables' =>
|
array (
|
'config' => 0,
|
),
|
'has_nocache_code' => false,
|
'version' => 'Smarty-3.1.21-dev',
|
'unifunc' => 'content_67ff75a17bd8b1_51024696',
|
),false); /*/%%SmartyHeaderCode%%*/?>
|
<?php if ($_valid && !is_callable('content_67ff75a17bd8b1_51024696')) {function content_67ff75a17bd8b1_51024696($_smarty_tpl) {?><?php if ($_COOKIE['uid']&&$_COOKIE['usertype']) {?>
|
<link href="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
|
/app/template/member/public/style/changeutype.css?v=<?php echo $_smarty_tpl->tpl_vars['config']->value['cachecode'];?>
|
" rel="stylesheet" type="text/css"/>
|
<!--切换类型-->
|
|
<div class="user_role_box none">
|
|
<div class="user_role">当前身份:<?php if ($_COOKIE['usertype']==1) {?>求职者<?php } elseif ($_COOKIE['usertype']==2) {?>招聘企业<?php } elseif ($_COOKIE['usertype']==3) {?>猎头中介<?php } elseif ($_COOKIE['usertype']==4) {?>培训机构<?php }?>
|
</div>
|
|
<div class="user_role_pic"></div>
|
|
<div class="user_role_bth <?php if ($_COOKIE['usertype']==1) {?> none <?php }?>">
|
<a href="javascript:;" onclick="changUsertypeFun(1);" class="user_role_bth_b">个人求职</a>
|
</div>
|
|
<div class="user_role_bth <?php if ($_COOKIE['usertype']==2) {?> none <?php }?>">
|
<a href="javascript:;" onclick="changUsertypeFun(2);" class="user_role_bth_b">招聘企业</a>
|
</div>
|
|
<?php if ($_smarty_tpl->tpl_vars['config']->value['sy_lietou_web']==1) {?>
|
<div class="user_role_bth <?php if ($_COOKIE['usertype']==3) {?> none <?php }?>">
|
<a href="javascript:;" onclick="changUsertypeFun(3);" class="user_role_bth_b">猎头/中介</a>
|
</div>
|
<?php }?>
|
|
<?php if ($_smarty_tpl->tpl_vars['config']->value['sy_train_web']==1) {?>
|
<div class="user_role_bth <?php if ($_COOKIE['usertype']==4) {?> none <?php }?>">
|
<a href="javascript:;" onclick="changUsertypeFun(4);" class="user_role_bth_b">培训机构</a>
|
</div>
|
<?php }?>
|
</div>
|
|
<div class="" id="infoboxusertype" style="display:none; ">
|
<div>
|
<input name="applyusertype" id="applyusertype" value="0" type="hidden">
|
<input name="usertype" id="usertype" value="<?php echo $_COOKIE['usertype'];?>
|
" type="hidden">
|
<div class="identity_textarea">
|
<textarea id="applybody" name="applybody" placeholder="请说明您需要切换身份的原因" class="bz_textarea_text"></textarea>
|
</div>
|
<div class="identity_bth">
|
<button type="button" onclick="domaincheck();" class="identity_bth_qd">确定</button>
|
|
<button type="button" id='applybtn' class="identity_bth_qx">取消</button>
|
</div>
|
</div>
|
</div>
|
<!-------已拒绝 start -------->
|
<div class="" id="applyyjj" style="display:none; ">
|
<div>
|
<div class="identity_jtip">
|
<div id="applyyjjsm"></div>
|
</div>
|
<div class="identity_sqbth">
|
<button type="button" id='newsapply' onclick="newsapplyt();" class="identity_sq">重新申请</button>
|
|
<button type="button" id='applybtnyjj' onclick="applybtnyjjt();" class="identity_qx">取消</button>
|
</div>
|
</div>
|
</div>
|
<!-------已拒绝 end -------->
|
<!-------待审核 start -------->
|
<div class="" id="applydqr" style="display:none; ">
|
<div>
|
|
<div class="identity_cgtip">
|
<div id="applydshsm"></div>
|
</div>
|
<div class="identity_cgwxtip">
|
你可关注微信快速接收审核信息
|
</div>
|
<div class="identity_cgwxewm">
|
<img src="<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_ossurl'];?>
|
/<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_wx_qcode'];?>
|
" width="120" height="120">
|
</div>
|
<div class="identity_cgtel">
|
如需快速审核,可拨打热线:<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_freewebtel'];?>
|
|
</div>
|
</div>
|
</div>
|
<!-------待审核 end -------->
|
<?php echo '<script'; ?>
|
>
|
layui.use('layer', function () {
|
var layer = layui.layer;
|
|
});
|
$(document).ready(function () {
|
$('#applybtn').click(function () {
|
layer.closeAll();
|
});
|
$('#applybtndsh').click(function () {
|
layer.closeAll();
|
});
|
});
|
|
function newsapplyt() {
|
$("#applyusertype").val(usertype);
|
$.layer({
|
type: 1,
|
title: '申请说明',
|
closeBtn: [0, true],
|
border: [10, 0.3, '#000', true],
|
area: ['300px', 'auto'],
|
page: {dom: "#infoboxusertype"}
|
});
|
|
}
|
|
function applybtnyjjt() {
|
|
layer.closeAll();
|
|
}
|
|
function changeutype() {
|
|
layer.open({
|
type: 1,
|
skin: 'yun_skin',
|
title: false,
|
closeBtn: 1,
|
area: ['390px', 'auto'],
|
content: $('.user_role_box')
|
});
|
}
|
|
//切换身份
|
function changUsertypeFun(usertype) {
|
|
var usertype = usertype;
|
|
$.post("<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
|
/index.php?m=ajax&c=applytype", {applyusertype: usertype}, function (data) {
|
|
if (data) {
|
var data = eval('(' + data + ')');
|
if (data.errcode == 9) {
|
parent.layer.msg('身份切换成功', 2, 9, function () {
|
window.location.href = 'index.php';
|
window.event.returnValue = false;
|
});
|
} else if (data.errcode == 1) {
|
parent.layer.msg(data.msg, 2, 8, function () {
|
window.location.href = data.url;
|
window.event.returnValue = false;
|
});
|
} else if (data.errcode == 6) {
|
$("#applydshsm").html(data.msg);
|
if (data.wxopenid || data.wxid) {
|
$("#wxbingding").css("display", "none");
|
} else {
|
$("#wxbingding").css("display", "block");
|
}
|
$.layer({
|
type: 1,
|
title: '温馨提示',
|
closeBtn: [0, true],
|
border: [10, 0.3, '#000', true],
|
area: ['400px', 'auto'],
|
page: {dom: "#applydqr"},
|
close: function () {
|
window.location.reload();
|
}
|
});
|
} else if (data.errcode == 3) {
|
|
$("#applyyjjsm").html(data.msg);
|
$.layer({
|
type: 1,
|
title: '拒绝说明',
|
closeBtn: [0, true],
|
border: [10, 0.3, '#000', true],
|
area: ['300px', 'auto'],
|
page: {dom: "#applyyjj"}
|
});
|
} else if (data.errcode == 5) {
|
|
$("#applyusertype").val(usertype);
|
$.layer({
|
type: 1,
|
title: '申请说明',
|
closeBtn: [0, true],
|
border: [10, 0.3, '#000', true],
|
area: ['300px', 'auto'],
|
page: {dom: "#infoboxusertype"}
|
});
|
} else {
|
|
parent.layer.msg(data.msg, 2, 8);
|
}
|
}
|
});
|
}
|
|
function domaincheck() {
|
var usertype = $('#usertype').val();
|
var applyusertype = $('#applyusertype').val();
|
var applybody = $.trim($("textarea[name='applybody']").val());
|
if (applyusertype == "") {
|
parent.layer.msg('请选择转换类型!', 2, 8);
|
return false;
|
} else if (usertype == applyusertype) {
|
parent.layer.msg('转换类型与当前类型一致,无须转换!', 2, 8);
|
return false;
|
}
|
if (applybody == "") {
|
parent.layer.msg('请填写申请说明!', 2, 8);
|
return false;
|
}
|
$.post("<?php echo $_smarty_tpl->tpl_vars['config']->value['sy_weburl'];?>
|
/index.php?m=ajax&c=applytype", {
|
usertype: usertype,
|
applyusertype: applyusertype,
|
applybody: applybody
|
}, function (data) {
|
var data = eval('(' + data + ')');
|
|
if (data.errcode == '9') {
|
|
parent.layer.msg('身份切换成功!', 2, 9, function () {
|
window.location.href = 'index.php';
|
return false;
|
});
|
}
|
if (data.errcode == '6') {
|
|
$("#applydshsm").html(data.msg);
|
if (data.wxopenid || data.wxid) {
|
$("#wxbingding").css("display", "none");
|
} else {
|
$("#wxbingding").css("display", "block");
|
}
|
$.layer({
|
type: 1,
|
title: '温馨提示',
|
closeBtn: [0, true],
|
border: [10, 0.3, '#000', true],
|
area: ['400px', 'auto'],
|
page: {dom: "#applydqr"},
|
close: function () {
|
window.location.reload();
|
}
|
});
|
} else if (data.msg) {
|
|
parent.layer.msg(data.msg, 2, 8);
|
} else {
|
parent.layer.msg('身份切换失败!', 2, 8);
|
}
|
});
|
}
|
<?php echo '</script'; ?>
|
>
|
<?php }?><?php }} ?>
|