209 lines
10 KiB
PHP
209 lines
10 KiB
PHP
<!DOCTYPE html>
|
||
<html lang="zh-cn">
|
||
<head>
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
|
||
<meta charset="utf-8"/>
|
||
<title>注册商户</title>
|
||
<meta name="description" content="User login page"/>
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"/>
|
||
<link href="{{ url('style/assets')}}/ace.min.css" rel="stylesheet">
|
||
<link href="{{ url('style/assets')}}/a8a968ef/global/plugins/font-awesome/css/font-awesome.min.css"
|
||
rel="stylesheet">
|
||
<link href="{{ url('style/assets')}}/a8a968ef/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
||
<link href="{{ url('style/assets')}}/a8a968ef/other/css/style.css" rel="stylesheet">
|
||
|
||
</head>
|
||
<body class="login-layout" style="background-color: rgb(54,65,80)">
|
||
<style>
|
||
.main-container:before {
|
||
background-color: rgb(54, 65, 80)
|
||
}
|
||
</style>
|
||
<div class="main-container" style="background-color: rgb(54,65,80)">
|
||
<div class="main-content">
|
||
<div class="row">
|
||
<div class="col-sm-10 col-sm-offset-1">
|
||
<div class="login-container">
|
||
<div class="center">
|
||
<h1>
|
||
|
||
<img style="width: 157px;height: 42px;"
|
||
src="{{ config_cache('config.logo') }}"/>
|
||
<span class="red"></span>
|
||
<span class="white" id="id-text2" style="font-size: 22px;">注册商户</span>
|
||
</h1>
|
||
<h4 class="blue" id="id-company-text"></h4>
|
||
</div>
|
||
<div class="space-6"></div>
|
||
<div class="position-relative">
|
||
|
||
|
||
<div id="signup-box" class="signup-box widget-box no-border visible">
|
||
<div class="widget-body">
|
||
<div class="widget-main" id="reg">
|
||
<div class="space-6"></div>
|
||
|
||
<p> 请输入注册信息<span style="color: red;">(红色框为必填项): </span></p>
|
||
<form id="regiserform">
|
||
<fieldset>
|
||
<label class="block clearfix">
|
||
<span class="block input-icon input-icon-right">
|
||
<input type="text" class="form-control"
|
||
style="border: solid 1px red;" name="email" id="email"
|
||
placeholder="注册邮箱" autocomplete="off"/>
|
||
<i class="ace-icon fa fa-user" style="color: red;"></i>
|
||
</span>
|
||
</label>
|
||
|
||
<label class="block clearfix">
|
||
<span class="block input-icon input-icon-right">
|
||
<input type="password" class="form-control"
|
||
style="border: solid 1px red;" id="password" name="password"
|
||
placeholder="密码,不能小于6位数"/>
|
||
<i class="ace-icon fa fa-lock" style="color: red;"></i>
|
||
</span>
|
||
</label>
|
||
<label class="block clearfix">
|
||
<span class="block input-icon input-icon-right">
|
||
<input type="password" style="border: solid 1px red;"
|
||
class="form-control" id="repeatPassword" name="repeatPassword"
|
||
placeholder="确认密码"/>
|
||
<i class="ace-icon fa fa-retweet" style="color: red;"></i>
|
||
</span>
|
||
</label>
|
||
|
||
<label class="block clearfix">
|
||
<span class="block input-icon input-icon-right">
|
||
<input type="text" class="form-control" name="mobile" id="mobile"
|
||
placeholder="手机"/>
|
||
<i class="ace-icon fa fa-mobile"></i>
|
||
</span>
|
||
</label>
|
||
<label class="block clearfix">
|
||
<span class="block input-icon input-icon-right">
|
||
<input type="text" class="form-control" name="qq" id="qq"
|
||
placeholder="联系QQ"/>
|
||
<i class="ace-icon fa fa-qq"></i>
|
||
</span>
|
||
</label>
|
||
<label class="block clearfix">
|
||
<span class="block input-icon input-icon-right">
|
||
<input type="text" class="form-control" name="skype" id="skype"
|
||
placeholder="Skype"/>
|
||
<i class="ace-icon fa fa-skype"></i>
|
||
</span>
|
||
</label>
|
||
|
||
<div class="space-24"></div>
|
||
<div class="clearfix">
|
||
<div id="commit-register"
|
||
style="text-align: center;background-color: rgb(55,197,210);width: 80px;height:30px;line-height:30px;margin: auto;font-size: 18px;color: white;border-radius: 5px;">
|
||
注册
|
||
</div>
|
||
</div>
|
||
</fieldset>
|
||
</form>
|
||
|
||
</div>
|
||
<div class="widget-main" style="display: none" id="show">
|
||
<h5>商户登陆地址:<a href="" class="merchant_url" target="_blank">点击进入</a></h5>
|
||
<h5>链接地址: <span class="merchant_url2"></span></h5>
|
||
</div>
|
||
<div class="widget-main" style="display: none" id="pay-show">
|
||
<h5>注册后必须缴纳{{ $token_model->money }}元人民币,才能正式开通商户</h5>
|
||
<h4 class="pay-link"></h4>
|
||
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<script src="{{ url('style/assets')}}/a8a968ef/global/plugins/jquery.min.js"></script>
|
||
|
||
<script src="{{ url('style/assets')}}/a8a968ef/layer/layer.js"></script>
|
||
<script src="{{ url('style/assets')}}/a8a968ef/layer/common.js"></script>
|
||
@if($token_model->type==1)
|
||
<script>
|
||
xdialog("说明:", "注册后必须缴纳{{ $token_model->money }}元人民币,才能正式开通商户");
|
||
</script>
|
||
@endif
|
||
<script>
|
||
|
||
|
||
$('#commit-register').bind('click', function () {
|
||
var email = $("#email").val();
|
||
var password = $("#password").val();
|
||
var repeatPassword = $("#repeatPassword").val();
|
||
var mobile = $("#mobile").val();
|
||
var qq = $("#qq").val();
|
||
var skype = $("#skype").val();
|
||
|
||
if (email == '') {
|
||
xtips("请输入注册邮箱", "err");
|
||
return false;
|
||
} else {
|
||
var myreg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
|
||
if (!myreg.test(email)) {
|
||
xtips("请输入正确的邮箱地址", "err");
|
||
|
||
return false;
|
||
}
|
||
}
|
||
if (password == '' || password.length < 6) {
|
||
xtips("请输入正确的密码", "err");
|
||
return false;
|
||
}
|
||
if (password != repeatPassword) {
|
||
xtips("两次密码输入不一致", "err");
|
||
return false;
|
||
}
|
||
|
||
var prefix = "";
|
||
var wallet_type = $("input[name='wallet_type']:checked").val();
|
||
|
||
// xloading();
|
||
$.post("{{ route('web.merchant.regist.post') }}", {
|
||
email: email,
|
||
token: '{{$token}}',
|
||
password: password,
|
||
mobile: mobile,
|
||
qq: qq,
|
||
skype: skype,
|
||
_token: '{{ csrf_token() }}'
|
||
|
||
}, function (res) {
|
||
//removexloading();
|
||
console.log(res);
|
||
if (res.code == "0") {
|
||
if (res.data.is_pay) {
|
||
xtips('注册提交成功,支付后开通使用', 'succ');
|
||
// merchant/cgpay
|
||
$("#pay-show").show();
|
||
$("#reg").hide();
|
||
$(".pay-link").empty().append('<a href="'+res.data.pay_url+'">进入支付</a>');
|
||
} else {
|
||
|
||
$(".merchant_url").attr('href', res.data.admin_url);
|
||
$(".merchant_url2").text( res.data.admin_url);
|
||
xtips('注册成功,请保留商户后台地址', 'succ');
|
||
$("#reg").hide();
|
||
$("#show").show();
|
||
}
|
||
|
||
|
||
} else {
|
||
xtips(res.msg, 'error');
|
||
return false;
|
||
}
|
||
}, 'json');
|
||
});
|
||
</script>
|
||
</body>
|
||
</html>
|