Merge branch 'feature/group_type' into dev

master
liuweiwen 5 years ago
commit bbc1b05e1c

@ -70,7 +70,7 @@
</div>
</li> -->
<li><a class="tuichujs" href="{:U('public/cp_logout')}">退出</a></li>
<li><a class="" href="{:U('public/cp_logout')}">退出</a></li>
</ul>
<div class="user">
<span>{:session('cp_user_auth.username')}</span>
@ -285,27 +285,7 @@ $(function(){
$window.resize(function(){
$("#main").css("min-height", $window.height() - 130);
}).resize();
$('.tuichujs').click(function(){
$.ajax({
type: 'POST',
async: false,
dataType: 'json',
url: "{:U('Public/logout')}",
success: function(data) {
updateAlert('退出成功','tip_right');
setTimeout(function(){
$('#tip').find('.tipclose').click();
},1500);
location.reload();
},
error:function(){
updateAlert("服务器故障!",'tip_error');
setTimeout(function(){
$('#tip').find('.tipclose').click();
},1500);
}
});
});
/* 左边菜单高亮 */
url = window.location.pathname + window.location.search;
url = url.replace(/(\/(p)\/\d+)|(&p=\d+)|(\/(id)\/\d+)|(&id=\d+)|(\/(group)\/\d+)|(&group=\d+)/, "");

Loading…
Cancel
Save