108 lines
4.8 KiB
PHTML
Executable File
108 lines
4.8 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-->
|
||
<header class="header-PC header-Product">
|
||
<div id="header" class="theme-black">
|
||
{include file="include/top" /}
|
||
{include file="include/top-header" /}
|
||
</div>
|
||
</header>
|
||
{include file="include/top-header-mobile" /}
|
||
|
||
<!--top End-->
|
||
|
||
<!-- 新闻详情页 s -->
|
||
<div class="zhuce1">
|
||
<div class="w1200">
|
||
<form action="<?php echo url('/us/customer/login'); ?>" method="post" id="login-form">
|
||
<div class="zctit">
|
||
<a href="<?php echo url('/us/login'); ?>" class="zca1">Login</a>
|
||
<a href="<?php echo url('/us/register'); ?>" class="zca2">No Account/Quick Register</a>
|
||
<div class="clear"></div>
|
||
</div>
|
||
<ul class="w1000 zclist">
|
||
<li>
|
||
<span class="zctext1 zctext1s">Username:</span>
|
||
<input type="text" name="firstname" value="" id="firstname">
|
||
<a href="<?php echo url('/us/register'); ?>" class="shorzc">Quick Register</a>
|
||
</li>
|
||
<li>
|
||
<span class="zctext1 zctext1s">Password :</span>
|
||
<input type="password" name="password" value="" id="password">
|
||
<a href="<?php echo url('/us/forgetpwd'); ?>" class="shorzc">Retrieve Password</a>
|
||
</li>
|
||
<li>
|
||
<span class="zctext1 zctext1s">Verification Code:</span>
|
||
<input type="text" name="authcode" value="" class="yzm" id="authcode">
|
||
<span class="zctext2">Enter the characters in the image below</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">Change</a>
|
||
</p>
|
||
</li>
|
||
</ul>
|
||
|
||
<div class="tjdl">
|
||
<input type="checkbox" name="autologin" value="0"><label>Auto Login</label>
|
||
<a href="#" class="tjbtn" id="submit-btn">Login</a>
|
||
</div>
|
||
</form>
|
||
<!--
|
||
<div class="short">
|
||
<span>快捷登录:</span>
|
||
<a href="#"><img src="__PUBLIC__/web/images/wx1.png"></a>
|
||
<a href="#"><img src="__PUBLIC__/web/images/QQ.png"></a>
|
||
</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('/us/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>
|
||
<!-- bottom s -->
|
||
{include file="include/bottom" /}
|
||
<!-- bottom e -->
|
||
</body>
|
||
</html>
|