<?php /*a:5:{s:85:"F:\wpf\WpfApp1\WpfApp1\bin\x64\Debug\web\im\application\index\view\collect\index.html";i:1590201645;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="javascript:;" class="index_a">首页</a> ><span>我的收藏</span></p>
		</div>
	</div>
	<!--/crumb end-->	
	<!--main start-->
	<div class="main w100 grzx_main mem">
		<div class="main_in in_width grzx_main_in">
						<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 member">
			
				
					<div class="sc_div" style="margin-top:0;">
			     	  <h4 class="tit_02">我的收藏</h4>
					   <?php if(!(empty($res['list']) || (($res['list'] instanceof \think\Collection || $res['list'] instanceof \think\Paginator ) && $res['list']->isEmpty()))): ?>
					  <ul> <?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;?>
					  
								<li>
									<a href="<?php echo url('Goods/detail?id='.$vo['goods_id']); ?>" class="pic fl"><img src="<?php echo htmlentities(get_goods_cover($vo['goods_id'])); ?>"/></a>
									
										<div class="name">
										
											<a href="<?php echo url('Goods/detail?id='.$vo['goods_id']); ?>"><?php echo htmlentities(substr_cn(get_goods($vo['goods_id'],"title"),"19")); ?></a>
										</div>
										<div class="pri">
										
											<a href="<?php echo url('Goods/detail?id='.$vo['goods_id']); ?>"><?php echo htmlentities((get_goods($vo['goods_id'],'price') ?: '0')); ?></a>
										</div>
										
										<img  onclick="cancelCollect(<?php echo htmlentities($vo['id']); ?>);" class="close"src="<?php echo getResource(); ?>images/error.png"	>				
								</li>
								
								<?php endforeach; endif; else: echo "" ;endif; ?>	
                   
					  </ul> <?php else: ?>
								<div class="empty"><img src="<?php echo getResource(); ?>images/kong.jpg"><p class="message"> 当前还未添加收藏<p></div>
					   <?php endif; ?>
					 </div>
			
					<?php echo $res['page']; ?>
				
					<script type="text/javascript">
		function  cancelCollect(id){ 
   if(confirm('确认取消吗')){
	  $.ajax({
		type:'post', //传送的方式,get/post
		url:'<?php echo url("collect/delete"); ?>', //发送数据的地址
		data:{id:id},
		dataType: "json",
		success:function(data){	
			if(data.code){
				//取消成功
			    window.location.reload();
			 }
			else{
				alert('删除失败！');	
			}
	      
		 }
	 })	
	}
}
	</script>
				
			</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>


	

</body>
</html>
