footer_nav.html 10.3 KB
<?php $ft=time();if($fcustom_footer!="public/empty"):?>
   <include file="$fcustom_footer"/><input id="{$ft}" type="hidden">
<?php else:?>
	<style type="text/css">
		/*修改 left,width   20170327*/

		.qqkefu {
			position: fixed;
			left: 20%;
			bottom: 50px;
			background-color: #fff;
			border: 1px #eee solid;
			width: 20%;
			z-index: 999;
		}

		.qqkefu ul li {
			border-bottom: 1px #eee solid;
			height: 45px;
			line-height: 45px;
			font-size: 16px;
			color: #666;
			width: 100%;
			text-align: center;
			background-position: .1rem center;
			overflow: hidden;
		}
		.layermchild {
			width: 80%;
			position: relative;
			border-radius: 8px;
			-webkit-border-radius: 8px;
			-moz-border-radius: 8px;
			text-align: left;
		}

		.vf_1{background: url(__STATIC__/images/all/index.png) no-repeat center center;background-size: 25px 25px;}
		.vf_2{background: url(__STATIC__/images/all/fl.png) no-repeat center center;background-size: 25px 25px;}
		.vf_3{background: url(__STATIC__/images/all/fx.png) no-repeat center center;background-size: 25px 25px;}
		.vf_4{background: url(__STATIC__/images/all/car.png) no-repeat center center;background-size:25px 25px;}
		.vf_5{background: url(__STATIC__/images/all/user.png) no-repeat center center;background-size:95%;}




		.vf_1.on{
			background: url(__STATIC__/images/all/index_on.png) no-repeat center center;
			background-size: 25px 25px;
		}
		.vf_2.on{
			background: url(__STATIC__/images/all/fl_on.png) no-repeat center center;
			background-size: 25px 25px;
		}
		.vf_3.on{
			background: url(__STATIC__/images/all/fx_on.png) no-repeat center center;
			background-size: 25px 25px;
		}
		.vf_4.on{
			background: url(__STATIC__/images/all/car_on.png) no-repeat center center;
			background-size: 25px 25px;
		}
		.vf_5.on{
			background: url(__STATIC__/images/all/user_on.png) no-repeat center center;
			background-size: 95%;
		}

		.c-r{
			color: #f13130;
		}
	</style>
	<div style="height:50px; line-height:50px; clear:both;"></div>
	<div class="v_nav">
		<div class="vf_nav">
			<ul>
				<li>
					<a href="{:U('Index/index',array('stoid'=>$Think.request.stoid))}">
						<i class="vf_1 <?php if('index/index'==get_path()): ?>on<?php endif; ?>"></i>
						<span class="<?php if('index/index'==get_path()): ?>c-r<?php endif; ?>">首页</span></a>
				</li>
				<!--<li><a href="javascript:void(0)" onclick="showQQList()">
					<i class="vf_2"></i>
					<span>客服</span></a></li>-->
				<li>
					<a href="{:U('Goods/categoryList',array('stoid'=>$Think.request.stoid))}">
						<i class="vf_2 <?php if('goods/categorylist'==get_path()): ?>on<?php endif; ?>"></i>
						<span class="<?php if('goods/categorylist'==get_path()): ?>c-r<?php endif; ?>">分类</span></a>
				</li>
				<li onclick="show()">
					<a >
						<i class="vf_3 <?php if('distribut/index'==get_path()): ?>on<?php endif; ?>"></i>
						<span class="<?php if('distribut/index'==get_path()): ?>c-r<?php endif; ?>">分销</span></a>
				</li>
				<li>
					<a href="{:U('Cart/cart',array('stoid'=>$Think.request.stoid))}">
						<em class="global-nav__nav-shop-cart-num" id="cart_quantity_red" style="right:9px;"></em>
						<i class="vf_4 <?php if('cart/cart'==get_path()): ?>on<?php endif; ?>"></i>
						<span class="<?php if('cart/cart'==get_path()): ?>c-r<?php endif; ?>">购物车</span>
					</a>
				</li>
				<li>
					<a href="<?php echo '/index.php/Mobile/User/index/stoid/'.I('stoid') ?>">
						<i class="vf_5 <?php if('user/index'==get_path()): ?>on<?php endif; ?>"></i>
						<span class="<?php if('user/index'==get_path()): ?>c-r<?php endif; ?>">我的</span></a>
				</li>
			</ul>
		</div>
	</div>

	<!--规则弹窗-->
	<div class="guize layermbox dn">
		<div class="laymshade"></div>
		<div class="layermmain">
			<div class="section">
				<div class="layermchild  layermanim">
					<div class="layermcont" style="padding: 0;">
						<div class="rule">
							<div class="ruleClose" onclick="closeRule()"></div>
							<p class="ruleTit">分销规则说明</p>
							<ul class="ruleTxt">
								<li id="buy_money" style="border-left: 1px dotted #ffd943;">
									<div class="car"></div>
									<div id="f_conditon_c">在商城里进行购<span class="cr">满299元</span>即可成为分销商</div>
								</li>
								<li>
									<div class="fx"></div>
									成功成为{$tpshop_config['shop_info_store_title']}分销商分享商品给好友即可获得相应收益
								</li>
							</ul>
							<div id="condition_explain" class="explain">
								*我是说明我是说明我是说明我是说明我是说明我是说明我是说明我是说明我是说明我是说明我是说明我是说明我是说明
							</div>
							<div class="goumai" onclick="goumai(this)" gid="">去购买</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

