加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
erJiFenLei.html 27.36 KB
一键复制 编辑 原始数据 按行查看 历史
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>通讯列表</title>
<link rel="stylesheet" href="./css/index.css">
<link rel="stylesheet" href="./css/erJiFeiLei.css">
</head>
<body>
<div class="phone_top">
<ul id="J_Fix">
<li onclick="window.location.href = 'index.html'">首页</li>
<li class="active">电话卡</li>
<li>电话卡</li>
<li>流量卡</li>
<li>流量卡</li>
<li>流量卡</li>
<li>流量卡</li>
</ul>
</div>
<div class="phone-next">
<ul id="K_FIX">
<li class="action">一卡通</li>
<li>全球通</li>
<li>全ff通</li>
<li>全as通</li>
<li>全dsa通</li>
<li>全fas通</li>
<li>全球af通</li>
</ul>
</div>
<div class="phone-list">
<div id="floor_1" class="phone-card">
<div class="phone_title">
<span class="xian"></span> &nbsp;电话卡1&nbsp;<span class="xian"></span>
</div>
<div class="new">
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
</div>
</div>
<div id="floor_2" class="phone-card">
<div class="phone_title">
<span class="xian"></span> &nbsp;电话卡2&nbsp;<span class="xian"></span>
</div>
<div class="new">
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
</div>
</div>
<div id="floor_3" class="phone-card">
<div class="phone_title">
<span class="xian"></span> &nbsp;电话卡3&nbsp;<span class="xian"></span>
</div>
<div class="new">
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
</div>
</div>
<div id="floor_4" class="phone-card">
<div class="phone_title">
<span class="xian"></span> &nbsp;电话卡4&nbsp;<span class="xian"></span>
</div>
<div class="new">
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
</div>
</div>
<div id="floor_5" class="phone-card">
<div class="phone_title">
<span class="xian"></span> &nbsp;电话卡5&nbsp;<span class="xian"></span>
</div>
<div class="new">
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
</div>
</div>
<div id="floor_6" class="phone-card">
<div class="phone_title">
<span class="xian"></span> &nbsp;电话卡6&nbsp;<span class="xian"></span>
</div>
<div class="new">
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
</div>
</div>
<div id="floor_7" class="phone-card">
<div class="phone_title">
<span class="xian"></span> &nbsp;电话卡7&nbsp;<span class="xian"></span>
</div>
<div class="new">
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price"><!--代理价:--><span class="money">¥ 29.9</span></p>
</div>
<div class="new-box">
<div>
<img src="./images/pro8.png" alt="">
</div>
<p class="new-title">泰国电话卡就是牛,信号就是好</p>
<!--<p class="old-price">原价:<span>¥29.9</span></p>&lt;!&ndash;Important C端用户所看到的,不予以展示原价&ndash;&gt;-->
<p class="new-price">/*代理价:*/<span class="money">¥ 29.9</span></p>
</div>
</div>
</div>
</div>
</body>
</html>
<script src="./js/jquery-3.2.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$(".phone_top li").click(function() {
$(this).addClass("active");
$(this).siblings().removeClass("active");
});
$(".phone-next li").click(function() {
/*点击跳转到页面内相应的div处*/
var $this = $(this).index() + 1;
var thisId = "#floor_" + $this;
$('html, body').animate({
scrollTop: $(thisId).offset().top - 79
}, { duration: 300, easing: "swing" });
$(this).addClass("action");
$(this).siblings().removeClass("action");
});
$(window).scroll(function() { //当用户滚动窗口时
var top = $(document).scrollTop(); //屏幕滚动的距离
var $item = $('.phone-list').find('.phone-card'); //找到了div
var $menu = $('.phone-next li'); //找到了工具条
var currentId = 0;
$item.each(function() {
var m = $(this); //每个楼层所在的对象
var itemTop = m.offset().top; //为每个楼层的高度
if (top > itemTop - 80) { //这里就解决了临界的问题
currentId = m.index(); //如果大于当前楼层的高度,就把当前楼层的高度赋给currentId
} else {
return false;
//如果已经找到了2,345就不用走了,直接跳出循环,提高效率
}
});
//绑定显示在当前选项上
$menu.removeClass('action');
var bar = $menu[currentId];
$(bar).addClass('action');
/*
* TODO 继续优化!
* 滚动显示选项时,当显示到靠后的选项时,自动移动水平选项条,使后面被隐藏的内容自动显示出来
* 同理,也要使前面被遮盖的内容,自动滚动出来
* */
});
$(".new-box").click(function() {
window.location.href = 'commodity_detail.html';
});
});
(function fixWidth() {
var el = document.querySelector('#J_Fix');
var width = [].reduce.call(el.children, function(ret, item) {
var computedStyle = window.getComputedStyle(item);
var w = parseFloat(computedStyle.width) +
parseFloat(computedStyle.marginLeft) +
parseFloat(computedStyle.marginRight) +
parseFloat(computedStyle.paddingLeft) +
parseFloat(computedStyle.paddingRight);
return ret + w;
}, 0);
el.style.width = width + 'px';
})();
(function() {
var el = document.querySelector('.phone-next ul');
var width = [].reduce.call(el.children, function(ret, item) {
var computedStyle = window.getComputedStyle(item);
var w = parseFloat(computedStyle.width) +
parseFloat(computedStyle.marginLeft) +
parseFloat(computedStyle.marginRight) +
parseFloat(computedStyle.paddingLeft) +
parseFloat(computedStyle.paddingRight);
return ret + w;
}, 0);
el.style.width = width + 'px';
})();
</script>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化