PageAdmin网站内容管理系统(CMS)交流论坛

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

请问如何使登陆不进会员中心,而是刷新首页? [复制链接]

1#
<button type="button" class="btn  btn-primary btn-lg col-xs-12 col-md-12  ui-pagePost" data-custom-params="url:'http://localhost080',callBack:'LoginSuccess',failCallBack:'FailCallBack',successMsg:''">登录</button>

   function LoginSuccess()
    {
            layer.msg('登录成功...', {
                icon: 16,
                time: 200000, //200秒
                shade: 0.01
       });
            SaveInfo();
            var to = Request("");
            top.location.href ="";
    }
都不行额~
分享 转发
TOP
2#

回复 2楼xiyou的帖子

修改模板的
TOP
3#

回复 2楼xiyou的帖子

改好了
   function LoginSuccess()
    {
            layer.msg('登录成功...', {
                icon: 16,
                time: 200000, //200秒
                shade: 0.01
       });
            SaveInfo();
            var to = Request("to");
            if (to == "") {
                to="@Url.ActionUrl("Index","Default")";
            }
            location.href ="..//";
    }
TOP
发新话题 回复该主题