<?php /*a:5:{s:83:"F:\wpf\WpfApp1\WpfApp1\bin\x64\Debug\web\im\application\index\view\order\index.html";i:1594451467;s:83:"F:\wpf\WpfApp1\WpfApp1\bin\x64\Debug\web\im\application\index\view\public\user.html";i:1590303624;s:84:"F:\wpf\WpfApp1\WpfApp1\bin\x64\Debug\web\im\application\index\view\public\color.html";i:1577883012;s:83:"F:\wpf\WpfApp1\WpfApp1\bin\x64\Debug\web\im\application\index\view\public\left.html";i:1594002161;s:85:"F:\wpf\WpfApp1\WpfApp1\bin\x64\Debug\web\im\application\index\view\public\footer.html";i:1599574048;}*/ ?>
<!-- 头部 -->
	<!doctype html>
<html lang="zh-cn">
<head>
	<meta charset="utf-8">
	<title><?php if(isset($meta_title)): ?><?php echo htmlentities($meta_title); ?>_<?php endif; ?><?php echo api('WEB_SITE_TITLE'); ?></title>
<link href="/im/public/index/css/base.css" rel="stylesheet" type="text/css"/>
	
	<link href="/im/public/index/css/style.css" rel="stylesheet" type="text/css"/>
	<script type="text/javascript" src="/im/public/common/jquery.min.js"></script>

  
</head>

<body>

	<!--header start-->
<div class="top">
<div class="topbar">
              <span class="welcome" style="float:left"><a href="javascript:void(0);" onclick="SetHome(this,'<?php echo root_url(); ?>')">设为首页</a>
			  <a class='line'></a>
		<a href="javascript:void(0);" onclick="AddFavorite('<?php echo api('SITENAME'); ?>',location.href)" title="<?php echo api('SITENAME'); ?>">收藏本站</a>
		</span> 	  
		
  
<ul class="topnav">
 <li class="item weixin">
				<span><a class="wx">微信商城</a></span>
					<div>
					    <h4>
						关注商城微信号</h4>
					    <img src="<?php echo api("wxcode"); ?>" width='100'> 
					</div>
				</li>		
 <li class="item line"> 		
</li>

  <li class="item">
	 	
		<span  id="userfavor"><a  href="<?php echo url('collect/index'); ?>" ><i></i>我的收藏&nbsp;</a> </span>

</li>
   <li class="item line"> 		
</li>

<li class="item"> 	
		<span  id="sell"><a  href="<?php echo url('user/index?id=6'); ?>" >个人中心&nbsp;<b></b></a> </span>
		  
  
</li> <li class="item line"> 		
</li>
 <li class="item"> 	
		<span  id="account"><a  href="<?php echo url('order/index'); ?>" >我的订单&nbsp;</a> </span>

</li><li class="item line"> 		
</li>
 <li class="item"> 	
		<a id="shop_menu"  href="<?php echo url('order/index'); ?>" >商家管理&nbsp;&nbsp;<i class="icon iconfont icon-arrow"></i></a> 

						<ul id="shop_menu_down" style="display: none;">
							<li><a href="<?php echo url('shop/step1'); ?>">招商入驻</a></li>
							<li><a href="<?php echo url('seller/user/login'); ?>">商家登录</a></li>
						</ul>
</li>
 <li class="item line"> 		
</li>	
<li class="item" ><?php if(is_login()): ?><a href="<?php echo url('User/logout'); ?>">退出</a>
</li>
 <li class="item line"> 		
</li>
<li class="item" >	<a href="" class="red">欢迎光临<?php echo api('SITENAME'); ?>,<?php echo get_username(); ?></a>
<?php else: ?>
</li>

<li class="item"> 	
 <a href="<?php echo U('User/login'); ?>" >登录</a>
 </li>
 <li class="item line"> 		
</li><li class="item">
 <a href="<?php echo url('User/register'); ?>" style="">注册</a> </li>
<?php endif; ?>
	</li>
