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

115 lines
5.0 KiB
PHTML
Executable File

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
{include file="include/head-product" /}
<script type="text/javascript">
var navID = "1";
</script>
</head>
<body>
<!--top-->
{include file="include/top-product" /}
<!--top End-->
<!-- 新闻详情页 s -->
<div class="zhuce1">
<div class="w1200">
<form action="<?php echo url('/index/customer/login'); ?>" method="post" id="login-form">
<div class="zctit">
<a href="<?php echo url('/login'); ?>" class="zca1">登录</a>
<a href="<?php echo url('/register'); ?>" class="zca2">没有账号/快速注册</a>
<div class="clear"></div>
</div>
<ul class="w1000 zclist">
<li>
<span class="zctext1 zctext1s">用户名:</span>
<input type="text" name="firstname" value="" id="firstname">
<a href="<?php echo url('/register'); ?>" class="shorzc">快速注册</a>
</li>
<li>
<span class="zctext1 zctext1s">密码:</span>
<input type="password" name="password" value="" id="password">
<a href="<?php echo url('/forgetpwd'); ?>" class="shorzc">找回密码</a>
</li>
<li>
<span class="zctext1 zctext1s">验证码:</span>
<input type="text" name="authcode" value="" class="yzm" id="authcode">
<span class="zctext2">输入下图中的字符</span>
<p class="yznum yznums">
<a href="javascript:void(0);" class="yanzhengma"><img id="yanzhengma" src="<?php echo url('index/authcode/verify', ['id' => 'yanzhengma'], 'png|jpg|gif'); ?>"></a>
<a href="javascript:void(0);" class="other yanzhengma">换一个</a>
</p>
</li>
</ul>
<div class="tjdl">
<input type="checkbox" name="autologin" value="0"><label>自动登录</label>
<a href="#" class="tjbtn" id="submit-btn">登录</a>
</div>
</form>
<div class="short">
<span>快捷登录:</span>
<span onclick='toQzoneLogin()'>QQ登录</span>
<script type="text/javascript">
var childWindow;
function toQzoneLogin()
{
childWindow = window.open("index/Qqlogin/index","TencentLogin","width=450,height=320,menubar=0,scrollbars=1, resizable=1,status=1,titlebar=0,toolbar=0,location=1");
}
function closeChildWindow()
{
childWindow.close();
}
</script>
</div>
</div>
</div>
<!-- 新闻详情页 e -->
<script type="text/javascript">
$(function() {
$("a.yanzhengma").click(function(event) {
event.preventDefault();
//$img = $("#authcode");
$("#yanzhengma").attr("src", "<?php echo url('index/authcode/verify', ['id' => 'yanzhengma'], 'png|jpg|gif'); ?>" + "?" + Math.random());
});
$('#login-form').bind('submit', function() {
var options = {
url: "<?php echo url('/index/customer/login'); ?>",
type: "post",
cache: false,
dataType: "json",
data: $(this).serialize(),
success: function(data) {
if (data.code) {
location.href = data.url;
} else {
alert(data.msg);
}
},
complete: function() {
//HideLoading();
$("a.yanzhengma").click();
}
};
$.ajax(options);
return false;
});
$("a#submit-btn").click(function(event) {
event.preventDefault();
$('#login-form').submit();
});
});
</script>
<!-- QQ快捷登录-->
<!-- bottom s -->
{include file="include/bottom" /}
<!-- bottom e -->
</body>
</html>