
</br>

{wc:php:start}
	$foot = '';

	if( ROUTE_C == 'home' || ROUTE_C == 'user' ){
		$foot = 'display:none;';
	}
{wc:php:end}

<style>

</style>

{wc:php:start}
	$f_home = '';
	$f_whole = '';
	$f_jiexiao = '';
	$f_car = '';
	$f_personal = '';

	if( ROUTE_C == 'home' || ROUTE_C == 'user' ){
		$f_personal = 'cur';
	}else if( ROUTE_C == 'mobile' && ROUTE_A == 'init'){
		$f_home = 'cur';
	}else if( ROUTE_C == 'mobile' && ROUTE_A == 'glist'){
		$f_whole = 'cur';
	}else if( ROUTE_C == 'mobile' && ROUTE_A == 'lottery'){
		$f_jiexiao = 'cur';
	}else if( ROUTE_C == 'cart'){
		$f_car = 'cur';
	}
{wc:php:end}
<footer class="aui-nav" id="aui-footer">

        <ul class="aui-bar-tab" >

            <li class="{wc:$tabbar1}" id="tabbar1" >
			<a href="{WEB_PATH}/mobile/mobile/">
                <span class="aui-iconfont aui-icon-home"></span>

                <p>首页</p>
			</a>
            </li>

            <li class="{wc:$tabbar2}" id="tabbar2">
			<a href="{WEB_PATH}/mobile/mobile/glist">
                <span class="aui-iconfont aui-icon-selection"></span>

                <p>商品</p>
			</a>
            </li>

            <li class="{wc:$tabbar3}" id="tabbar3">
			<a href="{WEB_PATH}/mobile/mobile/lottery">
                <span class="aui-iconfont aui-icon-camera"></span>

                <p>揭晓</p>
			</a>
            </li>

            <li class="{wc:$tabbar4}" id="tabbar4">
			<a href="{WEB_PATH}/mobile/cart/cartlist">
                <span class="aui-iconfont aui-icon-cart" style="position: relative;">
					<b style="display: block; background: rgba(255, 0, 0, 0.72) none repeat scroll 0% 0%; padding: 1px; width: 14px; height: 16px; line-height: 16px; border-radius: 16px; top: 2px; right: -8px; font-family: Arial; text-align: center; font-size: 12px; overflow: hidden; color: rgb(255, 255, 255); position: absolute;" id="cartnum">0</b>
				</span>

                <p>清单</p>
			</a>
            </li>
            <li class="{wc:$tabbar5}" id="tabbar5">
			<a href="{WEB_PATH}/mobile/home">
                <span class="aui-iconfont aui-icon-my"></span>

                <p>我的</p>
			</a>
            </li>

        </ul>
</footer>
<script type="text/javascript">

$.getJSON('{WEB_PATH}/mobile/ajax/cartnum',function(data){
					var num = data.num;
			document.getElementById("cartnum").innerHTML=num;
			
		});
</script>
