Zhiqim Account(前端账户管理台)是在ZhiqimManager基础上改造成用于前端注册登录的管理系统,增加组织结构和余额,开放注册组织和组织管理员,可以添加组织内的部门和角色和操作员。并增加该管理台上的一些组件,如充值支付等组件。适用于二级代理管理或该大型组织机构
profileModifyMobile.zml2KB
<script>
function doSendVcode(form)
{
if(Z(form.btnValidate).attr("disabled"))
return;
var operatorMobile = Z(form.operatorMobile).val();
if(!Z.V.isMobile11(operatorMobile))
{
Z.failure("请输入正确的手机号码");
return ;
}
Z(form.btnValidate).attr("disabled", true);
var ajax = new Z.Ajax();
ajax.setClassName("ZmrProfilePresenter");
ajax.setMethodName("doSendVcodeByModifyMobile");
ajax.addParam("operatorMobile", operatorMobile);
ajax.setFailure(function(){Z(form.btnValidate).attr("disabled", false);Z.failure(this.responseText);});
ajax.setSuccess(function()
{
Z.timer(1000, 120, Z(form.btnValidate),
function(curTimes){this.text("剩余"+(120-curTimes)+"秒");},
function(){this.attr("disabled", false).text("发送验证码");});
});
ajax.execute();
}
function doSubmit(form)
{
var ajax = new Z.Ajax();
ajax.setClassName("ZmrProfilePresenter");
ajax.setMethodName("doUpdateMobile");
ajax.setParamForm(form);
ajax.setFailureAlert();
ajax.setSuccessAlertReloadParent("修改成功");
ajax.execute();
}
</script>
<form>
<table class="z-table z-pd10">
<tr class="z-h70">
<td width="80">新手机号:</td>
<td width="250"><input name="operatorMobile" class="z-input z-w100p z-blue zi-h35" maxlength="11" data-options="type:Numeric;paste:true;" autocomplete="off" placeholder="手机号"></td>
<td width="*" class="z-color-666">(原手机号:${Validates.isNotEmptyBlank(sessionUser.getOperatorMobile())?sessionUser.getOperatorMobile():"未绑定"})</td>
</tr>
<tr class="z-h70">
<td>验 证 码:</td>
<td><input class="z-input z-w100p z-blue zi-h35" name="vcode" maxlength="6" data-options="type:Numeric;paste:true;" placeholder="验证码"></td>
<td><button type="button" class="z-button z-w100 z-mg-l5 fi-px14" name="btnValidate" style="height:35px;" onclick="javascript:doSendVcode(this.form);">发送验证码</button></td>
</tr>
</table>
<div class="z-absolute z-b0 z-l0 z-w100p z-h80 z-pd20 z-text-center z-bg-gray">
<button type="button" class="z-button z-large z-w100 ${zmr_color_class}" onclick="doSubmit(this.form);">提交</button>
<button type="button" class="z-button z-large z-w100 z-mg-l10" onclick="parent.Z.Dialog.close();">关闭</button>
</div>
</form>