1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <{include file="header.html"}>
- <{include file="nav.html"}>
- <div class="wrapper jsc-sidebar-content jsc-sidebar-pulled">
- <{include file="menu_icon.html"}>
- <div class="article_title center">绑定手机号</div>
- <div class="clear"></div>
- <br>
- <div class="user_txt center">已向您的手机<span class="mobile"><{$mobile}></span>发送<br>验证请求,请输入您接收到的验证码。</div>
- <div class="join_submit_box">
- <div class="submit_cell"><input name="code" type="text" class="input_style" placeholder="验证码"></div>
- <div class="user_tips center"></div>
- <div class="clear"></div>
- <div class="submit_cell2">
- <div class="common_btn_style3 com_btn_style3"><a class="confirm" href="javascript:;">确认</a></div>
- </div>
- <div class="submit_cell2">
- <div class="common_btn_style5 com_btn_style3"><a class="anew" href="javascript:;">重新发送验证码(<span class='m_s'>60</span>s)</a></div>
- </div>
- <div class="submit_cell2">
- <div class="common_btn_style3 com_btn_style3" style="display:none;"><a class="back" href="<{$web_cfg.domain}>/member/inputMobile/">绑定其它手机号</a></div>
- </div>
- </div>
-
- </div>
- <{include file="left.html"}>
- <script>
- KISSY.use('node, io', function (S, Node, IO) {
- var s = $('.m_s').html();
- var I = setInterval(countdown, 1000);
- function countdown() {
- s--;
- $('.m_s').html(s);
- if (s < 1) {
- window.clearInterval(I);
- $('.common_btn_style5').addClass('common_btn_style3').removeClass('common_btn_style5');
- $('.anew').html('重新发送验证码');
- <{if $times >= 2}>
- $('.common_btn_style3').show();
- <{/if}>
- }
- }
-
- var mobile = '<{$mobile}>';
- $('.confirm').on('click', function () {
- var code = $('input[name=code]').val();
- if (!code) {
- $('.user_tips').html('请输入验证码');
- return false;
- }
-
- IO.get('<{$web_cfg.domain}>/?c=member&a=AjaxVerifyCode'
- , {mobile: mobile, code: code}
- , function (data) {
- if (data.ok) {
- location.href = '<{$web_cfg.domain}>/member/MobileBind/';
- } else {
- $('.user_tips').html(data.msg);
- }
- }
- , 'json'
- );
- });
-
- $('.anew').on('click', function () {
- if (s < 1) {
- location.href = '<{$web_cfg.domain}>/member/verifyMobile/?mobile='+mobile+'&t=<{$times}>';
- }
- });
-
- $('.back').on('click', function () {
- history.back();
- });
- });
- </script>
- <{include file="bottom.html"}>
|