<div class="layermbox fxs dn">
	<div class="laymshade"></div>
	<div class="layermmain">
		<div class="section">
			<div class="layermchild  layermanim">
				<div class="layermcont" style="padding: 0;">
					<div class="rule">
						<div class="ruleClose" onclick="closeRule()"></div>
						<p class="ruleTit">提示</p>
						<div>
							<img src="__STATIC__/images/user/fenxiao.png" style="width: 50%;" />
							<p style="margin: 20px auto;color: #60585c">商家暂时未开启分销,敬请期待哦!</p>
						</div>

					</div>
				</div>
			</div>

		</div>
	</div>
</div>

<div class="layermbox nfxfull dn">
	<div class="laymshade"></div>
	<div class="layermmain">
		<div class="section">
			<div class="layermchild  layermanim">
				<div class="layermcont" style="padding: 0;">
					<div class="rule">
						<div class="ruleClose" onclick="closeRule()"></div>
						<p class="ruleTit">提示</p>
						<div>
							<img src="__STATIC__/images/user/fenxiao.png" style="width: 50%;" />
							<p style="margin-top:25px; line-height: 0;
							   height: 10px;color: #60585c" id="sjmsg"></p>
							<p style="margin-bottom:30px;color: #60585c">请联系商家升级!</p>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>


<input id="stoid" type="hidden" value="{$Think.request.stoid}">
	<div class="qqkefu dn">
		<ul id="fqqlist"></ul>
	</div>
	<script type="text/javascript">
		var qqlist = "{$tpshop_config['qqlist']}";
		$(document).ready(function() {
 			var cart_cn = '';
			$.ajax({
				type: "GET",
				url: "/index.php?m=Mobile&c=Cart&a=getNum&stoid=" + $("#stoid").val(), //+tab,
				success: function(data) {
                    cart_cn = parseInt(data);
					$('#cart_quantity_red').html(cart_cn);
				},error:function () {
                    $('#cart_quantity_red').html("0");
                }
			});

			if (qqlist != undefined && qqlist != "") {
				var list = qqlist.split(",");
				var htm = "";
				for (var i = 0; i < list.length; i++) {
					htm += "<li><a target='_blank' href='http://wpa.qq.com/msgrd?v=3&uin=" + list[i] + "&site=qq&menu=yes'>客服" + (i + 1) + "<a></li>"
				}
				$("#fqqlist").html(htm);
			}
		});

		function showQQList() {
			$(".qqkefu").fadeToggle();
		}
		//弹窗
		function show(){
			$.ajax({
				type: "GET",
				url: "/index.php?m=Mobile&c=User&a=is_distribut&stoid=" + $("#stoid").val(), //+tab,
				success: function(data) {
				    /*----
					if(data.status==1){
						window.location.href="{:U('Distribut/index',array('stoid'=>$Think.request.stoid))}";
					}
					else{
						$("#condition_money").text("满"+data.data.condition_money+"元");
						$("#condition_explain").text(data.data.condition_explain);
						$(".fgzf.layermbox").show();
					}----*/

                    switch (data.status)
                    {
                        case -1:
                            window.location.href = "{:U('user/login',array('stoid'=>$Think.request.stoid))}";
                            break;
                        case 1:
                            window.location.href = "{:U('Distribut/index',array('stoid'=>$Think.request.stoid))}";
                            break;
                        case 2:
                            var htm='在商城里进行购买<span class="cr">'+ data.data.condition_goods_name + '</span>即可成为分销商';
                            $("#f_conditon_c").html(htm);
                            $('.goumai').attr('gid',data.data.condition_goods_id);
                            $("#condition_explain").text(data.data.condition_explain);
                            $(".guize").removeClass("dn");
                            $(".guize").show();
                            break;
                        case 3:
                            var htm='在商城里进行购买满<span class="cr">' +data.data.condition_money + '</span>或者购买<span class="cr">' + data.data.condition_goods_name + '</span>即可成为分销商';
                            $("#f_conditon_c").html(htm);
                            $('.goumai').attr('gid',data.data.condition_goods_id);
                            $("#condition_explain").text(data.data.condition_explain);
                            $(".guize").removeClass("dn");
                            $(".guize").show();
                            break;
                        case 0:
                            var htm='在商城里进行购买满<span class="cr">' + data.data.condition_money + '</span>即可成为分销商';
                            $("#f_conditon_c").html(htm);
                            $("#condition_explain").text(data.data.condition_explain);
                            $(".guize").removeClass("dn");
                            $(".guize").show();
                            break;
                        case -2://未启用
                            $(".fxs").removeClass("dn");
                            $(".fxs").show();
                            break;
                        case -3://会员已满
                            $(".nfxfull").removeClass("dn");
                            $(".nfxfull").show();
                            $("#sjmsg").text(data.msg)
                            break;
                    }
				}
			});
		}
		//关闭弹窗
		function closeRule(){
            $(".guize").hide();$(".fxs").hide();$(".nfxfull").hide();
		}
		//购买
		function goumai(ob){
		    var gid=$(ob).attr('gid');

		    if(gid!=""){
                window.location.href="/index.php/mobile/goods/goodsInfo/stoid/{$Think.request.stoid}/id/"+gid;
			}else{
                window.location.href="{:U('Index/index',array('stoid'=>$Think.request.stoid))}";
			}
		}
	</script>

<?php endif?>