</ul> </div></div>
	<!--/header end-->
 <script type="text/javascript">

  var oDiv3 = document.getElementById('shop_menu');
			var oDiv4 = document.getElementById('shop_menu_down');
			var timer2 = null;
			oDiv3.onmouseover = oDiv4.onmouseover = function (){	
				oDiv4.style.display = 'block';
				clearTimeout(timer2);
			
			}
			oDiv3.onmouseout = oDiv4.onmouseout = function (){
				//寮€瀹氭椂鍣�
				timer2 = setTimeout(function () { 
				oDiv4.style.display = 'none'; },300);
				oDiv3.style.background = '#f2f2f2';
			}
			
			
			
			
		 var oDiv7 = document.getElementById('wx_menu');
			var oDiv8 = document.getElementById('wx_menu_down');
			var timer5 = null;
			oDiv7.onmouseover = oDiv8.onmouseover = function (){	
				oDiv8.style.display = 'block';
				clearTimeout(timer5);
				oDiv7.style.background = '#fff';oDiv8.style.background = '#f2f2f2';
			}
			oDiv7.onmouseout = oDiv8.onmouseout = function (){
				//寮€瀹氭椂鍣�
				timer5 = setTimeout(function () { 
				oDiv8.style.display = 'none'; },100);
				oDiv7.style.background = '#f2f2f2';
			}
			
function SetHome(obj,url){

    try{

        obj.style.behavior='url(#default#homepage)';

       obj.setHomePage(url);

   }catch(e){

       if(window.netscape){

          try{

              netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");

         }catch(e){

              alert("抱歉，此操作被浏览器拒绝！\n\n请在浏览器地址栏输入“about:config”并回车然后将[signed.applets.codebase_principal_support]设置为'true'");

          }

       }else{

        alert("抱歉，您所使用的浏览器无法完成此操作。\n\n您需要手动将【"+url+"】设置为首页。");

       }

  }

}

 

//收藏本站 bbs.ecmoban.com

function AddFavorite(title, url) {

  try {

      window.external.addFavorite(url, title);

  }

catch (e) {

     try {

       window.sidebar.addPanel(title, url, "");

    }

     catch (e) {

         alert("抱歉，您所使用的浏览器无法完成此操作。\n\n加入收藏失败，请使用Ctrl+D进行添加");

     }

  }

}</script>
		<!-- 顶部工具条 结束 -->
	<!--/header end-->
<?php if($action != 'cart/index'): ?>
	<!--nav start-->
	<div class="member_wrapper">
	
	   <div class="member_header">
	   
	    <div class="center">
		
	          <div class="centlogo"> 
			 <a href="<?php echo url('index/index'); ?>"><img id="u2270_img" class="img " src="<?php echo api('home_logo'); ?>">
			  </a></div>
			   <div class="my">
			   <h2 class="">我的商城</h2>
			   <p><a href="<?php echo url('index/index'); ?>">返回首页</a></p>
			   </div> 
			   <div class="rgt">
                     <ul>
					 <li><a href="<?php echo url('index/index'); ?>">首页</a></li>
					 <li><a href="<?php echo url('user/edit'); ?>">账户设置</a></li>
					 <li><a href="<?php echo url('comment/index'); ?>">评价</a></li>
					 <li><a href="<?php echo url('message/index'); ?>">消息</a></li>
					 </ul>			   
			  </div>
		</div>
	   
	    </div>
	</div>
	<!--/nav end-->	<?php endif; ?>
	<script>
var del_url="<?php echo url('cart/delItem'); ?>";
var post_url="<?php echo url('cart/addItem'); ?>";	
var dec_url="<?php echo url('cart/decNum'); ?>";
var inc_url="<?php echo url('cart/incNum'); ?>";
var img_path="/im/public/index/images";
var order_url="<?php echo url('Order/add'); ?>";
var del_cart_url='<?php echo url("cart/delCart"); ?>';
var clear_cart_url='<?php echo url("cart/clear"); ?>';
var collect_url='<?php echo url("collect/add"); ?>';

	}</script>
