Zhiqim Account(前端账户管理台)是在ZhiqimManager基础上改造成用于前端注册登录的管理系统,增加组织结构和余额,开放注册组织和组织管理员,可以添加组织内的部门和角色和操作员。并增加该管理台上的一些组件,如充值支付等组件。适用于二级代理管理或该大型组织机构

森中灵 最后提交于9月前 整理为组织方式和替换新的jar
index.zml3KB
<#var userAccount = request.getCookie("userAccount")/>
<#var isRemember = request.getCookie("isRemember")/>

<script>
Z.onload(function()
{
    Z(".form").css("height", Z.Document.clientHeight() - 55);
    Z(window).resize(function(){Z(".form").css("height", Z.Document.clientHeight() - 55)});
    <#if Validates.isEmpty(userAccount)>
    Z(document.forms[0].userAccount).focus();
    <#else>
    Z(document.forms[0].userPass).focus();
    </#if>
});

function doQQConnect()
{//QQ登录
    location.href = "connect/qq.htm";
}

function doWxConnect()
{//微信登录
    location.href = "connect/wxop/index.htm";
}

function doSubmit(form)
{//登录提交
    var ajax = new Z.Ajax();
    ajax.setClassName("ZmrPassportPresenter");
    ajax.setMethodName("login");
    ajax.addParam("userAccount", form.userAccount.value);
    ajax.addParam("userPass", form.userPass.value);
    <#if ZmrParamDao.hasAutoLogin()>
    ajax.addParam("isRemember", form.isRemember.checked ? 'on' : '');
    </#if>
    ajax.setFailureAlert();
    ajax.setSuccessLocation("account/main.htm");
    ajax.setLoading(form.submit, "正在登录...", {disabled:true});
    ajax.execute();
}
</script>

<div class="form">
<form name="theForm" action="javascript:void(0);" onsubmit="doSubmit(this);">
<input type="text" class="z-hidden-fixed">
<input type="password" class="z-hidden-fixed">
    <div class="title" style="height:390px;">
        <div class="z-relative-left z-bd-b z-pd-b10 z-w100p z-mg-b30">
            <div class="z-relative-left z-50p z-px24"><i class="z-font z-customer"></i>&nbsp;&nbsp;登录</div>
            <div class="z-relative-right z-50p z-px16 z-color-gray z-pd-t8">没有账户?&nbsp;<a class="zi-text-blue" href="register.htm">马上注册</a></div>
        </div>
        <div class="z-relative-center" style="width:350px;">
            <div><input class="z-input z-w100p zi-h50 z-px14 z-blue z-xlarge zi-pd10 zi-bd-rd5" name="userAccount" value="${userAccount}" maxlength="64" placeholder="用户名/手机号" spellcheck="false"></div>
            <div class="z-mg-t20"><input type="password" class="z-input z-w100p zi-h50 z-px14 z-blue z-xlarge zi-pd10 zi-bd-rd5" name="userPass" value="" maxlength="20" placeholder="密码"></div>
            <div class="z-mg-t20 z-h30">
                <#if ZmrParamDao.hasAutoLogin()>
                <span class="z-px16 z-color-gray z-float-left z-w150" ><input name="isRemember" data-role="z-checkbox" data-class="z-blue" <#if Validates.isNotEmpty(isRemember)>checked</#if> type="checkbox"><span class="z-mg-l20">一周内自动登录</span></span>
                </#if>
                <span class="z-float-right z-text-right z-px16 z-color-gray z-w150" ><a href="forgetPass.htm">忘记密码</a></span>
            </div>
            <div class="z-mg-t10"><button name="submit" class="z-button z-xlarge zi-pd10 z-blue zi-px20 z-w100p zi-bd-rd5 zi-pointer">登录</button></div>
            
            <!-- QQ登陆 -->
            <!--
            <div class="z-mg-t20">
                其他方式:<a href="javascript:doQQConnect();"><img src="${context.getRootPath("/zinc/zhiqim_account/www/qq_login_button7.png")}"></a>
                <a href="javascript:doWxConnect();"><img src="${context.getRootPath("/zinc/zhiqim_account/www/wx_login_button1.png")}"></a>
            </div>-->
        </div>
    </div>
</form>
</div>