Files
orico-official-website-old/app/mobile/view/include/top-collection.phtml
2024-10-29 14:04:59 +08:00

113 lines
4.0 KiB
PHTML
Executable File

<div class="header">
<div class="m_Container">
<div class="left"><span class="icon-category cursor_p"></span></div>
<div class="center cursor_p"><a href="__ORICOROOT__"><img src="__PUBLIC__/m_web/images/logo.png"></a></div>
<div class="right img-responsive cursor_p Batch text_white text_28">管理</div>
</div>
<div class="menu" style="display: none;">
<a href="__ORICOROOT__">
<dl>
<dt><a href="__ORICOROOT__" class=" cursor_p">首页</a></dt>
</dl>
</a>
<dl>
<dt class="cursor_p">产品与服务<i class="rotate icon-arrow"></i></dt>
<?php
$oneLevelCategory = [];
foreach ($productCategory as $key => $value):
if ($key > 7) {
break;
}
if (isset($category['id']) && $category['id'] == $value['id']) {
$oneLevelCategory = isset($value['child']) ? $value['child'] : [];
}
?>
<dd>
<a href="__ORICOROOT__/product/catelists/id/<?php echo $value['id']; ?>" class=" cursor_p">
<p><img src="<?php echo $value['m_icon']; ?>" style=" width:5.2%; padding-right: 4%; vertical-align: middle;"><?php echo $value['name']; ?></p>
</a>
</dd>
<?php endforeach; ?>
<dd><a href="__ORICOROOT__/Group/special" class="cursor_p"><img src="__PUBLIC__/m_web/images/special-icon.png" style="width:5.2%; padding-right: 4%; vertical-align: middle; ">产品特色专题</a></dd>
</dl>
<dl>
<dt class="cursor_p">价值与使命<i class="rotate icon-arrow"></i></dt>
<dd><a href="__ORICOROOT__/Group/weare" >我们是</a></dd>
<dd><a href="__ORICOROOT__/Group/wewill">我们会</a></dd>
<dd><a href="__ORICOROOT__/Group/culture" >文化与价值观</a></dd>
<dd><a href="__ORICOROOT__/Group/vision">愿景与使命</a></dd>
</dl>
<dl>
<dt class="cursor_p">历史与创新<i class="rotate icon-arrow"></i></dt>
<dd><a href="__ORICOROOT__/article/lists">最新动态</a></dd>
<dd><a href="__ORICOROOT__/Group/brand">品牌与发展</a></dd>
<dd><a href="__ORICOROOT__/Group/honor" >荣誉与证书</a></dd>
</dl>
<dl>
<dt><a href="__ORICOROOT__/Group/job">加入我们</a></dt>
</dl>
<dl>
<dt><a href="__ORICOROOT__/Group/contact">联系我们</a></dt>
</dl>
<dl>
<dt><a href="__ORICOROOT__/customer/personal">个人中心</a></dt>
</dl>
<dl>
<dt><a href="__ORICOROOT__/antifake/anti_fake">SSD系列防伪查询</a></dt>
</dl> <!--<dl>
<dt><a href="" class="text_white">个人中心</a></dt>
</dl>-->
<div class="search">
<a href="__ORICOROOT__/search"><div class="search margin-bottom-30">
<button class="updown_search_btn" type="sumbit" id="bnt_email"><span class="icon-search"></span></button>
<input class="form-control" name="keywords" placeholder="全站搜索" value="" type="text">
</div> </a>
<!--<div class="SingIn-button text-c"><a href="/mobile/customer/register">注册</a><a href="/mobile/customer/login">登录</a></div>--> </div>
</div>
</div>
<script>
/*menu菜单*/
$(function(){
$(".icon-category").click(function(){
$(this).toggleClass("icon-close");
$(".menu").slideToggle(800);
$(".m-Country").hide();
})
})
/*国家菜单*/
$(function(){
$(".m_Container .right").click(function(){
$(".menu").hide();
$(".m-Country").slideToggle(800);
})
})
// localStorage.clear();
if (localStorage) {
var user_data = JSON.parse(localStorage.getItem("user_data"));
if (user_data) {
var curr_time = (new Date()).getTime().toString().substr(0, 10);
var expire = 86400 * 14;
if ((curr_time - user_data.curr_time) > expire) {
localStorage.removeItem('user_data');
}
// console.log('当前时间:' + curr_time);
// console.log('登录时间:' + user_data.curr_time);
// console.log('缓存过期时间:' + expire);
// console.log('登录状态剩余时间:' + (expire - (curr_time - user_data.curr_time)));
// console.log(user_data);
}
} else {
}
</script>