<!-- 头部 --> 
	<!--crumb start-->
	<div class="crumb w100">
		<div class="crumb_in in_width">
			<p><a href="<?php echo url('index'); ?>" class="index_a">首页</a> ><span>我的订单</span></p>
		</div>
	</div>
	<!--/crumb end-->	
	<!--main start-->
	<div class="main w100 grzx_main">
		<div class="main_in in_width grzx_main_in">
			<div class="main_top">
				<div class="left_pan fl">
				
					<div class="fold_nav">
						
							<div class="fold_nav_list">
							<div class="title_div">
								<span class="span_01 fl img_05"></span>
								<span class="span_02 fl f14">账户管理</span>
							</div>
							<ul class="fold_ul">
								<li  class="<?php if($action == 'user/index'): ?>li_cur<?php endif; ?>"><a href="<?php echo url('user/index'); ?>">个人中心</a></li>
								<li  class="<?php if($action == 'user/edit'): ?>li_cur<?php endif; ?>"><a href="<?php echo url('user/edit'); ?>">账户信息</a></li>
								<li  class="<?php if($action == 'safe/index'): ?>li_cur<?php endif; ?>"><a href="<?php echo url('safe/index'); ?>">安全中心</a></li>
								<li  class="<?php if($action == 'look/index'): ?>li_cur<?php endif; ?>"><a href="<?php echo url('look/index'); ?>">我的足迹</a></li>
							
								<li  class="<?php if($action == 'collect/index'): ?>li_cur<?php endif; ?>"><a href="<?php echo url('collect/index'); ?>">我的收藏</a></li>
								<li  class="<?php if($action == 'collect/shop'): ?>li_cur<?php endif; ?>"><a href="<?php echo url('collect/shop'); ?>">店铺收藏</a></li>
								<li  class="<?php if($action == 'message/index'): ?>li_cur<?php endif; ?>"><a href="<?php echo url('message/index'); ?>">系统消息</a></li>
