代码/protected/view/mobile/default/login.html

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<!DOCTYPE HTML>
<html>
<head>
<{include file='mobile/default/lib/meta.html'}>
<meta name="keywords" content="用户登录" />
<meta name="description" content="用户登录" />
<title>用户登陆 - <{$GLOBALS.cfg.site_name}></title>
<link rel="stylesheet" type="text/css" href="<{$common.theme}>/css/general.css" />
<link rel="stylesheet" type="text/css" href="<{$common.theme}>/iconfont/iconfont.css">
<link rel="stylesheet" type="text/css" href="<{$common.theme}>/css/login.css" />
<script type="text/javascript" src="<{$common.theme}>/js/zepto.min.js"></script>
<script type="text/javascript" src="<{$common.theme}>/js/verydows.mobile.js"></script>
<script type="text/javascript">
function login(){
  $('#username').vdsFieldChecker({rules: {required:[true, '请输入用户名']}});
  $('#password').vdsFieldChecker({rules: {required:[true, '请输入密码']}});
  if($('#arise-captcha')){
    $('#captcha input.field').vdsFieldChecker({rules: {required:[true, '请输入验证码']}});
  }
  if($('#login-form').vdsFormChecker({isSubmit:false}) == true){
    $.asynInter("<{url c='api/user' a='login'}>", {username: $('#username').val(), password:hex_md5($('#password').val()+'Verydows'), captcha:$('#captcha input.field').val(), stay:$(stay).val()}, function(res){
      if(res.status == 'success'){
        window.location.href = "<{url c='mobile/user' a='index'}>";
      }else{
        if(res.captcha){
          $.vdsPrompt({content:res.msg, clicked:function(){window.location.reload()}});
        }else{
          $.vdsPrompt({content:res.msg});
        }
      }
    });
  }
}
</script>
</head>
<body>
<div class="wrapper">
  <!-- header start -->
  <div class="header">
    <div class="op lt"><a href="<{url c='mobile/main' a='index'}>"><i class="f20 iconfont">&#xe602;</i></a></div>
    <h2>用户登录</h2>
  </div>
  <!-- header end -->
  <form id="login-form">
  <input type="password" value="" class="hide" />
  <div class="login eform">
    <div class="user tr"><span class="icopos"><i class="iconfont">&#xe60c;</i></span><input class="field variseclear" type="text" name="username" id="username" placeholder="请输入用户名" required /><i class="vinclrbtn iconfont">&#xe62d;</i></div>
    <div class="pwd tr"><span class="icopos"><i class="iconfont">&#xe607;</i></span><input class="field variseclear" type="password" name="password" id="password" placeholder="请输入密码" required /><i class="vinclrbtn iconfont">&#xe62d;</i><i class="vineyebtn iconfont">&#xe66e;</i></div>
    <{if !empty($captcha)}>
    <div class="captcha tr puff mt8" id="captcha">
      <a class="fr"><img onclick="resetCaptcha(this)" src="<{url c='api/captcha' a='image'}>" /></a>
      <span class="icopos"><i class="iconfont">&#xe601;</i></span><input class="field" type="text" placeholder="请输入图形验证码" />
    </div>
    <{/if}>
    <div class="slck mt8 cut">
      <div class="fl c888 f14">一月内保持登录</div>
      <div class="fr"><input class="vswitch-1" name="stay" id="stay" type="checkbox" checked="checked" value="1" /><label for="stay"></label></div>
    </div>
    <div class="submit mt20"><a href="javascript:void(0)" onClick="login()">登 录</a></div>
    <div class="bypass mt15 c999 cut">
后面还有 11 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。