123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- Namespace.register("U.Control.login"); //登录页面的命名空间
- //登录页面
- U.Control.login.init = function () {
- //外框
- var U_L_warp = $$("div", { "className": "U_L_warp" });
- var U_L_w_logindiv = $$("div", { "className": "U_L_w_logindiv" }, U_L_warp);
- //登录云端
- var U_L_w_l_titlediv = $$("div", { "className": "U_L_w_l_titlediv" }, U_L_w_logindiv);
- $$("div", { "className": "U_L_w_l_title", "innerHTML": "登录云端" }, U_L_w_l_titlediv);
- //注册账号
- var U_L_w_l_register = $$("div", { "className": "U_L_w_l_register", "innerHTML": "注册账号>" }, U_L_w_l_titlediv);
-
- //账号
- var U_L_w_l_np = $$("div", { "className": "U_L_w_l_np" }, U_L_w_logindiv);
- var U_L_w_l_name = $$("div", { "className": "U_L_w_l_name" }, U_L_w_l_np);
- $$("div", { "className": "U_L_w_l_n_img" }, U_L_w_l_name);
- $$("input", { "className": "U_L_w_l_n_input", "type": "text", "placeholder": "账号/手机号" }, U_L_w_l_name);
- //密码
- var U_L_w_l_password = $$("div", { "className": "U_L_w_l_password" }, U_L_w_l_np);
- $$("div", { "className": "U_L_w_l_p_img" }, U_L_w_l_password);
- $$("input", { "className": "U_L_w_l_n_input", "type": "password", "placeholder": "输入您的密码" }, U_L_w_l_password);
- //记住密码
- var U_L_w_l_mima = $$("div", { "className": "U_L_w_l_mima" }, U_L_w_logindiv);
- var U_L_w_l_m_left = $$("div", { "className": "U_L_w_l_m_left" }, U_L_w_l_mima);
- $$("input", { "className": "U_L_w_l_m_l_input", "type": "checkbox" }, U_L_w_l_m_left);
- $$("span", { "innerHTML": "记住密码" }, U_L_w_l_m_left);
- $$("div", { "className": "U_L_w_l_m_right", "innerHTML": "忘记密码?" }, U_L_w_l_mima);
- //登录按钮
- var U_L_w_l_loginbtn = $$("div", { "className": "U_L_w_l_loginbtn", "innerHTML": "立即登录" }, U_L_w_logindiv);
- U_L_w_l_loginbtn.onclick = function () { aa(this); }
- //其他方式登陆
- var U_L_w_l_other = $$("div", { "className": "U_L_w_l_other" }, U_L_w_logindiv);
- $$("div", { "className": "U_L_w_l_o_text", "innerHTML": "使用合作平台登录" }, U_L_w_l_other);
- //QQ或微博登录
- var U_L_w_l_o_img = $$("div", { "className": "U_L_w_l_o_img" }, U_L_w_l_other);
- $$("div", { "className": "U_L_w_l_o_i_weibo" }, U_L_w_l_o_img);
- $$("div", { "className": "U_L_w_l_o_i_qq" }, U_L_w_l_o_img);
- /*------------注册--------*/
- //外框
- var U_L_w_registerdiv = $$("div", { "className": "U_L_w_registerdiv"}, U_L_warp);
- //标题框
- var U_L_w_l_box = $$("div", { "className": "U_L_w_l_box" }, U_L_w_registerdiv);
- var U_L_w_l_title = $$("div", { "className": "U_L_w_l_title_A", "innerHTML": "注册云端" }, U_L_w_l_box);
- var U_L_w_l_login = $$("div", { "className": "U_L_w_l_login", "innerHTML": "返回登录" }, U_L_w_l_box);
- U_L_w_l_register.onclick = function () {
- U.Control.login.reg(this, U_L_w_registerdiv);
- }
- U_L_w_l_login.onclick = function () {
- U.Control.login.log(this, U_L_w_logindiv);
- }
- //注册框
- var U_L_w_l_np = $$("div", { "className": "U_L_w_l_np" }, U_L_w_registerdiv);
- var U_L_w_l_name = $$("div", { "className": "U_L_w_l_name" }, U_L_w_l_np);
- var U_L_w_l_n_img = $$("div", { "className": "U_L_w_l_n_img" }, U_L_w_l_name);
- var U_L_w_l_n_input = $$("input", { "className": "U_L_w_l_n_input", "placeholder": "账号/手机号" }, U_L_w_l_name);
- //密码框
- var U_L_w_l_password = $$("div", { "className": "U_L_w_l_password U_L_w_l_name" }, U_L_w_l_np);
- var U_L_w_l_n_imgs = $$("div", { "className": "U_L_w_l_p_img U_L_w_l_n_img" }, U_L_w_l_password);
- var U_L_w_l_n_inputs = $$("input", { "className": "U_L_w_l_n_input", "placeholder": "请输入您的密码", "type": "password" }, U_L_w_l_password);
- //确认密码
- var U_L_w_l_Confirm_password = $$("div", { "className": "U_L_w_l_password U_L_w_l_name" }, U_L_w_l_np);
- var U_L_w_l_Confirm_n_imgs = $$("div", { "className": "U_L_w_l_p_img U_L_w_l_n_img" }, U_L_w_l_Confirm_password);
- var U_L_w_l_Confirm_n_inputs = $$("input", { "className": "U_L_w_l_n_input", "placeholder": "请确认您的密码", "type": "password" }, U_L_w_l_Confirm_password);
- //验证码框
- var code = $$("div", { "className": "code" }, U_L_w_registerdiv);
- var Verification = $$("input", { "className": "Verification", "placeholder": "输入验证码" }, code);
- var codepct = $$("div", { "className": "codepct" }, code);
- var Refresh = $$("div", { "className": "Refresh" }, codepct);
- //立即注册
- var U_L_w_l_registerbtn = $$("div", { "className": "U_L_w_l_registerbtn", "innerHTML": "立即注册" }, U_L_w_registerdiv);
- return U_L_warp;
- }
- function aa() {
- return false;
- }
- U.Control.login.reg = function (a,b) { //去注册
- if (document.defaultView.getComputedStyle(a, null).display=="block") {
- a.parentNode.parentNode.style.display = "none"
- b.style.display = "block";
- }
- }
- U.Control.login.log = function (a,b) { //去登录
- if (document.defaultView.getComputedStyle(a, null).display == "block") {
- a.parentNode.parentNode.style.display = "none"
- b.style.display = "block";
- }
- }
|