<?php /* Smarty version Smarty-3.1.8, created on 2015-11-24 14:23:15
         compiled from "D:\wwwroot\o2o\htdocs\themes\default\xiche\order\detail.html" */ ?>
<?php /*%%SmartyHeaderCode:69656502867bdf317-83180423%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '5d73915ef80811a731c484403f4df0c691df5321' => 
    array (
      0 => 'D:\\wwwroot\\o2o\\htdocs\\themes\\default\\xiche\\order\\detail.html',
      1 => 1448346190,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '69656502867bdf317-83180423',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_56502867c7b747_76982114',
  'variables' => 
  array (
    'res' => 0,
    'pager' => 0,
    'goods' => 0,
    'product' => 0,
    'v' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_56502867c7b747_76982114')) {function content_56502867c7b747_76982114($_smarty_tpl) {?><?php if (!is_callable('smarty_function_link')) include 'D:\\wwwroot\\o2o\\htdocs\\system\\plugins/smarty\\function.link.php';
if (!is_callable('smarty_modifier_format')) include 'D:\\wwwroot\\o2o\\htdocs\\system\\plugins/smarty\\modifier.format.php';
?><!DOCTYPE HTML>
<html>
    <head>
        <?php echo $_smarty_tpl->getSubTemplate ("xiche/block/sheader.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

    </head>
    <body>
        
        

        <header>
            <i class="left"><a id="icon_goback"  href="<?php echo smarty_function_link(array('ctl'=>'xiche/orderlist'),$_smarty_tpl);?>
"></a></i>
    <div class="title">待付款</div>
    <i class="right"><?php if ($_smarty_tpl->tpl_vars['res']->value['order_status']==1){?><a href="javascript:void(0);" class="order_cancel" id="cancel">取消订单</a><?php }?></i>
</header>


<section id="order_wait" class="page_center_box">
    <div class="box">
    	<div class="cont">
            <div class="img"><img src="<?php echo $_smarty_tpl->tpl_vars['pager']->value['img'];?>
/<?php echo $_smarty_tpl->tpl_vars['goods']->value['photo'];?>
"></div>
            <div class="nr">
            	<div class="fl">
                	<h3 class="overflow_clear"><?php echo $_smarty_tpl->tpl_vars['goods']->value['title'];?>
</h3>
                    <p><?php echo $_smarty_tpl->tpl_vars['goods']->value['content'];?>
</p>
                </div>
                <div class="fr fontcl1">￥<b><?php echo $_smarty_tpl->tpl_vars['goods']->value['price'];?>
</b></div>
            </div>
        </div>
        <?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['product']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?>
        <div class="decide">
        	<div class="fl"><?php echo $_smarty_tpl->tpl_vars['v']->value['title'];?>
 加<span class="graycl"><?php echo $_smarty_tpl->tpl_vars['v']->value['product_price'];?>
</span>元</div>
            <div class="fr fontcl1">￥<b><?php echo $_smarty_tpl->tpl_vars['v']->value['product_price'];?>
</b></div>
        </div>
        <?php } ?>
    </div>
    <div class="box infor">
    	<p>服务时间：<span class="black3"><?php echo smarty_modifier_format($_smarty_tpl->tpl_vars['res']->value['fuwu_time']);?>
</span></p>
        <p>车辆位置：<?php echo $_smarty_tpl->tpl_vars['res']->value['addr'];?>
</p>
        <p>车辆信息：<?php echo $_smarty_tpl->tpl_vars['res']->value['car'];?>
</p>
        <div class="paid">
            <p>实付款：<span class="fr pointcl">￥<?php echo $_smarty_tpl->tpl_vars['res']->value['price'];?>
</span></p>
        </div>
    </div>
</section>
        
<?php if ($_smarty_tpl->tpl_vars['res']->value['order_status']==1){?>

<footer>
    <div class="btn_long_box"><a href="<?php echo smarty_function_link(array('ctl'=>'xiche/order/pay','oid'=>$_smarty_tpl->tpl_vars['res']->value['order_id']),$_smarty_tpl);?>
" id="payment" class="btn_long" style="text-align:center;line-height:0.4rem;">去付款</a></div>
</footer>
<?php }?>
        

<script>
             require(["zepto", "underscore", "frozen"], function($, _, fz) {
                
                
                $('#cancel').click(function(){
                   
                     var dia = $.dialog({
                        title: '温馨提示',
                        content: '您确定要取消订单吗？',
                        button: ["确定", "取消"],
                    });
                     
                     
                     var link = "<?php echo smarty_function_link(array('ctl'=>'xiche/order/cancel'),$_smarty_tpl);?>
";
                     var order_id = "<?php echo $_smarty_tpl->tpl_vars['res']->value['order_id'];?>
";
                     
                      dia.on("dialog:action", function (e) {
                        if (e.index == 0) {
                            $.post(link,{order_id:order_id},function(ret){
                                if(ret.error){
                                       $.tips({content: ret.message});
                                   }else{
                                       $.tips({content: ret.message});
                                       setTimeout(function(){
                                         location.reload(true);
                                       },1000);
                                   }

                           },'json');

                        }
                        
                  
                   
                });
                
                 });
                
             });
        </script>
        

        

    </body>
</html><?php }} ?>