<?php /* Smarty version Smarty-3.1.8, created on 2015-11-24 10:38:36
         compiled from "D:\wwwroot\o2o\htdocs\themes\default\xiche\mcenter\login.html" */ ?>
<?php /*%%SmartyHeaderCode:249955653cdac1a4761-38144807%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e3dc97c88a610c63a49bd8a8e16e9c5777babfa0' => 
    array (
      0 => 'D:\\wwwroot\\o2o\\htdocs\\themes\\default\\xiche\\mcenter\\login.html',
      1 => 1447986608,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '249955653cdac1a4761-38144807',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5653cdac22d308_53595829',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5653cdac22d308_53595829')) {function content_5653cdac22d308_53595829($_smarty_tpl) {?><?php if (!is_callable('smarty_function_link')) include 'D:\\wwwroot\\o2o\\htdocs\\system\\plugins/smarty\\function.link.php';
?><?php $_smarty_tpl->tpl_vars['tpl_title'] = new Smarty_variable('登录', null, 0);?>
<!DOCTYPE HTML>
<html>
<head>
<?php echo $_smarty_tpl->getSubTemplate ("xiche/mcenter/block/mheader.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

</head>

<body>
<section id="login" class="">
	<div class="banner"><img src="/themes/default/xiche/static/images/login_img.jpg"></div>
    <ul class="form_list_box mt10">
        <li class="pd">
        	<table width="100%">
            	<tr>
                	<th><em class="ico_1"></em></th>
                    <td>
                        <input type="text" id="u" placeholder="输入手机号">
                    </td>
                </tr>
            </table>
        </li>
        <li class="last pd">
        	<table>
            	<tr>
                	<th><em class="ico_3"></em></th>
                    <td>
                        <input type="password" id="p" placeholder="输入密码">
                    </td>
                </tr>
            </table>
        </li>
    </ul>
    <div class="forget"><a class="fontcl1" href="#">忘记密码?</a></div>
    <div class="long_btn_box">
        <input class="long_btn" type="submit" id="login_btn"  value="登 录">
    </div>
</section>
</body>
</html>
<script>
require(["zepto", "underscore", "frozen"], function($, _, fz) {
    $("#login_btn").click(function(){
        var u = $('#u').val(); 
        var p = $('#p').val();
        if(u == '') {
            alert('手机号不能为空!');
            return false;
        }
        if(p == '') {
            alert('密码不能为空!');
            return false;
        }
        var link = "<?php echo smarty_function_link(array('ctl'=>'xiche/mcenter/login/login'),$_smarty_tpl);?>
";
        $.post(link,{u:u,p:p}, function (ret) {
            if (ret.error) {
                $.tips({content: ret.message, stayTime: 2000});
            } else {
                $.tips({content: ret.message, stayTime: 2000});
                setTimeout(function(){
                     window.location.href="<?php echo smarty_function_link(array('ctl'=>'xiche/mcenter/main'),$_smarty_tpl);?>
";
                },2000)
            }
        }, 'json');
    })
});
</script><?php }} ?>