Commit e2be287e authored by houdong's avatar houdong

登录修改

parent 09fac69c
...@@ -86,7 +86,10 @@ function submitBaoming(userType,tradeUrl){ ...@@ -86,7 +86,10 @@ function submitBaoming(userType,tradeUrl){
if(data.status == 1){ if(data.status == 1){
if(data.canLogin==1){ if(data.canLogin==1){
layer.alert('登录成功', 1, function(){location.reload();}); layer.alert('登录成功', 1, function(){
// location.reload();
location.href='/Index/myInvite?pop=1';
});
}else{ }else{
$('#baoming').text('进入交易'); $('#baoming').text('进入交易');
$('#pop1').hide(); $('#pop1').hide();
...@@ -97,10 +100,13 @@ function submitBaoming(userType,tradeUrl){ ...@@ -97,10 +100,13 @@ function submitBaoming(userType,tradeUrl){
if(data.joinStatus==1){ if(data.joinStatus==1){
//邀请页面过来的 //邀请页面过来的
if(tradeUrl==''){ if(tradeUrl==''){
window.location.reload(); // window.location.reload();
location.href='/Index/myInvite?pop=1';
}else{ }else{
//因登录窗重用,不出现下面的弹窗了 //因登录窗重用,不出现下面的弹窗了
layer.alert('登录成功', 1, function(){location.reload();}); layer.alert('登录成功', 1, function(){
location.reload();
});
return; return;
var index = $.layer({ var index = $.layer({
type: 1,title: ' ',border : [5, 0.5, '#666'],btns: 2,btn: ['关闭', '去交易'], type: 1,title: ' ',border : [5, 0.5, '#666'],btns: 2,btn: ['关闭', '去交易'],
......
...@@ -155,6 +155,10 @@ $(function(){ ...@@ -155,6 +155,10 @@ $(function(){
$('#closeSucc').click(function(){ $('#closeSucc').click(function(){
location.reload(); location.reload();
}); });
if('{$_GET.pop}'==1){
$(".mask").show();
$("#pop2weima").show();
}
}) })
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment