mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-26 04:50:16 +00:00
29 lines
1.1 KiB
HTML
29 lines
1.1 KiB
HTML
<div style="height:.92rem;"></div>
|
|
<?php
|
|
$request = \think\Request::instance();
|
|
$now_c = $request->controller();$now_a = $request->action();
|
|
$menu = [
|
|
['c'=>'Index','a'=>'index','name'=>'店铺主页','class'=>'home'],
|
|
['c'=>'Store','a'=>'category','name'=>'商品分类','class'=>'sort'],
|
|
['c'=>'Store','a'=>'cart','name'=>'购物车','class'=>'car'],
|
|
['c'=>'Service','a'=>'service_list','name'=>'联系卖家','class'=>'server'],
|
|
['c'=>'My','a'=>'index','name'=>'我的','class'=>'user'],
|
|
];
|
|
?>
|
|
<footer class="common-footer flex border-1px" ref="storeMenu" @touchmove.prevent>
|
|
{volist name="menu" id="vo"}
|
|
<?php
|
|
if(strtolower($now_c) == strtolower($vo['c']) && strtolower($now_a) == strtolower($vo['a'])){
|
|
$href = 'javascript:void(0);';
|
|
$checked = true;
|
|
}else{
|
|
$href = Url($vo['c'].'/'.$vo['a']);
|
|
$checked = false;
|
|
}
|
|
?>
|
|
<a class="{$vo.class} <?php if($checked){echo' on ';} ?>" href="{$href}">
|
|
<span class="footer-icon icon"></span>
|
|
<p>{$vo['name']}</p>
|
|
</a>
|
|
{/volist}
|
|
</footer> |