3 Star 1 Fork 0

Sivan/guiyuan-info-h5

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index.html 11.20 KB
一键复制 编辑 原始数据 按行查看 历史
zengzhaofei 提交于 2019-06-10 19:52 . 推荐产品
<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
<meta charset="utf-8">
<title>桂圆铺-首页</title>
<meta name="viewport"
content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">
<link rel="stylesheet" href="./css/swiper.min.css">
<link rel="stylesheet" href="./css/amazeui.min.css">
<link rel="stylesheet" href="./css/index.css">
<script>
(function (window, document) {
function resize() {
var ww = window.innerWidth;
if (ww > window.screen.width) {
window.requestAnimationFrame(resize);
} else {
if (ww > 750) ww = 750;
// 下面代码按照比例为100px = 1rem,此处一定要同pxToRem的转换比例
document.documentElement.style.fontSize = ww * 100 / 750 + 'px';
}
}
if (document.readyState !== 'loading') {
resize();
} else {
document.addEventListener('DOMContentLoaded', resize);
}
window.addEventListener('resize', resize);
})(window, document);
</script>
</head>
<body>
<div class="outer brand-container">
<!-- star-nav -->
<nav class="top-nav">
<img src="./images/logo.png" alt="" class="nav-logo">
<button>
<span class=""></span>
<span style="display: block;"></span>
<span class=""></span>
</button>
</nav>
<div class="nav-container">
<nav class="top-nav">
<img src="./images/logo.png" alt="" class='nav-logo'>
<button>
<span></span>
<span></span>
<span></span>
</button>
</nav>
<!-- menu-list -->
<ul class="nav-box am-list admin-sidebar-list" id="collapase-nav-1">
<li class="am-panel">
<a class='nav-item' data-am-collapse="{parent: '#collapase-nav-1', target: '#nav-1'}">
关于桂源铺
<i class="am-icon-plus am-fr am-margin-right"></i>
<i class="am-icon-close am-fr am-margin-right"></i>
</a>
<!-- child-menu -->
<ul class="am-list am-collapse admin-sidebar-sub" id="nav-1">
<li><a href="#/userAdd"> 品牌背景 </a></li>
<li><a href="#/userList/0">品牌核心价值 </a></li>
<li><a href="#/userList/0">品牌标签 </a></li>
<li><a href="#/userList/0">热点话题 </a></li>
</ul>
</li>
<li class="am-panel">
<a class='nav-item' data-am-collapse="{parent: '#collapase-nav-1', target: '#nav-2'}">
港奶起源
<i class="am-icon-plus am-fr am-margin-right"></i>
</a>
<ul class="am-list am-collapse admin-sidebar-sub" id="nav-2">
<li><a href="#/companyAdd"> 添加单位(部门) </a></li>
<li><a href="#/companyList/0"> 单位(部门)列表 </a></li>
</ul>
</li>
<li class="am-panel">
<a class='nav-item' data-am-collapse="{parent: '#collapase-nav-1', target: '#nav-3'}">
品牌历程
<i class="am-icon-plus am-fr am-margin-right"></i>
</a>
<ul class="am-list am-collapse admin-sidebar-sub" id="nav-3">
<li>
<a href="#/roleAdd">历程</a>
</li>
</ul>
</li>
<li class="am-panel">
<a class='nav-item'>
产品优势
<i class="am-icon-plus am-fr am-margin-right"></i>
</a>
</li>
<li class="am-panel">
<a class='nav-item'>
店铺展示
<i class="am-icon-plus am-fr am-margin-right"></i>
</a>
</li>
<li class="am-panel">
<a class='nav-item'>
更多资讯
<i class="am-icon-plus am-fr am-margin-right"></i>
</a>
</li>
</ul>
</div><!-- end-nav -->
<!-- start top-banner -->
<div class="top-banner-box">
<img src="./images/index-banner.jpg" alt="banner" class='banner-img'>
</div>
<!-- start main-content -->
<div class="man-container">
<!-- 推荐产品 -->
<div class="production-box">
<div class="prd-title">
<span class="prd-icon"></span>
<span class="name">推荐产品</span>
<a class="add-icon"></a>
</div>
<div class="prd-box">
<div class="prd-item">
<img src="./images/index-1.jpg" alt="" class="prd-item">
<div class="mask">奶茶</div>
</div>
<div class="prd-item">
<img src="./images/index-1.jpg" alt="" class="prd-item">
<div class="mask">奶茶</div>
</div>
<div class="prd-item">
<img src="./images/index-1.jpg" alt="" class="prd-item">
<div class="mask">奶茶</div>
</div>
</div>
</div>
<!-- 店铺环境 -->
<div class="shop-box">
<div class="shop-title">
<span class="shop-icon"></span>
<span class="name">店铺环境</span>
<a class="add-icon"></a>
</div>
<div class="shop-focus-box" id='shopFocus'>
<div class="swiper-wrapper">
<div class="swiper-slide">
<img src="./images/banner-1.png" alt="">
</div>
<div class="swiper-slide">
<img src="./images/index-banner.jpg" alt="">
</div>
<div class="swiper-slide">
<img src="./images/banner-1.png" alt="">
</div>
</div>
<!-- 分页器 -->
<div class="swiper-pagination"></div>
<!-- 前进后退按钮 -->
<div class="button-prev left">
<span class="am-icon-angle-left"></span>
</div>
<div class="button-next right">
<span class="am-icon-angle-right"></span>
</div>
</div>
</div>
<!-- 联系我们 -->
<div class="connct-box">
<div class="connct-title">
<span class="connct-icon"></span>
<span class="name">联系我们</span>
<a class="add-icon"></a>
</div>
<div class="connct-img-box">
<img src="./images/index-map.png" alt="">
</div>
</div>
<!-- tel -->
<div class="tel-box">
<p>
<span class="loc-icon">
</span>
地址:普陀区真北路3199号星云经济区27号楼桂源铺
</p>
<p>
<span class="tel-icon">
</span>
电话:021-63390766
</p>
</div>
</div>
<footer class="footer-box">
<nav class="footer-nav">
<ul>
<li class="line"><a href=""><span class="icons"></span>供应商</a></li>
<li class="line"><a href=""><span class="icons"></span>加盟商</a></li>
<li><a href=""><span class="icons"></span>员工通道</a></li>
</ul>
</nav>
<div class="address-box">
<div class="info-text">
All rights reserved 2018 © 桂源铺 沪ICP备0000000号
<br>技术支持:柏优传媒
</div>
<div class="icon-box">
<span class="am-icon-weixin"></span>
<span class="am-icon-weibo"></span>
<span class="am-icon-qq"></span>
</div>
</div>
</footer>
</div>
<script src="./js/jquery-1.8.2.min.js"></script>
<script src="./js/amazeui.min.js"></script>
<script src="./js/swiper.min.js"></script>
<script>
var btn = $('.top-nav').children('button')
, spa = btn.children('span')
, ul = $('.nav-container').children('.nav-box')
, logos = $('.top-nav').children('.nav-logo')
// 导航按钮切换
btn.on('click', function () {
$('.nav-container').toggleClass('active-bg')
if (!$(spa[0]).hasClass('spa1')) {
spa[0].className = 'spa1';
spa[1].style.display = 'none';
spa[2].className = 'spa3';
logos.attr('src', './images/logo-ff.png')
$('.nav-container')[0].style.height = 80 + ul[0].offsetHeight + 'px';
} else {
spa[0].className = '';
spa[1].style.display = 'block';
spa[2].className = '';
$('.nav-container')[0].style.height = 1.05 + 'rem';
logos.attr('src', './images/logo.png')
}
});
$(document).on('click', '.nav-item', function () {
setTimeout(function () {
$('.nav-container')[0].style.height = 80 + ul[0].offsetHeight + 'px';
}, 150)
})
</script>
<!-- swiper -->
<script>
$(document).ready(function () {
// shop轮播
var topFocus = new Swiper('#shopFocus', {
autoplay: {
delay: 100000,//1秒切换一次
},
pagination: {
el: '.swiper-pagination',
},
navigation: {
nextEl: '.button-next',
prevEl: '.button-prev',
},
})
$(".prd-box .prd-item").click(function () {
if($(this).hasClass('current')){
$(this).removeClass('current')
}
else {
$(this).addClass('current').siblings().removeClass('current')
}
})
})
</script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Sivant/guiyuan-info-h5.git
git@gitee.com:Sivant/guiyuan-info-h5.git
Sivant
guiyuan-info-h5
guiyuan-info-h5
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385