<li  class="<?php if($action == 'coupon/lists'): ?>li_cur<?php endif; ?>"><a href="<?php echo url('coupon/lists'); ?>">优惠券</a></li> 								
								<?php if(api('fenxiao')): ?>
								<li  class="<?php if($action == 'fenxiao/plan'): ?>li_cur<?php endif; ?>"><a href="<?php echo U('fenxiao/plan'); ?>">推广赚钱</a></li>
									
								<li class="<?php if($action == 'team/index'): ?>li_cur<?php endif; ?>"><a href="<?php echo U('team/index'); ?>">我的团队</a></li>
									<?php endif; ?>
							<li  class="<?php if($action == 'account/index'): ?>li_cur<?php endif; ?>"><a href="<?php echo url('account/index'); ?>">余额管理</a></li>	
								<li  class="<?php if($action == 'score/index'): ?>li_cur<?php endif; ?>"><a href="<?php echo url('score/index'); ?>">积分管理</a></li>
							</ul>
						</div> 
						
						<div class="fold_nav_list">
						
							<div class="title_div">
								<span class="span_01 fl img_02"></span>
								<span class="span_02 fl f14">订单管理</span>
							</div>
							<ul class="fold_ul">
								<li class="<?php if($action == 'order/index'): ?>li_cur<?php endif; ?>"><a href="<?php echo url('order/index'); ?>">我的订单</a></li>
								<!--li class="<?php if($action == 'score/index'): ?>li_cur<?php endif; ?>"><a href="<?php echo url('score/index'); ?>">积分订单</a></li-->
								<li class="<?php if($action == 'address/index'): ?>li_cur<?php endif; ?>"><a href="<?php echo url('address/index'); ?>">收货地址</a></li>
								<li  class="<?php if($action == 'comment/index'): ?>li_cur<?php endif; ?>"><a href="<?php echo url('comment/index'); ?>">商品评价</a></li>
							</ul>
						</div>
						
						
					
					</div>
				</div>

		<div class="grzx_right_pan fr">
				<h3 class="cr_h3">我的订单</h3>
			
				<div class="wddd_right_pan fr" style="margin-top:10px;">
				
					<div class="top_tab">
					<ul class="fl f14">
							<li <?php if(is_null(input('status'))): ?>class="current"<?php endif; ?>>
								<a href="<?php echo url('order/index'); ?>">全部订单(<?php echo getOrderCount(); ?>)<span></span></a>
							</li>
						<li <?php if(!is_null(input('status')) and input('status') == 0): ?>class="current"<?php endif; ?>>
								<a href="<?php echo url('order/index?status=0'); ?>">待支付(<?php echo getOrderCount(0); ?>)<span></span></a>
							</li>

							<li <?php if(input('status') == 1): ?>class="current"<?php endif; ?>>
								<a href="<?php echo url('order/index?status=1'); ?>">待发货(<?php echo getOrderCount(1); ?>)<span></span></a>
							</li>
						
							<li <?php if(input('status') == 2): ?>class="current"<?php endif; ?>>
								<a href="<?php echo url('order/index?status=2'); ?>">已发货(<?php echo getOrderCount(2); ?>)<span></span></a>
							</li>
							<li <?php if(input('status') == 3): ?>class="current"<?php endif; ?>>
								<a href="<?php echo url('order/index?status=3'); ?>">已签收(<?php echo getOrderCount(3); ?>)<span></span></a>
							</li>
					         <li <?php if(input('status') == 4): ?>class="current"<?php endif; ?>>
								<a href="<?php echo url('order/index?status=4'); ?>">已完成(<?php echo getOrderCount(4); ?>)<span></span></a>
							</li>
							  <li <?php if(input('status') == 5): ?>class="current"<?php endif; ?>>
								<a href="<?php echo url('order/index?status=5'); ?>">超时关闭(<?php echo getOrderCount(5); ?>)<span></span></a>
							</li> 
							<li <?php if(input('status') == 6): ?>class="current"<?php endif; ?>>
								<a href="<?php echo url('order/index?status=6'); ?>">已取消(<?php echo getOrderCount(6); ?>)<span></span></a>
							</li>
						</ul>
						<div class="hsz fr f12">
							
						</div>
					</div>
					<div class="tab_con">
                        <form action="<?php echo url(''); ?>" method="post" class="order_sn">
						    <input type="hidden" name="order_sn" class="order_sn"/>
						</form>
						<form action="<?php echo url(''); ?>" method="post">
							<!--div class="sear">
								<div class="sear_ipt fl">
									<input type="text"name="order_sn" placeholder="输入订单号进行搜索" id="order_sn" class="ipt_01 fl"/>
									<input type="button" class="ipt_02 fl" onclick="submitfrm();" value="订单搜索"/>
								</div>
								<div class="more fl">
									<span class="txt">更多筛选条件</span>
									<span class="icon"><img src="/im/public/index/images/wddd_icon_01.gif"></span>
								</div>
							</div-->
							<div class="sc_xl f12">
									<div class="div_03 fl">
									<label for="">订单号</label>
									<input type="text" name="order_sn"/>
								</div>
								
							    <div class="div_03 fl">
									<label for="">收件人</label>
									<input type="text" name="username"/>
								</div>
								<div class="div_03 fl">
									<label for="">手机</label>
									<input type="text" name="mobile"/>
								</div>
								<div class="div_03 fl">
									<label for="">收件地址</label>
									<input type="text" name="address"/>
								</div>
								
								
								
								<button class="sc_btn fl"type="submit">搜索</button>
							</div>
						</form>
				
						<table class="bought_table f12">
							<tbody>
								<tr>
									<th class="th_01">宝贝</th>
									<th class="th_02">单价</th>
									<th class="th_03">数量</th>
									<th class="th_04">商品操作</th>
									<th class="th_05">实付款</th>
									<th class="th_06">
										<div class="field_select">
											<div class="zt"><span class="txt">交易状态</span><span class="icon"><img src="/im/public/index/images/wddd_icon_03.gif"></span></div>
											<ul class="down_list">
												<li class="current"><a href="javascript:;">交易状态</a></li>
												<li><a href="javascript:;">交易状态</a></li>
												<li><a href="javascript:;">交易状态</a></li>
											</ul>
										</div>
									</th>
									<th class="th_07">交易操作</th>
								</tr>
							</tbody>
						</table>
						<?php if(!(empty($res['list']) || (($res['list'] instanceof \think\Collection || $res['list'] instanceof \think\Paginator ) && $res['list']->isEmpty()))): ?>
						<div class="sle_all f12">
							<label for="">
								<input type="checkbox" class="check-all"/>
								<span class="date">全选</span>
								<a  onclick='confirmAll();' class="pl">批量确认收货</a>
							</label>
							
						</div>						
			           <?php if(is_array($res['list']) || $res['list'] instanceof \think\Collection || $res['list'] instanceof \think\Paginator): $i = 0; $__LIST__ = $res['list'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
						<div class="bought_list f12">
							<table class="top_table">
								<tbody>
									<tr>
										<td class="td_01">
											<input type="checkbox" class="ids" value="<?php echo htmlentities($vo['id']); ?>" />
											<span class="date"><?php echo htmlentities(date('Y-m-d H:i',!is_numeric($vo['create_time'])? strtotime($vo['create_time']) : $vo['create_time'])); ?></span>
											<span class="dd_nm">订单号: <?php echo htmlentities($vo['order_code']); ?></span>
										</td>
										<td class="td_02">
										店铺:<?php echo htmlentities(get_shop($vo['shop_id'],"title")); ?>
										</td>
										<td class="td_03">
										
									   </td>
										<td class="td_05 red">
										<?php if($vo['status'] > 2): ?><a onclick="delOrder(<?php echo htmlentities($vo['id']); ?>)"></a><?php endif; ?>
										</td>
									</tr>
								</tbody>
							</table>
							<table class="del_table ">
								<tbody>
									<tr>
										<td class="td_01">
											<?php if(is_array($vo['sales']) || $vo['sales'] instanceof \think\Collection || $vo['sales'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['sales'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo1): $mod = ($i % 2 );++$i;?>
											<div class="con">
												<div class="div_01 fl">
													<a href="<?php echo url('Goods/detail?id='.$vo1['goods_id']); ?>" class="pic fl"><img src="<?php echo htmlentities(get_goods_cover($vo1['goods_id'])); ?>" width="80" height="80"></a>
													<div class="info fl">
														<a href="<?php echo url('Goods/detail?id='.$vo1['goods_id']); ?>" class="name"><?php echo htmlentities($vo1['title']); ?></a>
														<p class="color"><?php if(!(empty($vo1['specifications']) || (($vo1['specifications'] instanceof \think\Collection || $vo1['specifications'] instanceof \think\Paginator ) && $vo1['specifications']->isEmpty()))): ?>规格：<?php echo $vo1['specifications']; else: ?> <?php endif; ?></p>
														
													</div>
												</div>
												<div class="div_02 fl">
													
													<p class="new">￥<?php echo htmlentities($vo1['price']); ?></p>
												</div>
												<div class="div_03 fl">
													<span><?php echo htmlentities($vo1['num']); ?></span>
												</div>
												<div class="div_04 fl">
												 <?php if($vo1['status'] == 0): ?>
												  无
												   <?php endif; if($vo1['status'] == 1): ?>
												  无
												   <?php endif; if($vo1['status'] == 2): ?>
												  无
												   <?php endif; if($vo1['status'] == 3): ?>
												  <a href="<?php echo url('service/applyreturn?id='.$vo1['id']); ?>" class="sh">退货</a>
												   <?php endif; if($vo1['status'] == 4): ?>
												  <a href="<?php echo url('service/applyreturn?id='.$vo1['id']); ?>" class="sh">处理中</a>
												  <?php endif; if($vo1['status'] == 5): ?>
												  <a href="<?php echo url('service/applyreturn?id='.$vo1['id']); ?>" class="sh">已完成</a>
												   <?php endif; if($vo1['comment_status'] == 7): ?>
												<a href="<?php echo url('comment/write?id='.$vo1['id']); ?>" class="ts">评价</a>
												<?php endif; if($vo1['comment_status'] == 2): ?>已评价<?php endif; ?>
										
												</div>
											</div>
											<?php endforeach; endif; else: echo "" ;endif; ?>										
										</td>										
										<td class="td_02">
											<p class="total">￥<?php echo htmlentities($vo['total_money']); ?></p>
											<p class="yf">(含运费：￥<?php echo htmlentities($vo['ship_price']); ?>)</p>
											<?php if($vo['type'] == 1): ?><div class="phone">手机订单</div><?php endif; ?>
										</td>
										<td class="td_03">
										<a href="javascript:;" class="jycg">
										<?php if($vo['status'] == 0): ?>待支付<?php endif; if($vo['status'] == 1): ?>待发货<?php endif; if($vo['status'] == 2): ?>已发货<?php endif; if($vo['status'] == 3): ?>已确认<?php endif; if($vo['status'] == 4): ?>申请取消中<?php endif; if($vo['status'] == 5): ?>超时关闭<?php endif; if($vo['status'] == 6): ?>订单已取消<?php endif; ?>
										</a></br>
											<a href="<?php echo url('order/detail?id='.$vo['id']); ?>" class="ddxq">订单详情</a>
											
											
										</td>
										<td class="td_04">
										<?php if($vo['status'] == 0): ?><a class="btn-active" href="<?php echo url('order/pay?id='.$vo['id']); ?>" >前去支付</a><?php endif; if($vo['status'] == 2): ?><a class="btn-active"onclick='confirmOrder(<?php echo htmlentities($vo['id']); ?>);' >确认收货</a>
        <?php endif; ?>
										
										</td>
									</tr>
								</tbody>
							</table>
						</div>
						<?php endforeach; endif; else: echo "" ;endif; else: ?>
						    <span style="text-align:center;width:100%;display:block;">无数据！</span>
						<?php endif; ?>
						<div class="page_div page">
							<?php echo $res['page']; ?>
							
						</div>	
					</div>
					
						
					</div>
				</div>	
			</div>		
				
				
			</div>			
		</div>
	</div>
	<!--/main end-->	
	
		<!--footer  start-->
	<div class="footer w100">
		<div class="footer_in in_width f14">
			<div class="footer_title">
				<ul>
					<li class="qa">
						<span class="left_icon">优</span>
						<div class="right_div">
							<div class="right_div_t_cn">品质保障</div>
							<div class="right_div_t_en">Quality Assurance</div>
						</div>
					</li>
					<li class="wr">
						<span class="left_icon">七</span>
						<div class="right_div">
							<div class="right_div_t_cn">七天无理由退换货</div>
							<div class="right_div_t_en">Without Reason</div>
						</div>
					</li>
					<li class="csr">
						<span class="left_icon">特</span>
						<div class="right_div">
							<div class="right_div_t_cn">特色服务体验</div>
							<div class="right_div_t_en">Characteristic Service Experience</div>
						</div>
					</li>
					<li class="hc">
						<span class="left_icon">帮</span>
						<div class="right_div">
							<div class="right_div_t_cn">帮助中心</div>
							<div class="right_div_t_en">Help Center</div>
						</div>
					</li>
				</ul>
			</div>
			<div class="footer_site_info">
				 <?php if(is_array($footer) || $footer instanceof \think\Collection || $footer instanceof \think\Paginator): $i = 0; $__LIST__ = $footer;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
				 <ul class="footer_site_info_ul">
					<li><a href="<?php echo U('help/index?id='.$vo['id']); ?>"><?php echo htmlentities($vo['title']); ?></a></li>
					 <?php if(is_array($vo['ids']) || $vo['ids'] instanceof \think\Collection || $vo['ids'] instanceof \think\Paginator): $i = 0; $__LIST__ = $vo['ids'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo1): $mod = ($i % 2 );++$i;?> 
					<li><a href="<?php echo U('help/index?id='.$vo['id']); ?>"><?php echo htmlentities($vo1['title']); ?></a></li>
					<?php endforeach; endif; else: echo "" ;endif; ?>
				</ul>
               <?php endforeach; endif; else: echo "" ;endif; ?> 
			   <ul class="footer_site_info_ul">
					<img src="<?php echo api('gzh'); ?>" WIDTH="100"><P>微信扫一扫关注</P>
				</ul>
				
			</div>
		</div>
	</div>
	<!--/footer  end-->
	<span class="copyright" style="">@2014-2017
	   <a href="http://bycms.com">bymall</a> 版权所有 <?php echo api('isp'); ?></span>
<script type="text/javascript" src="/im/public/common/layer/layer.js"></script>

<script type="text/javascript">

	function opensuccess(data){
			  
				   layer.alert(data.msg, {
                            icon: 1,
                             skin: 'layer-ext-moon' //该皮肤由layer.seaning.com友情扩展。关于皮肤的扩展规则，去这里查阅
                     });
				//$(".alert_success").parents(".mask").removeClass("none"); 
			   setTimeout(function(){
                        if (data.url) {
                          location.href=data.url;
                        }
               },1000);
				
			}
			function openerror(data){
			      layer.alert(data.msg, {
                            icon: 2,
                             skin: 'layer-ext-moon' //该皮肤由layer.seaning.com友情扩展。关于皮肤的扩展规则，去这里查阅
                     })  ; 
					 setTimeout(function(){
                        if (data.url) {
                          location.href=data.url;
                        }
               },1000);
			}
</script>
<div id="fullbg"></div>

<div class="login_div" style="display:;"><span class="header">您尚未登录</span>
						<i class="arrow" onclick="closeBg()"></i>
						<form id="login_form">
							<div class="list">
								<div class="icon icon_02 fl"><div></div></div>
								<input type="text" name="mobile" class="ipt_01 fl" placeholder="手机号/用户名/邮箱">
							</div>
							<div class="list">
								<div class="icon icon_03 fl"><div></div></div>
								 <input type="text" name="password" placeholder="密码" class="ipt_01 fl">
							</div>
							<div class="last">
								<div class="list fl">
									<div class="icon icon_04 fl"><div></div></div>
									<input type="text" name="verify" placeholder="验证码" class="ipt_02 fl">
								</div>
								<div class="yzm fl"><img  class="verifyimg reloadverify" src="" width="80"></div>
							</div>
							<p class="errmsg"></p> <input type="hidden" name="type" value="1" placeholder="密码" class="ipt_01 fl">
							<input type="submit" id="submain" class="submit f14" value="登录">
							<p  class="reg"><a href="<?php echo url('user/register'); ?>"class="f1">注册</a><a href="<?php echo url('user/forget'); ?>"class="fr">忘记密码?</a></p>
						</form>
					</div>
<script type="text/javascript">

	$("#submain").click(function(){
    		var self =$('#login_form');
			var url="<?php echo url('user/login'); ?>"
    		$.post(url, self.serialize(), success, "json");
    		return false;

    		function success(data){
    			if(data.code){
    				  $(".errmsg").html(data.msg);window.location.reload();
    			} else {
    			     $(".errmsg").html(data.msg);$(".errmsg").css("visibility",'visible');
    				//刷新验证码
    				$(".reloadverify").click();
    			}
    		}
    	});		

//显示灰色 jQuery 遮罩层
function showBg() { 
	$(".login_div").fadeIn();
    var bh = $("body").height();
    var bw = $("body").width();
	
    $("#fullbg").css({
        height:bh,
        width:bw,
        display:"block"
    });
  
}
var is_login="<?php echo is_login(); ?>";
//关闭灰色 jQuery 遮罩
function closeBg() {
    $("#fullbg,.login_div").hide(); 
	$(".quick_links_wrap").removeClass("w320");
}

		    var verifyimg = $(".verifyimg").attr("src");
            $(".reloadverify,.reloadverify_a").click(function(){
			
               if( verifyimg.indexOf('?')>0){
                    $(".verifyimg").attr("src", verifyimg+'&random='+Math.random());
                }else{
                    $(".verifyimg").attr("src", verifyimg.replace(/\?.*$/,'')+'?'+Math.random());
                }
            });


	  </script>

<script type="text/javascript" src="/im/public/index/js/common.js"></script>


	   <div class="mask none">
			<div class="alert_success alert_div">
				<div class="alert_header">提示</div>
				<div class="alert_content"><i></i><span class="sucess_msg">操作成功</span></div>
				<div class="alert_btn">确定</div>
				<span class="alert_close"></span>
			</div>
		</div>
		<div class="mask none">
			<div class="alert_error alert_div">
				<div class="alert_header">提示</div>
				<div class="alert_content"><i></i><span class="error_msg">操作失败</span></div>
				<div class="alert_btn">确定</div>
				<span class="alert_close"></span>
			</div>
		</div>
 <script type="text/javascript" src="/im/public/index/js/laydate/laydate.js"></script>	
 <script type="text/javascript">
	$("select[name='status']").val("<?php echo htmlentities((isset($info['status']) && ($info['status'] !== '')?$info['status']:'1')); ?>");
	$("select[name='type']").val("<?php echo htmlentities((isset($info['type']) && ($info['type'] !== '')?$info['type']:'0')); ?>");
	$("select[name='pay_type']").val("<?php echo htmlentities((isset($info['pay_type']) && ($info['pay_type'] !== '')?$info['pay_type']:'1')); ?>");	
	$("select[name='is_invoice']").val("<?php echo htmlentities((isset($info['is_invoice']) && ($info['is_invoice'] !== '')?$info['is_invoice']:'0')); ?>");
	laydate({
		elem: '#start_time', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎，因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
	    format: 'YYYY-MM-DD hh:mm:ss', 
	    min: laydate.now(), //设定最小日期为当前日期//目标元素。由于laydate.js封装了一个轻量级的选择器引擎，因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
	    event: 'focus' //响应事件。如果没有传入event，则按照默认的click
	});
   laydate({  
  
    elem: '#end_time', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎，因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
     format: 'YYYY-MM-DD hh:mm:ss', 
     min: laydate.now(), //设定最小日期为当前日期//目标元素。由于laydate.js封装了一个轻量级的选择器引擎，因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
     event: 'focus' //响应事件。如果没有传入event，则按照默认的click
   });

	$(".mask .alert_div .alert_close").click(function(){
		$(this).parents(".mask").addClass("none");
	});
	$(".mask .alert_div .alert_btn").click(function(){
		$(this).parents(".mask").addClass("none");
	});
	$(".tjpj").click(function(){
		  opensuccess();
	})
	
	
	function confirmOrder(id){
			var url="<?php echo url('order/confirm'); ?>";
		      $.post(url,{id:id},function(data){
  
					 if(data.code){  
					     opensuccess(data);
					 }
					 else{
					      openerror(data);
					 }
              });
		  
		}
	 function delOrder(id){
			 var url="<?php echo url('order/del'); ?>";
		      $.post(url,{id:id},function(data){
					 if(data.code){  
					     opensuccess(data);
					 }
					 else{
					      openerror(data);
					 }
              });
		  
	 }	
	 function submitfrm(){
	    var order_sn=$("input#order_sn").val();
        $("input.order_sn").val(order_sn);
		$("form.order_sn").submit();
		  
	}
	function confirmAll(id){
	  var ids=getIds();
			var url="<?php echo url('order/confirm'); ?>";
		      $.post(url,{id:ids},function(data){
					 if(data.code){  
					     opensuccess(data);
					 }
					 else{
					      openerror(data);
					 }
              });
		  
		}
	  function getIds(){ //取值
		    var option = $("input.ids");
		    var result=new Array();
		    option.each(function(i){
		 	     result.push($(this).val());
		   });
           return result.join(',');
        
	  }			

	$(function(){
		//tab_ul
		
		$('.grzx_main_in .wddd_right_pan .tab_con').eq(0).show();
		$('.grzx_main_in .wddd_right_pan .top_tab ul li').click(function(){
			$(this).addClass('current').siblings().removeClass('current');
			var this_index =$(this).index();				
			$('.grzx_main_in .wddd_right_pan .tab_con').eq(this_index).show().siblings('.tab_con').hide();
		});
				
		//展开更多信息
		$('.grzx_main_in .wddd_right_pan .tab_con .sear .more').click(function(){
			if($(this).children('.icon').children('img').attr('src').match('wddd_icon_01')){
				$(this).children('.icon').children('img').attr('src','/im/public/index/images/wddd_icon_02.gif');
				$('.grzx_main_in .wddd_right_pan .tab_con .sc_xl').show();
			}else{
				$(this).children('.icon').children('img').attr('src','/im/public/index/images/wddd_icon_01.gif');
				$('.grzx_main_in .wddd_right_pan .tab_con .sc_xl').hide();					
			}
		});
					
		//交易状态
		$('.grzx_main_in .wddd_right_pan .tab_con .bought_table .th_06 .field_select .zt').click(function(){
			if($(this).children('.icon').children('img').attr('src').match('wddd_icon_03')){
				$(this).children('.icon').children('img').attr('src','/im/public/index/images/wddd_icon_04.gif');
				$('.grzx_main_in .wddd_right_pan .tab_con .bought_table .th_06 .field_select .down_list').show();
			}else{
				$(this).children('.icon').children('img').attr('src','/im/public/index/images/wddd_icon_03.gif');
				$('.grzx_main_in .wddd_right_pan .tab_con .bought_table .th_06 .field_select .down_list').hide();					
			}
		});
		$('.grzx_main_in .wddd_right_pan .tab_con .bought_table .th_06 .field_select .down_list li').click(function(){
			$(this).addClass('current').siblings().removeClass('current');
		});
		//sle_all
		$('.grzx_main_in .wddd_right_pan .tab_con .sle_all .btns button').click(function(){
			$(this).addClass('current').siblings().removeClass('current');
		});	
		//sle_all_01
		$('.grzx_main_in .wddd_right_pan .tab_con .sle_all_01 .btns button').click(function(){
			$(this).addClass('current').siblings().removeClass('current');
		});	
		//page
		$('.grzx_main_in .wddd_right_pan .tab_con .page_div .con .page_ul li').click(function(){
			$(this).addClass('current').siblings().removeClass('current');
		});
		
	//全选的实现
	$(".check-all").click(function(){
		$(".ids").prop("checked", this.checked);
		
	});
	$(".ids").click(function(){
		var option = $(".ids");
		option.each(function(i){
			if(!this.checked){
				$(".check-all").prop("checked", false);
				return false;
			}else{
				$(".check-all").prop("checked", true);
			}
		});
       
	});
		
	})
	</script>
</body>
</html>
