Files
orico-official-website-old/app/mobile/view/customer/login.phtml
2024-10-29 14:04:59 +08:00

79 lines
2.6 KiB
PHTML
Executable File

<!doctype html>
<html>
<head>
<meta charset="utf-8">
{include file="include/head" /}
<title>登录</title>
<link href="__PUBLIC__/m_web/css/login.css" rel="stylesheet" type="text/css">
</head>
<body style="background: #fff;" class="f_weight_100">
<div id="content">
{include file="include/top" /}
<div class="img-responsive margin-top-90"><img src="__PUBLIC__/m_web/images/user/login_banner.jpg" alt=""/></div>
<div class="margin-top-30">
<div class="login-m-a">
<div class="login-m-user">
<div class="login-m-img"><img src="__PUBLIC__/m_web/images/user/login-use.png" alt=""/></div>
<div class="input-a">
<input name="telephone" type="text" placeholder="用户名/账号/手机号" onfocus="this.placeholder=''" onblur="this.placeholder='用户名/账号/手机号'">
</div>
</div>
</div>
<div class="login-m-a ">
<div class="login-m-password">
<div class="login-m-img"><img src="__PUBLIC__/m_web/images/user/password.png" alt=""/></div>
<div class="input-a">
<input name="password" type="password" placeholder="请输入您的密码" onfocus="this.placeholder=''" onblur="this.placeholder='请输入您的密码'">
</div>
</div>
</div>
</div>
<div class="login-btn margin-top-70">
<button class="login">登录</button>
</div>
<div class="login-text"><a href="__ORICOROOT__/customer/register.html">快速注册</a> <span class="floa_r"><a href="__ORICOROOT__/customer/forgetpwd.html">忘记密码?</a></span></div>
<!--其他登录方式-->
<div class="m_Container other_login margin-top-90">
<div class="title img-responsive"><img src="__PUBLIC__/m_web/images/user/other_login.png"></div>
<div class="text_center margin-top-30 margin-bottom-60">
<a href="__ORICOROOT__/customer/quick_login.html" class="img-responsive"><img src="__PUBLIC__/m_web/images/user/quick-phone.png"></a>
</div>
</div>
<!--底部-->
{include file="include/bottom" /}
</div>
</body>
</html>
<script type="text/javascript">
$(function() {
$(".login").click(function() {
var telephone = $("input[name = 'telephone']").val();
var password = $("input[name = 'password']").val();
$.ajax({
url: '/mobile/customer/new_login.html',
type: 'post',
data: {
username: telephone,
password: password
},
dataType: 'json',
success: function(res) {
if (res.code == 200)
window.location.href = "/mobile/customer/personal.html";
else
alert(res.msg);
}
});
});
});
</script>