You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
zhishifufei_php/application/wap/view/first/public/store_menu.html

50 lines
2.3 KiB

<!-- +---------------------------------------------------------------------- -->
<!-- | 天诚科技 [ 刘海东 17600099397赋能开发者,助力企业发展 ] -->
<!-- +---------------------------------------------------------------------- -->
<!-- | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved. -->
<!-- +---------------------------------------------------------------------- -->
<!-- | Licensed 该系统并不是自由软件,未经许可不能去掉相关版权 -->
<!-- +---------------------------------------------------------------------- -->
<!-- | Author:甘肃天诚志信电子商务有限公司 刘海东 联系电话维系17600099397 -->
<!-- +---------------------------------------------------------------------- -->
<footer id="footer" class="acea-row row-middle" style="z-index: 2" ref="storeMenu" @touchmove.prevent>
{volist name="menus" id="vo"}
<?php
$https = "/^https:[\/]{2}[a-z]+[.]{1}[a-z\d\-]+[.]{1}[a-z\d]*[\/]*[A-Za-z\d]*[\/]*[A-Za-z\d]*/";
if(preg_match($https,$vo['url'])){
$pageURL = 'https://';
}else{
$pageURL = 'http://';
}
if($_SERVER["REQUEST_URI"]=='/'){
$_SERVER["REQUEST_URI"]='/wap/index/index.html';
}
$pageURL.=$_SERVER['SERVER_NAME'].$_SERVER["REQUEST_URI"];
$page=parse_url($pageURL);
if(array_key_exists('path',$page)){
$page=parse_url($pageURL)['path'];
}else{
$page='/wap/index/index.html';
}
$afferent=parse_url($vo['url']);
if(array_key_exists('path',$afferent)){
$afferent=parse_url($vo['url'])['path'];
}else{
$afferent='#';
}
if(strpos($page,'.html')===false) $page=$page.'.html';
if(strpos($afferent,'.html')===false) $afferent=$afferent.'.html';
if($page==$afferent){
$href = 'javascript:void(0);';
$checked = true;
}else{
$href =$vo['url'];
$checked = false;
}
?>
<a class="<?php if($checked){echo ' on ';} ?>" href="{$href}">
<div class="pictrue"><img src="{if $checked}{$vo.class}{else}{$vo.hove_class}{/if}"></div>
<div class="name">{$vo['name']}</div>
</a>
{/volist}
</footer>