You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
59
hyhproject/home2/view/default/users/security/index.html
Executable file
59
hyhproject/home2/view/default/users/security/index.html
Executable file
@ -0,0 +1,59 @@
|
||||
{extend name="default/users/base" /}
|
||||
{block name="title"}安全设置 - 买家中心{__block__}{/block}
|
||||
{block name="css"}
|
||||
<link href="__STYLE__/css/security.css?v={$v}" rel="stylesheet">
|
||||
{/block}
|
||||
{block name="content"}
|
||||
<div class="wst-sec-info">
|
||||
<img class="wst-lfloat usersImg" data-original='__IMGURL__{:WSTUserPhoto($data['userPhoto'])}' width='100' height='100' title="{$data['loginName']}"/>
|
||||
<div class="wst-sec-infor">
|
||||
<span class="wst-sec-na wst-lfloat">{$data['loginName']}</span>
|
||||
{if($data['ranks']['rankId'])}
|
||||
<span class="wst-sec-grade"><img class="wst-lfloat" src="__IMGURL__/{$data['ranks']['userrankImg']}"/><span class="wst-lfloat">{$data['ranks']['rankName']}</span></span>
|
||||
{/if}
|
||||
<div style='clear:both;'></div>
|
||||
<div style="margin-top:6px;">
|
||||
<span class="wst-sec-infoi" id="level"></span>
|
||||
<div class="wst-sec-infoi" style="margin-top:5px;">
|
||||
<span class="wst-sec-strip wst-lfloat">{if ($data['loginPwd'])}<span class="wst-sec-strip2 wst-lfloat"></span>{/if}{if ($data['userEmail'])}<span class="wst-sec-strip2 wst-lfloat"></span>{/if}{if ($data['userPhone'])}<span class="wst-sec-strip2 wst-lfloat"></span>{/if}</span>
|
||||
</div>
|
||||
<div class="wst-sec-infoi" style="margin-top:5px;">
|
||||
<span>上次登录时间:{php}echo date("Y年m月d日 H:i:s",strtotime($data['lastTime']));{/php}</span><br/>
|
||||
<span>上次登录IP:{$data['lastIP']}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style='clear:both;'></div>
|
||||
</div>
|
||||
<div class="wst-sec-s">
|
||||
<div class="wst-sec-lists">{if ($data['loginPwd'])}<span class="wst-sec-green"><img src="__STYLE__/img/user_icon_yyz.png"/>已设置</span>{else}<span class="wst-sec-ash"><img src="__STYLE__/img/icon_wyz.png"/>未设置</span>{/if}
|
||||
<span class="wst-sec-w"> 登录密码</span> 登录密码用于会员的登录以及进行登录的一系列操作,{if ($data['loginPwd'])}建议您定期更改密码{else}您还没有设置密码{/if}
|
||||
<a class="wst-user-buta wst-rfloat" onclick="location.href=WST.U('home/users/editPass')">{if ($data['loginPwd'])}修改密码{else}立即设置{/if}</a></div>
|
||||
<div class="wst-sec-lists">{if ($data['payPwd'])}<span class="wst-sec-green"><img src="__STYLE__/img/user_icon_yyz.png"/>已设置</span>{else}<span class="wst-sec-ash"><img src="__STYLE__/img/icon_wyz.png"/>未设置</span>{/if}
|
||||
<span class="wst-sec-w"> 支付密码</span> 支付密码用于会员的提现账号设置及提现申请操作,{if ($data['payPwd'])}建议您定期更改支付密码{else}您还没有设置支付密码{/if}
|
||||
<a class="wst-user-buta wst-rfloat" onclick="location.href=WST.U('home/users/editPayPass')">{if ($data['payPwd'])}修改密码{else}立即设置{/if}</a></div>
|
||||
<div class="wst-sec-lists">{if ($data['userEmail'])}<span class="wst-sec-green"><img src="__STYLE__/img/user_icon_yyz.png"/>已验证</span>{else}<span class="wst-sec-ash"><img src="__STYLE__/img/icon_wyz.png"/>未验证</span>{/if}
|
||||
<span class="wst-sec-w"> 邮箱验证</span> 邮箱验证方便您及时接收优惠促销信息,以及积分、优惠卷和账户余额变动的提醒。{if ($data['userEmail'])}您的绑定邮箱:{$data['userEmail']}{else}您还没有验证邮箱{/if}
|
||||
<a class="wst-user-buta wst-rfloat" onclick="location.href=WST.U('home/users/editEmail')">{if ($data['userEmail'])}修改邮箱{else}立即验证{/if}</a></div>
|
||||
<div class="wst-sec-lists">{if ($data['userPhone'])}<span class="wst-sec-green"><img src="__STYLE__/img/user_icon_yyz.png"/>已验证</span>{else}<span class="wst-sec-ash"><img src="__STYLE__/img/icon_wyz.png"/>未验证</span>{/if}
|
||||
<span class="wst-sec-w"> 手机验证</span> 手机验证方便您及时接收优惠促销信息,以及积分、优惠卷和账户余额变动的提醒。{if ($data['userPhone'])}您的绑定手机:{$data['userPhone']}{else}您还没有验证手机{/if}
|
||||
<a class="wst-user-buta wst-rfloat" onclick="location.href=WST.U('home/users/editPhone')">{if ($data['userPhone'])}修改手机{else}立即验证{/if}</a></div>
|
||||
<div style='clear:both;'></div>
|
||||
</div>
|
||||
{/block}
|
||||
{block name="js"}
|
||||
<script>
|
||||
$(function(){
|
||||
var securityCount = $('.wst-sec-strip2').length;
|
||||
if(securityCount==1){
|
||||
$('#level').html('安全级别(较低级) <span class="wst-sec-infoin">建议提升安全</span>');
|
||||
}else if(securityCount==2){
|
||||
$('#level').html('安全级别(中级) <span class="wst-sec-infoin">建议提升安全</span>');
|
||||
}else if(securityCount==3){
|
||||
$('#level').html('安全级别(高级) <span class="wst-sec-infoin">建议定期更改密码</span>');
|
||||
}else{
|
||||
$('#level').html('安全级别(低级) <span class="wst-sec-infoin">账号有风险</span>');
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{/block}
|
320
hyhproject/home2/view/default/users/security/security.js
Executable file
320
hyhproject/home2/view/default/users/security/security.js
Executable file
@ -0,0 +1,320 @@
|
||||
var time = 0;
|
||||
var isSend = false;
|
||||
var myorm;
|
||||
var emailForm;
|
||||
var phoneForm;
|
||||
var getemailForm;
|
||||
var getphoneForm;
|
||||
var getpayForm;
|
||||
var payForm;
|
||||
$(function(){
|
||||
$('#phoneVerify').validator({
|
||||
valid: function(form){
|
||||
var n=$('#VerifyId').val();
|
||||
getPhoneVerifys(n);
|
||||
}
|
||||
});
|
||||
})
|
||||
function vePayForm(){
|
||||
//修改支付密码
|
||||
myorm = $('#payform').validator({
|
||||
valid: function(form){
|
||||
var params = WST.getParams('.ipt');
|
||||
if(window.conf.IS_CRYPT=='1'){
|
||||
var public_key=$('#token').val();
|
||||
var exponent="10001";
|
||||
var rsa = new RSAKey();
|
||||
rsa.setPublic(public_key, exponent);
|
||||
if(params.oldPass)params.oldPass = rsa.encrypt(params.oldPass);
|
||||
params.newPass = rsa.encrypt(params.newPass);
|
||||
params.reNewPass = rsa.encrypt(params.reNewPass);
|
||||
}
|
||||
var loading = WST.msg('正在提交数据,请稍后...', {icon: 16,time:60000});
|
||||
$.post(WST.U('home/users/payPassEdit'),params,function(data,textStatus){
|
||||
layer.close(loading);
|
||||
var json = WST.toJson(data);
|
||||
if(json.status=='1'){
|
||||
WST.msg(json.msg,{icon:1,time:2000},function(){
|
||||
location.href=WST.U('home/users/security');
|
||||
});
|
||||
}else{
|
||||
WST.msg(json.msg,{icon:2});
|
||||
}
|
||||
});
|
||||
}
|
||||
})
|
||||
}
|
||||
function veMyorm(){
|
||||
//修改密码
|
||||
myorm = $('#myorm').validator({
|
||||
fields: {
|
||||
newPass: {
|
||||
rule:"required;length[6~20]",
|
||||
msg:{required:"请输入新密码"},
|
||||
tip:"请输入新密码"
|
||||
},
|
||||
reNewPass: {
|
||||
rule:"required;length[6~20];match[newPass]",
|
||||
msg:{required:"请再次输入新密码",match:"两次输入密码不匹配"},
|
||||
tip:"请再次输入新密码"
|
||||
},
|
||||
},
|
||||
valid: function(form){
|
||||
var params = WST.getParams('.ipt');
|
||||
if(window.conf.IS_CRYPT=='1'){
|
||||
var public_key=$('#token').val();
|
||||
var exponent="10001";
|
||||
var rsa = new RSAKey();
|
||||
rsa.setPublic(public_key, exponent);
|
||||
if(params.oldPass)params.oldPass = rsa.encrypt(params.oldPass);
|
||||
params.newPass = rsa.encrypt(params.newPass);
|
||||
params.reNewPass = rsa.encrypt(params.reNewPass);
|
||||
}
|
||||
var loading = WST.msg('正在提交数据,请稍后...', {icon: 16,time:60000});
|
||||
$.post(WST.U('home/users/passEdit'),params,function(data,textStatus){
|
||||
layer.close(loading);
|
||||
var json = WST.toJson(data);
|
||||
if(json.status=='1'){
|
||||
WST.msg("操作成功",{icon:1,time:2000},function(){
|
||||
location.href=WST.U('home/users/security');
|
||||
});
|
||||
}else{
|
||||
WST.msg(json.msg,{icon:2});
|
||||
}
|
||||
});
|
||||
}
|
||||
})
|
||||
}
|
||||
function veemailForm(){
|
||||
//绑定邮箱
|
||||
emailForm = $('#emailForm').validator({
|
||||
rules: {
|
||||
remote: function(element){
|
||||
return $.post(WST.U('home/users/checkEmail'),{"loginName":element.value},function(data,textStatus){
|
||||
});
|
||||
}
|
||||
},
|
||||
fields: {
|
||||
userEmail: {
|
||||
rule:"required;email;remote;",
|
||||
msg:{required:"请输入邮箱",email:"请输入有效的邮箱"},
|
||||
tip:"请输入邮箱",
|
||||
},
|
||||
secretCode: {
|
||||
rule:"required",
|
||||
msg:{required:"请输入校验码"},
|
||||
tip:"请输入校验码",
|
||||
target:"#secretErr"
|
||||
}
|
||||
},
|
||||
|
||||
valid: function(form){
|
||||
var params = WST.getParams('.ipt');
|
||||
var loading = WST.msg('正在提交数据,请稍后...', {icon: 16,time:60000});
|
||||
$.post(WST.U('home/users/emailEdit'),params,function(data,textStatus){
|
||||
layer.close(loading);
|
||||
var json = WST.toJson(data);
|
||||
if(json.status=='1'){
|
||||
var redirect = WST.U('home/users/doneEmailBind');
|
||||
var edit = $('#editEmail').val();
|
||||
if(edit)redirect=WST.U('home/users/editEmail3');
|
||||
WST.msg('验证通过',{icon:1},function(){location.href=redirect});
|
||||
}else{
|
||||
WST.msg(json.msg,{icon:2});
|
||||
WST.getVerify('#verifyImg');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
function sendEmail(edit){
|
||||
var url = 'home/users/getEmailVerify';
|
||||
if(isSend )return;
|
||||
if(!$('#verifyCode').isValid())return;
|
||||
if(!edit){
|
||||
if(!$('#userEmail').isValid())return;
|
||||
}else{
|
||||
url = 'home/users/getEmailVerifyt';
|
||||
}
|
||||
var loading = WST.msg('正在发送邮件,请稍后...', {icon: 16,time:60000});
|
||||
var params = WST.getParams('.ipt');
|
||||
$.post(WST.U(url),params,function(data,textStatus){
|
||||
layer.close(loading);
|
||||
var json = WST.toJson(data);
|
||||
if(json.status=='1'){
|
||||
WST.msg('邮箱已发送,请注册查收');
|
||||
isSend = true;
|
||||
time = 120;
|
||||
$('#timeSend').attr('disabled', 'disabled').css('background','#e8e6e6');
|
||||
$('#timeSend').html('发送验证邮件(120)');
|
||||
var task = setInterval(function(){
|
||||
time--;
|
||||
$('#timeSend').html('发送验证邮件('+time+")");
|
||||
if(time==0){
|
||||
isSend = false;
|
||||
clearInterval(task);
|
||||
$('#timeSend').html("重新发送验证邮件");
|
||||
$('#timeSend').removeAttr('disabled').css('background','#e23e3d');
|
||||
}
|
||||
},1000);
|
||||
}else{
|
||||
WST.msg(json.msg,{icon:2});
|
||||
WST.getVerify('#verifyImg');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function vephoneForm(){
|
||||
//绑定手机号
|
||||
phoneForm = $('#phoneForm').validator({
|
||||
valid: function(form){
|
||||
var me = this;
|
||||
// ajax提交表单之前,先禁用submit
|
||||
me.holdSubmit();
|
||||
var params = WST.getParams('.ipt');
|
||||
var loading = WST.msg('正在提交数据,请稍后...', {icon: 16,time:60000});
|
||||
$.post(WST.U('home/users/phoneEdito'),params,function(data,textStatus){
|
||||
layer.close(loading);
|
||||
var json = WST.toJson(data);
|
||||
if(json.status=='1'){
|
||||
location.href=WST.U('home/users/editPhoneSu','pr='+json.process);
|
||||
}else{
|
||||
WST.msg(json.msg,{icon:2});
|
||||
WST.getVerify('#verifyImg');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
function vegetemailForm(){
|
||||
//修改邮箱
|
||||
getemailForm = $('#getemailForm').validator({
|
||||
valid: function(form){
|
||||
var params = WST.getParams('.ipt');
|
||||
var loading = WST.msg('正在提交数据,请稍后...', {icon: 16,time:60000});
|
||||
$.post(WST.U('home/users/emailEditt'),params,function(data,textStatus){
|
||||
layer.close(loading);
|
||||
var json = WST.toJson(data);
|
||||
if(json.status=='1'){
|
||||
WST.msg('验证通过',{icon:1},function(){location.href=WST.U('home/users/editEmail2')})
|
||||
}else{
|
||||
WST.msg(json.msg,{icon:2});
|
||||
WST.getVerify('#verifyImg');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
function vegetphoneForm(){
|
||||
//修改手机号
|
||||
getphoneForm = $('#getphoneForm').validator({
|
||||
valid: function(form){
|
||||
var params = WST.getParams('.ipt');
|
||||
var loading = WST.msg('正在提交数据,请稍后...', {icon: 16,time:60000});
|
||||
$.post(WST.U('home/users/phoneEditt'),params,function(data,textStatus){
|
||||
layer.close(loading);
|
||||
var json = WST.toJson(data);
|
||||
if(json.status=='1'){
|
||||
location.href=WST.U('home/users/editPhoneSut');
|
||||
}else{
|
||||
WST.msg(json.msg,{icon:2});
|
||||
WST.getVerify('#verifyImg');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
function vegetpayForm(){
|
||||
//重置支付密码
|
||||
getpayForm = $('#getpayForm').validator({
|
||||
valid: function(form){
|
||||
var params = WST.getParams('.ipt');
|
||||
var loading = WST.msg('正在提交数据,请稍后...', {icon: 16,time:60000});
|
||||
$.post(WST.U('home/users/payEditt'),params,function(data,textStatus){
|
||||
layer.close(loading);
|
||||
var json = WST.toJson(data);
|
||||
if(json.status=='1'){
|
||||
location.href=WST.U('home/users/editPaySut');
|
||||
}else{
|
||||
WST.msg(json.msg,{icon:2});
|
||||
WST.getVerify('#verifyImg');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
function vepayForm(){
|
||||
//设置支付密码
|
||||
payForm = $('#payForm').validator({
|
||||
valid: function(form){
|
||||
var me = this;
|
||||
me.holdSubmit();
|
||||
var params = WST.getParams('.ipt');
|
||||
if(window.conf.IS_CRYPT=='1'){
|
||||
var public_key=$('#token').val();
|
||||
var exponent="10001";
|
||||
var rsa = new RSAKey();
|
||||
rsa.setPublic(public_key, exponent);
|
||||
params.newPass = rsa.encrypt(params.newPass);
|
||||
params.reNewPass = rsa.encrypt(params.reNewPass);
|
||||
}
|
||||
var loading = WST.msg('正在提交数据,请稍后...', {icon: 16,time:60000});
|
||||
$.post(WST.U('home/users/payEdito'),params,function(data,textStatus){
|
||||
layer.close(loading);
|
||||
var json = WST.toJson(data);
|
||||
if(json.status=='1'){
|
||||
location.href=WST.U('home/users/editPaySu','pr='+json.process);
|
||||
}else{
|
||||
WST.msg(json.msg,{icon:2});
|
||||
WST.getVerify('#verifyImg');
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
//发送手机验证码
|
||||
function getPhoneVerify(n){
|
||||
if(!$('#userPhone').isValid())return;
|
||||
$('#VerifyId').val(n);
|
||||
if(window.conf.SMS_VERFY==1){
|
||||
WST.open({type: 1,title:"请输入验证码",shade: [0.6, '#000'],border: [0],content: $('#phoneVerify'),area: ['600px', '180px']});
|
||||
}else{
|
||||
getPhoneVerifys(n);
|
||||
}
|
||||
}
|
||||
function getPhoneVerifys(n){
|
||||
WST.msg('正在发送短信,请稍后...',{time:600000});
|
||||
var time = 0;
|
||||
var isSend = false;
|
||||
var params = WST.getParams('.ipt');
|
||||
$.post(WST.U('home/users/getPhoneVerify'+n),params,function(data,textStatus){
|
||||
var json = WST.toJson(data);
|
||||
if(isSend )return;
|
||||
isSend = true;
|
||||
if(json.status!=1){
|
||||
WST.msg(json.msg, {icon: 5});
|
||||
WST.getVerify('#verifyImg');
|
||||
time = 0;
|
||||
isSend = false;
|
||||
}if(json.status==1){
|
||||
WST.msg('短信已发送,请注册查收');
|
||||
layer.closeAll('page');
|
||||
time = 120;
|
||||
$('#timeObtain').attr('disabled', 'disabled').css('background','#e8e6e6');
|
||||
$('#timeObtain').html('获取手机验证码(120)').css('width','130px');
|
||||
var task = setInterval(function(){
|
||||
time--;
|
||||
$('#timeObtain').html('获取手机验证码('+time+")");
|
||||
if(time==0){
|
||||
isSend = false;
|
||||
clearInterval(task);
|
||||
$('#timeObtain').html("重新获取验证码").css('width','100px');
|
||||
$('#timeObtain').removeAttr('disabled').css('background','#e23e3d');
|
||||
}
|
||||
},1000);
|
||||
}
|
||||
});
|
||||
}
|
108
hyhproject/home2/view/default/users/security/user_edit_email.html
Executable file
108
hyhproject/home2/view/default/users/security/user_edit_email.html
Executable file
@ -0,0 +1,108 @@
|
||||
{extend name="default/users/base" /}
|
||||
{block name="title"}安全设置 - 买家中心{__block__}{/block}
|
||||
{block name="css"}
|
||||
<link href="__STATIC__/plugins/validator/jquery.validator.css?v={$v}" rel="stylesheet">
|
||||
<link href="__STYLE__/css/security.css?v={$v}" rel="stylesheet">
|
||||
{/block}
|
||||
{block name="content"}
|
||||
<div class="wst-user-head"><span>绑定邮箱</span><a href="{:url('home/users/security')}">返回</a></div>
|
||||
<div class="wst-clear"></div>
|
||||
<div class="wst-sec-head2">
|
||||
<div class="wst-lfloat wst-sec-min {if ($process=='One')}wst-sec-gr{/if}">1、验证身份</div>
|
||||
<div class="wst-lfloat wst-sec-min1 {if ($process=='One')}wst-sec-gr1{/if}"></div>
|
||||
<div class="wst-lfloat wst-sec-mi">
|
||||
<div class="wst-lfloat wst-sec-min2 {if ($process=='Two')}wst-sec-gr2{/if}"></div>
|
||||
<div class="wst-lfloat wst-sec-min3 {if ($process=='Two')}wst-sec-gr3{/if}"></div>
|
||||
</div>
|
||||
<div class="wst-lfloat wst-sec-min {if ($process=='Two')}wst-sec-gr{/if}">2、修改邮箱</div>
|
||||
<div class="wst-lfloat wst-sec-min1 {if ($process=='Two')}wst-sec-gr1{/if}"></div>
|
||||
<div class="wst-lfloat wst-sec-mi">
|
||||
<div class="wst-lfloat wst-sec-min2 {if ($process=='Three')}wst-sec-gr2{/if}"></div>
|
||||
<div class="wst-lfloat wst-sec-min3 {if ($process=='Three')}wst-sec-gr3{/if}"></div>
|
||||
</div>
|
||||
<div class="wst-lfloat wst-sec-min {if ($process=='Three')}wst-sec-gr{/if}">3、完成</div>
|
||||
</div>
|
||||
{if ($process=='One')}
|
||||
<form method="post" id="getemailForm" autocomplete="off">
|
||||
<table class='wst-form'>
|
||||
<tr>
|
||||
<th align='right'><font color='red'>*</font>已验证的邮箱:</th>
|
||||
<td>{$data['userEmail']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th align='right'><font color='red'>*</font>验证码:</th>
|
||||
<td>
|
||||
<input id="verifyCode" style="ime-mode:disabled;" name="verifyCode" data-rule="验证码: required;" data-msg-required="请输入验证码" data-tip="请输入验证码" data-target="#verify" class="ipt wst-lfloat" tabindex="6" autocomplete="off" maxlength="6" type="text"/>
|
||||
<label class="wst-sec-img">
|
||||
<img id='verifyImg' src="{:url('home/users/getVerify')}" onclick='javascript:WST.getVerify("#verifyImg")' style="width:110px;">
|
||||
</label>
|
||||
<label> 看不清?<a href="javascript:WST.getVerify('#verifyImg')" style="color:#69b7b5;">换一张</a></label><span id="verify"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th align='right'><font color='red'>*</font>校验码:</th>
|
||||
<td style='height:60px;'>
|
||||
<input id="secretCode" style="ime-mode:disabled;width:250px;" data-rule="校验码:required;" data-target="#secretErr" name="secretCode" class="ipt wst-lfloat" tabindex="6" autocomplete="off" maxlength="6" type="text"/>
|
||||
<button id="timeSend" class="wst-sec-but" type="button" onclick="sendEmail(true)" style="width:120px;height: 30px;margin-top:5px;">发送验证邮件</button><span id="secretErr"></span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<button id="next" class="wst-sec-but" type="submit" style="width:120px;height: 30px;margin-left:180px">下一步</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{/if}
|
||||
{if ($process=='Two')}
|
||||
<form method="post" id="emailForm" autocomplete="off">
|
||||
<input type='hidden' id='process' class='ipt' value='{$process}'/>
|
||||
<table class='wst-form'>
|
||||
<tr>
|
||||
<th align='right'>绑定邮箱地址 <font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<input type='text' class="ipt" id='userEmail' name='userEmail' style='width:250px;' maxLength='30'/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th align='right'>验证码 <font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<input id="verifyCode" data-rule="验证码:required" data-target="#verify" style="ime-mode:disabled;width:250px;" name="verifyCode" class="ipt wst-lfloat" tabindex="6" autocomplete="off" maxlength="6" type="text"/>
|
||||
<label class="wst-sec-img">
|
||||
<img id='verifyImg' src="{:url('home/users/getVerify')}" onclick='javascript:WST.getVerify("#verifyImg")' style="width:110px;">
|
||||
</label>
|
||||
<label> 看不清?<a href="javascript:WST.getVerify('#verifyImg')" style="color:#69b7b5;">换一张</a></label><span id="verify"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th align='right'><font color='red'>*</font>校验码:</th>
|
||||
<td style='height:60px;'>
|
||||
<input id="secretCode" style="ime-mode:disabled;width:250px;" data-rule="校验码:required;" data-target="#secretErr" name="secretCode" class="ipt wst-lfloat" tabindex="6" autocomplete="off" maxlength="6" type="text"/>
|
||||
<button id="timeSend" class="wst-sec-but" type="button" onclick="sendEmail()" style="width:120px;height: 30px;margin-top:5px;">发送验证邮件</button><span id="secretErr"></span>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<button id="next" class="wst-sec-but" type="submit" style="width:120px;height: 30px;margin-left:180px">下一步</button>
|
||||
</td>
|
||||
</tr>
|
||||
<input type="hidden" id="editEmail" value="1">
|
||||
</table>
|
||||
</form>
|
||||
{/if}
|
||||
{if ($process=='Three')}
|
||||
<div class="wst-sec-su">
|
||||
<span class="wst-sec-sut"><img src="__STYLE__/img/icon_success.png"/></span>
|
||||
<span class="wst-sec-sub">您已成功绑定邮箱!</span>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{block name="js"}
|
||||
<script type='text/javascript' src='__STYLE__/users/security/security.js?v={$v}'></script>
|
||||
<script type="text/javascript" src="__STATIC__/plugins/validator/jquery.validator.min.js?v={$v}"></script>
|
||||
<script>
|
||||
$(function(){veemailForm();vegetemailForm();})
|
||||
</script>
|
||||
{/block}
|
116
hyhproject/home2/view/default/users/security/user_edit_pay.html
Executable file
116
hyhproject/home2/view/default/users/security/user_edit_pay.html
Executable file
@ -0,0 +1,116 @@
|
||||
{extend name="default/users/base" /}
|
||||
{block name="title"}安全设置 - 买家中心{__block__}{/block}
|
||||
{block name="css"}
|
||||
<link href="__STATIC__/plugins/validator/jquery.validator.css?v={$v}" rel="stylesheet">
|
||||
<link href="__STYLE__/css/security.css?v={$v}" rel="stylesheet">
|
||||
{/block}
|
||||
{block name="content"}
|
||||
<div class="wst-user-head"><span>绑定手机</span><a href="{:url('home/users/security')}">返回</a></div>
|
||||
<div class="wst-clear"></div>
|
||||
<div class="wst-sec-head2">
|
||||
<div class="wst-lfloat wst-sec-min {if ($process=='One')}wst-sec-gr{/if}">1、验证身份</div>
|
||||
<div class="wst-lfloat wst-sec-min1 {if ($process=='One')}wst-sec-gr1{/if}"></div>
|
||||
<div class="wst-lfloat wst-sec-mi">
|
||||
<div class="wst-lfloat wst-sec-min2 {if ($process=='Two')}wst-sec-gr2{/if}"></div>
|
||||
<div class="wst-lfloat wst-sec-min3 {if ($process=='Two')}wst-sec-gr3{/if}"></div>
|
||||
</div>
|
||||
<div class="wst-lfloat wst-sec-min {if ($process=='Two')}wst-sec-gr{/if}">2、设置支付密码</div>
|
||||
<div class="wst-lfloat wst-sec-min1 {if ($process=='Two')}wst-sec-gr1{/if}"></div>
|
||||
<div class="wst-lfloat wst-sec-mi">
|
||||
<div class="wst-lfloat wst-sec-min2 {if ($process=='Three')}wst-sec-gr2{/if}"></div>
|
||||
<div class="wst-lfloat wst-sec-min3 {if ($process=='Three')}wst-sec-gr3{/if}"></div>
|
||||
</div>
|
||||
<div class="wst-lfloat wst-sec-min {if ($process=='Three')}wst-sec-gr{/if}">3、完成</div>
|
||||
</div>
|
||||
{if ($process=='One')}
|
||||
{if($data['phoneType']==1)}
|
||||
<form method="post" id="getpayForm" autocomplete="off">
|
||||
<table class='wst-form'>
|
||||
<tr>
|
||||
<th align='right'><font color='red'>*</font>已验证的手机:</th>
|
||||
<td>{$data['userPhone']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th align='right'><font color='red'>*</font>输入短信校验码:</th>
|
||||
<td>
|
||||
<input type='text' class="ipt" id='Checkcode' name='Checkcode' data-rule="校验码: required;" data-msg-required="请输入校验码" data-tip="请输入校验码" data-target="#verifyPhone1" style='width:250px;' maxLength='30'/>
|
||||
<button id="timeObtain" class="wst-sec-obtain" type="button" onclick="javascript:getPhoneVerify('pay');">获取手机验证码</button>
|
||||
<span id="verifyPhone1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' style='padding-left:116px;height:60px;'>
|
||||
<button class="wst-sec-but" type="submit" style="width:100px;height: 30px;">确认</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{else}
|
||||
<div class="wst-sec-su">
|
||||
<span class="wst-sec-sub" style="color: #333333;">您还未绑定手机号码,请绑定手机号码。</span>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{if ($process=='Two')}
|
||||
<form method="post" id="payForm" autocomplete="off">
|
||||
<input type="hidden" id="token" value='{:WSTConf("CONF.pwdModulusKey")}'/>
|
||||
<input type='hidden' id='process' class='ipt' value='{$process}' autocomplete="off"/>
|
||||
<table class='wst-form'>
|
||||
<tr>
|
||||
<th align='right'> <font color='red'>*</font>新支付密码:</th>
|
||||
<td>
|
||||
<input type='password' class="ipt" id='newPass' name='newPass' style='width:250px;' maxLength='6' data-rule='新支付密码:required;length(6)'/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th align='right'> <font color='red'>*</font>确认支付密码:</th>
|
||||
<td>
|
||||
<input type='password' class="ipt" id='reNewPass' name='reNewPass' style='width:250px;' maxLength='6' data-rule='确认支付密码:required;length(6)'/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<td colspan='2' style='padding-left:75px;height:60px;'>
|
||||
<button class='wst-sec-but wst-lfloat' type="submit" style="width:100px;height: 30px;">保 存</button>
|
||||
<button class='wst-sec-but2 wst-lfloat' type="reset" style="width:100px;height: 30px;margin-left:16px;">重 置</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<div style="text-align: center;margin-top:50px;"><button type="button" id="timeSend" class='wst-btn-querys'style="display:none;">下一步</button></div>
|
||||
{/if}
|
||||
{if ($process=='Three')}
|
||||
<div class="wst-sec-su">
|
||||
<span class="wst-sec-sut"><img src="__STYLE__/img/icon_success.png"/></span>
|
||||
<span class="wst-sec-sub">您已成功重置支付密码!</span>
|
||||
</div>
|
||||
{/if}
|
||||
<form method="post" id="phoneVerify" autocomplete="off" style="display:none;">
|
||||
<input type='hidden' id='VerifyId' value='' autocomplete="off"/>
|
||||
<table class='wst-form' style="width:500px;">
|
||||
<tr>
|
||||
<th align='right'><font color='red'>*</font>验证码:</th>
|
||||
<td>
|
||||
<input id="smsVerfy" style="ime-mode:disabled;width:150px;" name="smsVerfy" data-rule="验证码: required;" data-msg-required="请输入验证码" data-tip="请输入验证码" data-target="#verify" class="ipt wst-lfloat" tabindex="6" autocomplete="off" maxlength="6" type="text"/>
|
||||
<label class="wst-sec-img">
|
||||
<img id='verifyImg' src="{:url('home/users/getVerify')}" onclick='javascript:WST.getVerify("#verifyImg")' style="width:110px;">
|
||||
</label>
|
||||
<label> 看不清?<a href="javascript:WST.getVerify('#verifyImg')"style="color:#69b7b5;">换一张</a></label><span id="verify"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' style='padding-left:71px;height:50px;'>
|
||||
<button class="wst-sec-but" type="submit" style="width:100px;height: 30px;">确认</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{/block}
|
||||
{block name="js"}
|
||||
<script type="text/javascript" src="__STATIC__/js/rsa.js"></script>
|
||||
<script type='text/javascript' src='__STYLE__/users/security/security.js?v={$v}'></script>
|
||||
<script type="text/javascript" src="__STATIC__/plugins/validator/jquery.validator.min.js?v={$v}"></script>
|
||||
<script>
|
||||
$(function(){vegetpayForm();vepayForm();})
|
||||
</script>
|
||||
{/block}
|
108
hyhproject/home2/view/default/users/security/user_edit_phone.html
Executable file
108
hyhproject/home2/view/default/users/security/user_edit_phone.html
Executable file
@ -0,0 +1,108 @@
|
||||
{extend name="default/users/base" /}
|
||||
{block name="title"}安全设置 - 买家中心{__block__}{/block}
|
||||
{block name="css"}
|
||||
<link href="__STATIC__/plugins/validator/jquery.validator.css?v={$v}" rel="stylesheet">
|
||||
<link href="__STYLE__/css/security.css?v={$v}" rel="stylesheet">
|
||||
{/block}
|
||||
{block name="content"}
|
||||
<div class="wst-user-head"><span>绑定手机</span><a href="{:url('home/users/security')}">返回</a></div>
|
||||
<div class="wst-clear"></div>
|
||||
<div class="wst-sec-head2">
|
||||
<div class="wst-lfloat wst-sec-min {if ($process=='One')}wst-sec-gr{/if}">1、验证身份</div>
|
||||
<div class="wst-lfloat wst-sec-min1 {if ($process=='One')}wst-sec-gr1{/if}"></div>
|
||||
<div class="wst-lfloat wst-sec-mi">
|
||||
<div class="wst-lfloat wst-sec-min2 {if ($process=='Two')}wst-sec-gr2{/if}"></div>
|
||||
<div class="wst-lfloat wst-sec-min3 {if ($process=='Two')}wst-sec-gr3{/if}"></div>
|
||||
</div>
|
||||
<div class="wst-lfloat wst-sec-min {if ($process=='Two')}wst-sec-gr{/if}">2、修改手机</div>
|
||||
<div class="wst-lfloat wst-sec-min1 {if ($process=='Two')}wst-sec-gr1{/if}"></div>
|
||||
<div class="wst-lfloat wst-sec-mi">
|
||||
<div class="wst-lfloat wst-sec-min2 {if ($process=='Three')}wst-sec-gr2{/if}"></div>
|
||||
<div class="wst-lfloat wst-sec-min3 {if ($process=='Three')}wst-sec-gr3{/if}"></div>
|
||||
</div>
|
||||
<div class="wst-lfloat wst-sec-min {if ($process=='Three')}wst-sec-gr{/if}">3、完成</div>
|
||||
</div>
|
||||
{if ($process=='One')}
|
||||
<form method="post" id="getphoneForm" autocomplete="off">
|
||||
<table class='wst-form'>
|
||||
<tr>
|
||||
<th align='right'><font color='red'>*</font>已验证的手机:</th>
|
||||
<td>{$data['userPhone']}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th align='right'><font color='red'>*</font>输入短信校验码:</th>
|
||||
<td>
|
||||
<input type='text' class="ipt" id='Checkcode' name='Checkcode' data-rule="校验码: required;" data-msg-required="请输入校验码" data-tip="请输入校验码" data-target="#verifyPhone1" style='width:250px;' maxLength='30'/>
|
||||
<button id="timeObtain" class="wst-sec-obtain" type="button" onclick="javascript:getPhoneVerify('t');">获取手机验证码</button>
|
||||
<span id="verifyPhone1"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' style='padding-left:116px;height:60px;'>
|
||||
<button class="wst-sec-but" type="submit" style="width:100px;height: 30px;">确认</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{/if}
|
||||
{if ($process=='Two')}
|
||||
<form method="post" id="phoneForm" autocomplete="off">
|
||||
<input type='hidden' id='process' class='ipt' value='{$process}' autocomplete="off"/>
|
||||
<table class='wst-form'>
|
||||
<tr>
|
||||
<th align='right'><font color='red'>*</font>绑定手机号码:</th>
|
||||
<td>
|
||||
<input type='text' class="ipt" id='userPhone' name='userPhone' style='width:250px;' maxLength='30' data-rule="手机号 required;mobile;remote(post:{:url('home/users/checkLoginKey')})" data-msg-mobile="请输入有效的手机号" data-msg-required="请输入手机号" data-tip="请输入手机号" data-target="#verifyPhone"/>
|
||||
<button id="timeObtain" class="wst-sec-obtain" type="button" onclick="javascript:getPhoneVerify('o');">获取手机验证码</button>
|
||||
<span id="verifyPhone"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th align='right'><font color='red'>*</font>输入短信校验码:</th>
|
||||
<td>
|
||||
<input type='text' class="ipt" id='Checkcode' name='Checkcode' style='width:250px;' maxLength='30' data-rule="短信校验码: required;" data-msg-required="请输入短信校验码" data-tip="请输入短信校验码"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' style='padding-left:116px;height:60px;'>
|
||||
<button class="wst-sec-but" type="submit" style="width:100px;height: 30px;">立即绑定</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<div style="text-align: center;margin-top:50px;"><button type="button" id="timeSend" class='wst-btn-querys'style="display:none;">下一步</button></div>
|
||||
{/if}
|
||||
{if ($process=='Three')}
|
||||
<div class="wst-sec-su">
|
||||
<span class="wst-sec-sut"><img src="__STYLE__/img/icon_success.png"/></span>
|
||||
<span class="wst-sec-sub">您已成功绑定手机!</span>
|
||||
</div>
|
||||
{/if}
|
||||
<form method="post" id="phoneVerify" autocomplete="off" style="display:none;">
|
||||
<input type='hidden' id='VerifyId' value='' autocomplete="off"/>
|
||||
<table class='wst-form' style="width:500px;">
|
||||
<tr>
|
||||
<th align='right'><font color='red'>*</font>验证码:</th>
|
||||
<td>
|
||||
<input id="smsVerfy" style="ime-mode:disabled;width:150px;" name="smsVerfy" data-rule="验证码: required;" data-msg-required="请输入验证码" data-tip="请输入验证码" data-target="#verify" class="ipt wst-lfloat" tabindex="6" autocomplete="off" maxlength="6" type="text"/>
|
||||
<label class="wst-sec-img">
|
||||
<img id='verifyImg' src="{:url('home/users/getVerify')}" onclick='javascript:WST.getVerify("#verifyImg")' style="width:110px;">
|
||||
</label>
|
||||
<label> 看不清?<a href="javascript:WST.getVerify('#verifyImg')"style="color:#69b7b5;">换一张</a></label><span id="verify"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' style='padding-left:71px;height:50px;'>
|
||||
<button class="wst-sec-but" type="submit" style="width:100px;height: 30px;">确认</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{/block}
|
||||
{block name="js"}
|
||||
<script type='text/javascript' src='__STYLE__/users/security/security.js?v={$v}'></script>
|
||||
<script type="text/javascript" src="__STATIC__/plugins/validator/jquery.validator.min.js?v={$v}"></script>
|
||||
<script>
|
||||
$(function(){vegetphoneForm();vephoneForm();})
|
||||
</script>
|
||||
{/block}
|
66
hyhproject/home2/view/default/users/security/user_email.html
Executable file
66
hyhproject/home2/view/default/users/security/user_email.html
Executable file
@ -0,0 +1,66 @@
|
||||
{extend name="default/users/base" /}
|
||||
{block name="title"}安全设置 - 买家中心{__block__}{/block}
|
||||
{block name="css"}
|
||||
<link href="__STATIC__/plugins/validator/jquery.validator.css?v={$v}" rel="stylesheet">
|
||||
<link href="__STYLE__/css/security.css?v={$v}" rel="stylesheet">
|
||||
{/block}
|
||||
{block name="content"}
|
||||
<div class="wst-user-head"><span>绑定邮箱</span><a href="{:url('home/users/security')}">返回</a></div>
|
||||
<div class="wst-clear"></div>
|
||||
{if ($process=='One')}
|
||||
<form method="post" id="emailForm" autocomplete="off">
|
||||
<table class='wst-form'>
|
||||
<tr>
|
||||
<th align='right'><font color='red'>*</font>绑定邮箱地址:</th>
|
||||
<td>
|
||||
<input type='text' class="ipt" id='userEmail' name='userEmail' style='width:250px;' maxLength='30'/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th align='right'><font color='red'>*</font>验证码:</th>
|
||||
<td>
|
||||
<input id="verifyCode" data-rule="验证码:required" data-target="#verify" style="ime-mode:disabled;width:250px;" name="verifyCode" class="ipt wst-lfloat" tabindex="6" autocomplete="off" maxlength="6" type="text"/>
|
||||
<label class="wst-sec-img">
|
||||
<img id='verifyImg' src="{:url('home/users/getVerify')}" onclick='javascript:WST.getVerify("#verifyImg")' style="width:110px;">
|
||||
</label>
|
||||
<label> 看不清?<a href="javascript:WST.getVerify('#verifyImg')" style="color:#69b7b5;">换一张</a></label><span id="verify"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th align='right'><font color='red'>*</font>校验码:</th>
|
||||
<td style='height:60px;'>
|
||||
<input id="secretCode" style="ime-mode:disabled;width:250px;" name="secretCode" class="ipt wst-lfloat" tabindex="6" autocomplete="off" maxlength="6" type="text"/>
|
||||
<button id="timeSend" class="wst-sec-but" type="button" onclick="sendEmail()" style="width:120px;height: 30px;margin-top:5px;">发送验证邮件</button><span id="secretErr"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<button id="next" class="wst-sec-but" type="submit" style="width:120px;height: 30px;margin-left:180px">下一步</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<div id="prompt" class="wst-sec-prompt hide">
|
||||
<div class="wst-lfloat">
|
||||
<p><span>已发送验证邮箱至:</span><span id="inemail" style=" font-weight: bold;"></span></p>
|
||||
<p class="wst-sec-p1">验证邮箱30分钟内有效,请尽快登录您的邮箱点击验证链接完成验证</p>
|
||||
<p style="color:#f10b0b;">(请立即完成验证,邮箱验证不通过则绑定邮箱失败)</p>
|
||||
<p class="wst-sec-p1" style="font-weight: bold;">没收到邮箱?</p>
|
||||
<p class="wst-sec-p2">1.检查您的垃圾箱或广告箱,邮件有可能被误认为垃圾或广告邮件;或选择<a style="color:#006898;" onclick="location.href=WST.U('home/users/editEmail')">重新发送</a></p>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
{if ($process=='Three')}
|
||||
<div class="wst-sec-su">
|
||||
<span class="wst-sec-sut"><img src="__STYLE__/img/icon_success.png"/></span>
|
||||
<span class="wst-sec-sub">您已成功绑定邮箱!</span>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{block name="js"}
|
||||
<script type='text/javascript' src='__STYLE__/users/security/security.js?v={$v}'></script>
|
||||
<script type="text/javascript" src="__STATIC__/plugins/validator/jquery.validator.min.js?v={$v}"></script>
|
||||
<script>
|
||||
$(function(){veemailForm();})
|
||||
</script>
|
||||
{/block}
|
49
hyhproject/home2/view/default/users/security/user_pass.html
Executable file
49
hyhproject/home2/view/default/users/security/user_pass.html
Executable file
@ -0,0 +1,49 @@
|
||||
{extend name="default/users/base" /}
|
||||
{block name="title"}安全设置 - 买家中心{__block__}{/block}
|
||||
{block name="css"}
|
||||
<link href="__STATIC__/plugins/validator/jquery.validator.css?v={$v}" rel="stylesheet">
|
||||
<link href="__STYLE__/css/security.css?v={$v}" rel="stylesheet">
|
||||
{/block}
|
||||
{block name="content"}
|
||||
<input type="hidden" id="token" value='{:WSTConf("CONF.pwdModulusKey")}'/>
|
||||
<div class="wst-user-head"><span>设置密码</span><a href="{:url('home/users/security')}">返回</a></div>
|
||||
<form method="post" id="myorm" autocomplete="off">
|
||||
<table class='wst-form'>
|
||||
{if ($data['loginPwd'])}
|
||||
<tr>
|
||||
<th align='right'> <font color='red'>*</font>原始密码:</th>
|
||||
<td>
|
||||
<input type='password' class="ipt" id='oldPass' name='oldPass' {if ($data['loginPwd'])}data-rule="原始密码: required;" data-msg-required="请填写原始密码" data-tip="请输入原始密码"{/if} style='width:250px;' maxLength='16'/>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr>
|
||||
<th align='right'> <font color='red'>*</font>新密码:</th>
|
||||
<td>
|
||||
<input type='password' class="ipt" id='newPass' name='newPass' style='width:250px;' maxLength='16'/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th align='right'> <font color='red'>*</font>确认密码:</th>
|
||||
<td>
|
||||
<input type='password' class="ipt" id='reNewPass' name='reNewPass' style='width:250px;' maxLength='16'/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' style='padding-left:75px;height:60px;'>
|
||||
<button class='wst-sec-but wst-lfloat' type="submit" style="width:100px;height: 30px;">保 存</button>
|
||||
<button class='wst-sec-but2 wst-lfloat' type="reset" style="width:100px;height: 30px;margin-left:16px;">重 置</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
{/block}
|
||||
{block name="js"}
|
||||
<script type="text/javascript" src="__STATIC__/js/rsa.js"></script>
|
||||
<script type='text/javascript' src='__STYLE__/users/security/security.js?v={$v}'></script>
|
||||
<script type="text/javascript" src="__STATIC__/plugins/validator/jquery.validator.min.js?v={$v}"></script>
|
||||
<script>
|
||||
$(function(){veMyorm();})
|
||||
</script>
|
||||
{/block}
|
53
hyhproject/home2/view/default/users/security/user_pay_pass.html
Executable file
53
hyhproject/home2/view/default/users/security/user_pay_pass.html
Executable file
@ -0,0 +1,53 @@
|
||||
{extend name="default/users/base" /}
|
||||
{block name="title"}安全设置 - 买家中心{__block__}{/block}
|
||||
{block name="css"}
|
||||
<link href="__STATIC__/plugins/validator/jquery.validator.css?v={$v}" rel="stylesheet">
|
||||
<link href="__STYLE__/css/security.css?v={$v}" rel="stylesheet">
|
||||
{/block}
|
||||
{block name="content"}
|
||||
<input type="hidden" id="token" value='{:WSTConf("CONF.pwdModulusKey")}'/>
|
||||
<div class="wst-user-head"><span>设置支付密码</span><a href="{:url('home/users/security')}">返回</a></div>
|
||||
<form method="post" id="payform" autocomplete="off">
|
||||
<table class='wst-form'>
|
||||
{if ($data['payPwd'])}
|
||||
<tr>
|
||||
<th align='right'> <font color='red'>*</font>原始密码:</th>
|
||||
<td>
|
||||
<input type='password' class="ipt" id='oldPass' name='oldPass' {if ($data['payPwd'])}data-rule="原始支付密码: required;" data-msg-required="请填写原始支付密码" data-tip="请输入原始支付密码"{/if} style='width:250px;' maxLength='16'/>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
<tr>
|
||||
<th align='right'> <font color='red'>*</font>新支付密码:</th>
|
||||
<td>
|
||||
<input type='password' class="ipt" id='newPass' name='newPass' style='width:250px;' maxLength='16' data-rule='新支付密码:required;'/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th align='right'> <font color='red'>*</font>确认支付密码:</th>
|
||||
<td>
|
||||
<input type='password' class="ipt" id='reNewPass' name='reNewPass' style='width:250px;' maxLength='16' data-rule='确认支付密码:required;'/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th align='right'></th>
|
||||
<td><a href="{:url('home/users/backPayPass')}">忘记支付密码?</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' style='padding-left:75px;height:60px;'>
|
||||
<button class='wst-sec-but wst-lfloat' type="submit" style="width:100px;height: 30px;">保 存</button>
|
||||
<button class='wst-sec-but2 wst-lfloat' type="reset" style="width:100px;height: 30px;margin-left:16px;">重 置</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
{/block}
|
||||
{block name="js"}
|
||||
<script type="text/javascript" src="__STATIC__/js/rsa.js"></script>
|
||||
<script type='text/javascript' src='__STYLE__/users/security/security.js?v={$v}'></script>
|
||||
<script type="text/javascript" src="__STATIC__/plugins/validator/jquery.validator.min.js?v={$v}"></script>
|
||||
<script>
|
||||
$(function(){vePayForm();})
|
||||
</script>
|
||||
{/block}
|
68
hyhproject/home2/view/default/users/security/user_phone.html
Executable file
68
hyhproject/home2/view/default/users/security/user_phone.html
Executable file
@ -0,0 +1,68 @@
|
||||
{extend name="default/users/base" /}
|
||||
{block name="title"}安全设置 - 买家中心{__block__}{/block}
|
||||
{block name="css"}
|
||||
<link href="__STATIC__/plugins/validator/jquery.validator.css?v={$v}" rel="stylesheet">
|
||||
<link href="__STYLE__/css/security.css?v={$v}" rel="stylesheet">
|
||||
{/block}
|
||||
{block name="content"}
|
||||
<div class="wst-user-head"><span>绑定手机</span><a href="{:url('home/users/security')}">返回</a></div>
|
||||
<div class="wst-clear"></div>
|
||||
{if ($process=='One')}
|
||||
<form method="post" id="phoneForm" autocomplete="off">
|
||||
<table class='wst-form'>
|
||||
<tr>
|
||||
<th align='right'>绑定手机号码<font color='red'>*</font>:</th>
|
||||
<td>
|
||||
<input type='text' class="ipt" id='userPhone' name='userPhone' style='width:250px;' maxLength='30' data-rule="手机号 required;mobile;remote(post:{:url('home/users/checkLoginKey')})" data-msg-mobile="请输入有效的手机号" data-msg-required="请输入手机号" data-tip="请输入手机号" data-target="#verifyPhone"/>
|
||||
<button id="timeObtain" class="wst-sec-obtain" type="button" onclick="javascript:getPhoneVerify('b');">获取手机验证码</button>
|
||||
<span id="verifyPhone"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th align='right'><font color='red'>*</font>输入短信校验码:</th>
|
||||
<td>
|
||||
<input type='text' class="ipt" id='Checkcode' name='Checkcode' style='width:250px;' maxLength='30' data-rule="短信校验码: required;" data-msg-required="请输入短信校验码" data-tip="请输入短信校验码"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' style='padding-left:115px;height:60px;'>
|
||||
<button class="wst-sec-but" type="submit" style="width:100px;height: 30px;">立即绑定</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<form method="post" id="phoneVerify" autocomplete="off" style="display:none;">
|
||||
<input type='hidden' id='VerifyId' value='' autocomplete="off"/>
|
||||
<table class='wst-form' style="width:500px;">
|
||||
<tr>
|
||||
<th align='right'><font color='red'>*</font>验证码:</th>
|
||||
<td>
|
||||
<input id="smsVerfy" style="ime-mode:disabled;width:150px;" name="smsVerfy" data-rule="验证码: required;" data-msg-required="请输入验证码" data-tip="请输入验证码" data-target="#verify" class="ipt wst-lfloat" tabindex="6" autocomplete="off" maxlength="6" type="text"/>
|
||||
<label class="wst-sec-img">
|
||||
<img id='verifyImg' src="{:url('home/users/getVerify')}" onclick='javascript:WST.getVerify("#verifyImg")' style="width:110px;">
|
||||
</label>
|
||||
<label> 看不清?<a href="javascript:WST.getVerify('#verifyImg')"style="color:#69b7b5;">换一张</a></label><span id="verify"></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan='2' style='padding-left:71px;height:50px;'>
|
||||
<button class="wst-sec-but" type="submit" style="width:100px;height: 30px;">确认</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{/if}
|
||||
{if ($process=='Three')}
|
||||
<div class="wst-sec-su">
|
||||
<span class="wst-sec-sut"><img src="__STYLE__/img/icon_success.png"/></span>
|
||||
<span class="wst-sec-sub">您已成功绑定手机!</span>
|
||||
</div>
|
||||
{/if}
|
||||
{/block}
|
||||
{block name="js"}
|
||||
<script type='text/javascript' src='__STYLE__/users/security/security.js?v={$v}'></script>
|
||||
<script type="text/javascript" src="__STATIC__/plugins/validator/jquery.validator.min.js?v={$v}"></script>
|
||||
<script>
|
||||
$(function(){vephoneForm();})
|
||||
</script>
|
||||
{/block}
|
Reference in New Issue
Block a user