This commit is contained in:
2024-10-29 14:04:59 +08:00
commit 48bf3e6f33
2839 changed files with 762707 additions and 0 deletions

108
app/th/view/customer/index.phtml Executable file
View File

@@ -0,0 +1,108 @@
<!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="__ORICOROOT__<?php echo url('/customer/login'); ?>" method="post" id="login-form">
<div class="zctit">
<a href="__ORICOROOT__<?php echo url('/login'); ?>" class="zca1">Login</a>
<a href="__ORICOROOT__<?php echo url('/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="__ORICOROOT__<?php echo url('/register'); ?>" class="shorzc">Quick Register</a>
</li>
<li>
<span class="zctext1 zctext1s">Password :</span>
<input type="password" name="password" value="" id="password">
<a href="__ORICOROOT__<?php echo url('/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('__ORICOROOT__/authcode/verify', ['id' => 'yanzhengma'], 'png|jpg|gif'); ?>" + "?" + Math.random());
});
$('#login-form').bind('submit', function() {
var options = {
url: "__ORICOROOT__<?php echo url('/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>