master
iotcat 4 years ago
parent 7d8f953de0
commit 59e1cc837d
  1. 16
      js/login.js
  2. 16
      js/update.js
  3. 4
      login.html
  4. 2
      update.html

@ -125,17 +125,21 @@ $(function(){
if(page.tran.getLang() == 'zh')
$('.num-err').removeClass('hide').find("em").text('请输入手机号');
else
$('.num-err').removeClass('hide').find("em").text('Please input your phone number!');
$('.num-err').removeClass('hide').find("em").text('Empty phone');
return false;
}
var param = /^1[34578]\d{9}$/;
if (!param.test(phone)) {
// globalTip({'msg':'手机号不合法,请重新输入','setTime':3});
$('.num-err').removeClass('hide');
if(page.tran.getLang() == 'zh')
$('.num-err').text('请输入中国大陆11位手机号');
else
$('.num-err').text('Only support the phone number in Mainland China');
if(page.tran.getLang() == 'zh'){
$('.num-err').text('手机号不正确');
tips.warning({message: '仅支持中国大陆11位手机号!'});
}
else{
$('.num-err').text('Illegal Phone');
tips.warning({message: 'Only support the phone number in Mainland China!'});
}
return false;
}
@ -151,7 +155,7 @@ $(function(){
if(page.tran.getLang() == 'zh')
$('.error').removeClass('hide').text('请输入验证码');
else
$('.error').removeClass('hide').text('Please input the code you received.');
$('.error').removeClass('hide').text('Input code received.');
return false;
} else if(pCode.length ==6){
$('.error').addClass('hide');

@ -134,16 +134,20 @@ $(function(){
if(page.tran.getLang() == 'zh')
$('.num-err').removeClass('hide').find("em").text('请输入手机号');
else
$('.num-err').removeClass('hide').find("em").text('Please input your phone number!');
$('.num-err').removeClass('hide').find("em").text('Empty phone');
return false;
}
var param = /^1[34578]\d{9}$/;
if (!param.test(phone)) {
// globalTip({'msg':'手机号不合法,请重新输入','setTime':3});
if(page.tran.getLang() == 'zh')
$('.num-err').text('请输入中国大陆11位手机号');
else
$('.num-err').text('Only support the phone number in Mainland China');
if(page.tran.getLang() == 'zh'){
$('.num-err').text('手机号不正确');
tips.warning({message: '仅支持中国大陆11位手机号!'});
}
else{
$('.num-err').text('Illegal Phone');
tips.warning({message: 'Only support the phone number in Mainland China!'});
}
return false;
}
@ -159,7 +163,7 @@ $(function(){
if(page.tran.getLang() == 'zh')
$('.error').removeClass('hide').text('请输入验证码');
else
$('.error').removeClass('hide').text('Please input the code you received.');
$('.error').removeClass('hide').text('Input code received.');
return false;
} else if(pCode.length ==6){
$('.error').addClass('hide');

@ -57,8 +57,8 @@
<span class="z"><i class="icon-ok-sign boxcol" nullmsg="请同意!"></i></span>
<input type="hidden" id="agree" name="agree" value="1">
<div class="Validform_checktip"></div>
<p><span class=".zh">我已阅读并接受 <a id="ag" href="#">《Ushio用户协议说明》</a></span><span class=".en">I had read and accepted the <a id="ag" href="#">《Ushio Service Agreement》</a></span></p>
<script>$('#ag').click(function(){
<p><span class=".zh">我已阅读并接受 <a class="ag" href="#">《Ushio用户协议说明》</a></span><span class=".en">I accepted <a class="ag" href="#">《Ushio Service Agreement》</a></span></p>
<script>$('.ag').click(function(){
if(page.tran.getLang() == 'zh')
tips.info({
timeout: 150000,

@ -62,7 +62,7 @@
<span class="z"><i class="icon-ok-sign boxcol" nullmsg="请同意!"></i></span>
<input type="hidden" id="agree" name="agree" value="1">
<div class="Validform_checktip"></div>
<p><span class=".zh">我已阅读并接受 <a id="ag" href="#">《Ushio用户协议说明》</a></span><span class=".en">I had read and accepted the <a id="ag" href="#">《Ushio Service Agreement》</a></span></p>
<p><span class=".zh">我已阅读并接受 <a class="ag" href="#">《Ushio用户协议说明》</a></span><span class=".en">I accepted <a class="ag" href="#">《Ushio Service Agreement》</a></span></p>
</div>
<button class="lang-btn off log-btn"><span class=".zh">更新</span><span class=".en">Update</span></button>
<!--<div class="third-party">

Loading…
Cancel
Save