<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
vpn free <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>layout vpn下载 后台大布局 - layui</title>
vpn free <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/layui-src/dist/css/layui.css" media="all">
free vpn <script src="https://cdn.jsdelivr.net/npm/layui-src/dist/layui.all.js"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
free vpn <style>
.layui-tab-title li {
border-bottom: 1px solid #e6e6e6;
}
</style>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
<div class="layui-header">
<div class="layui-logo">layui 后台布局</div>
vpn free <!-- 头部区域(可配合layui已有的水平导航) -->
<ul class="layui-nav layui-layout-left">
<li class="layui-nav-item"><a href="">控制台</a></li>
免费vpn vpn 免费vpn free <li class="layui-nav-item"><a href="">商品管理</a></li>
免费vpn vpn下载 free vpn <li class="layui-nav-item"><a href="">用户</a></li>
free vpn <li class="layui-nav-item">
免费vpn <a href="javascript:;">其它系统</a>
免费vpn vpn下载 免费vpn下载 vpn下载 <dl class="layui-nav-child">
<dd><a href="">邮件管理</a></dd>
免费vpn 免费vpn <dd><a href="">消息管理</a></dd>
免费vpn <dd><a href="">授权管理</a></dd>
</dl>
vpn free </li>
</ul>
免费vpn <ul class="layui-nav layui-layout-right">
vpn下载 免费vpn <li class="layui-nav-item">
vpn下载 <dl class="layui-nav-child">
free vpn <dd><a href="">基本资料</a></dd>
free vpn free vpn <dd><a href="">安全设置</a></dd>
</dl>
免费vpn下载 免费vpn </li>
<li class="layui-nav-item"><a href="">退了</a></li>
vpn下载 </ul>
</div>
<div class="layui-side layui-bg-black">
<div class="layui-side-scroll">
<!-- 左侧导航区域(可配合layui已有的垂直导航) -->
免费vpn <ul class="layui-nav layui-nav-tree" lay-filter="test">
<li class="layui-nav-item">
vpn下载 vpn下载 <a href="javascript:;">所有商品<span class="layui-nav-more"></span></a>
免费vpn下载 vpn下载 vpn下载 <dl class="layui-nav-child">
免费vpn vpn下载 免费vpn 免费vpn <dd><a href="javascript:;" data-id="ceshi" data-url="{% url 'happy:ceshi' %}">列表一</a></dd>
free vpn <dd><a href="javascript:;" data-id="ceshi2" data-url="{% url 'happy:ceshi' %}">列表二</a></dd>
免费vpn vpn free 免费vpn free vpn下载 vpn vpn下载 <dd><a href="javascript:;">列表三</a></dd>
免费vpn <dd><a href="">超链接</a></dd>
免费vpn vpn下载 免费vpn下载 </dl>
free vpn </li>
<li class="layui-nav-item">
<a href="javascript:;">解决方案</a>
免费vpn下载 vpn free <dl class="layui-nav-child">
vpn free 免费vpn下载 免费vpn <dd><a href="javascript:;">列表一</a></dd>
免费vpn vpn下载 vpn free <dd><a href="javascript:;">列表二</a></dd>
<dd><a href="">超链接</a></dd>
</dl>
vpn下载 免费vpn </li>
vpn下载 <li class="layui-nav-item"><a href="">云市场</a></li>
vpn下载 <li class="layui-nav-item"><a href="">发布商品</a></li>
vpn下载 </ul>
vpn下载 </div>
</div>
<div class="layui-body">
<!-- 内容主体区域 -->
vpn free <div class="layadmin-pagetabs" 免费vpn style="position: relative;margin: 0px;padding: 0px;">
<div class="layui-icon layui-icon-prev" id="left_button" vpn下载 style="position: vpn free absolute;left: 免费vpn 0;background-color: red;width:40px;height:40px;text-align: center;line-height: 40px;color: #000000;"></div>
<div class="layui-icon vpn free layui-icon-next" id="right_button" style="position: absolute;right: 0;background-color: vpn下载 #ffffff;width:40px;height:40px;text-align: center;line-height: 40px;color: #000000;"></div>
free vpn <div class="layui-tab" lay-allowClose="true" lay-unauto="" lay-filter="test1"
style="left: 41px;position: vpn下载 relative;width:93%;overflow: hidden;">
免费vpn下载 免费vpn下载 vpn下载 <ul class="layui-tab-title" style="border-bottom: none;" >
免费vpn vpn free <li class="layui-this" lay-id="111">文章列表1</li>
免费vpn <li lay-id="222">发送信息2</li>
免费vpn vpn下载 <li lay-id="333">权限分配3</li>
免费vpn下载 <li lay-id="444">审核4</li>
vpn下载 vpn下载 <li 免费vpn lay-id="555">订单管理5</li>
<li lay-id="333">权限分配6</li>
vpn下载 vpn下载 免费vpn <li lay-id="444">审核7</li>
vpn下载 <li 免费vpn lay-id="555">订单管理8</li>
vpn free vpn下载 vpn下载 <li lay-id="333">权限分配9</li>
vpn下载 <li lay-id="444">审核10</li>
<li lay-id="555">订单管理11</li>
vpn free 免费vpn <li lay-id="333">权限分配12</li>
免费vpn下载 <li lay-id="444">审核13</li>
vpn下载 <li lay-id="555">订单管理14</li>
<li lay-id="333">权限分配15</li>
免费vpn </ul>
免费vpn下载 免费vpn下载 <div class="layui-tab-content">
free vpn vpn free <div class="layui-tab-item layui-show">1</div>
免费vpn下载 free vpn <div class="layui-tab-item">2</div>
vpn free vpn下载 <div class="layui-tab-item">3</div>
免费vpn vpn free free vpn free vpn <div class="layui-tab-item">4</div>
免费vpn下载 <div class="layui-tab-item">5</div>
free vpn 免费vpn下载 <div class="layui-tab-item">6</div>
<div 免费vpn class="layui-tab-item">7</div>
vpn下载 free vpn <div class="layui-tab-item">8</div>
<div class="layui-tab-item">9</div>
免费vpn下载 免费vpn <div class="layui-tab-item">10</div>
vpn下载 free vpn vpn free <div class="layui-tab-item">11</div>
<div class="layui-tab-item">12</div>
免费vpn下载 <div class="layui-tab-item">13</div>
vpn free <div class="layui-tab-item">14</div>
vpn下载 <div vpn free vpn下载 class="layui-tab-item">15</div>
vpn free </div>
</div>
</div>
</div>
免费vpn
免费vpn <div class="layui-footer">
免费vpn <!-- 底部固定区域 -->
layui.com - 底部固定区域
</div>
</div>
<script>
free vpn //JavaScript代码区域
layui.use(['element', 'jquery'], function () {
var element = layui.element;
var $ = 免费vpn layui.jquery;
免费vpn vpn下载 var active = {
免费vpn下载 tabadd: function (url, id, name) {
element.tabAdd('test1', {
title: name
free vpn vpn free ,
免费vpn free vpn vpn下载 content: '<iframe data-frameid="' + id + '" scrolling="no" frameborder="0" src="' + url + '" style="width:100%;"></iframe>' free vpn //支持传入html
免费vpn下载 免费vpn vpn下载 free vpn ,
vpn下载 免费vpn vpn free id: id
免费vpn下载 free vpn }
);
免费vpn element.render('tab');
vpn下载 vpn free },
vpn free 免费vpn tab_change: function (data_id) {
location.hash = free vpn 'test1=' + vpn下载 data_id;
vpn下载 var layid = location.hash.replace(/^#test1=/, '');
免费vpn vpn下载 element.tabChange('test1', layid);
}
};
//向右移动
var less_width=0;sum_total=0;less_sum_title=0;tab_click_list=[];
var total_list=[]; free vpn vpn free //记录菜单滚动宽度
免费vpn下载 $('#right_button').click(function () {
var sum_title=parseFloat($('.layui-tab-title').width());
vpn free //temp_data存上一次宽度
var temp_width=0;temp_data=0;one_total_list=0;
var temp_total=$('.layui-tab-title li[lay-id]').length;
for vpn下载 (var i=sum_total;i<temp_total;i++){
tab_click_list.push($('.layui-tab-title li').eq(i).attr("lay-id"));
免费vpn下载 temp_width free vpn = parseFloat($('.layui-tab-title vpn free li').eq(i).width())+30;
免费vpn if (less_width > sum_title+less_sum_title) {
免费vpn下载 vpn 免费vpn 免费vpn下载 free 免费vpn less_width = less_width - temp_data;
less_sum_title = less_width;
break;
vpn下载 免费vpn } else {
vpn下载 //console.log('ok');
免费vpn less_width += temp_width;
vpn下载 免费vpn下载 temp_data = temp_width;
vpn free sum_total=i;
vpn下载 }
vpn下载 }
if (sum_total < temp_total-1) {
//用列表记录菜单滚动所有宽度
免费vpn下载 vpn下载 total_list.push(-less_width);
console.log(total_list,'个数');
free vpn var css = {
免费vpn free vpn "left": -less_width,
vpn下载 };
$('.layui-tab-title').css(css);
vpn下载 free vpn vpn free }
});
free vpn下载 vpn //向左移动
var left_sum_width = 0;less_total_list=0;less_one_total=2;
$('#left_button').click(function () {
免费vpn vpn下载 var sum_title=parseFloat($('.layui-tab-title').width());
免费vpn //temp_data存上一次宽度
var temp_width=0;temp_data=0;
免费vpn vpn下载 var temp_total=$('.layui-tab-title li[lay-id]').length;
less_total_list=total_list.length-less_one_total;
ceshi = -total_list[less_total_list];
if (less_total_list free vpn >= 0) {
免费vpn下载 console.log(less_total_list, vpn下载 "less_total_list");
vpn free var css = {
免费vpn 免费vpn "left": total_list[less_total_list]
};
free vpn 免费vpn下载 免费vpn $('.layui-tab-title').css(css);
less_one_total += 1;
} else if (less_total_list < 0) {
vpn下载 免费vpn下载 var css = {
免费vpn "left": 0
};
$('.layui-tab-title').css(css);
免费vpn vpn下载 //清除所有已赋值的变量
less_width=0;sum_total=0;less_sum_title=0;total_list=[];
}
vpn free });
免费vpn下载 //移动函数
function right_func(){
free vpn var less_width=0;sum_total=0;less_sum_title=0;
var total_list=[]; //记录菜单滚动宽度
免费vpn下载 vpn free var sum_title=parseFloat($('.layui-tab-title').width());
//temp_data存上一次宽度
免费vpn var temp_width=0;temp_data=0;one_total_list=0;
免费vpn var temp_total=$('.layui-tab-title li[lay-id]').length;
免费vpn free vpn for (var i=sum_total;i<temp_total;i++){
console.log($('.layui-tab-title li').eq(i).attr("lay-id"),"lay-id");
免费vpn下载 免费vpn temp_width = parseFloat($('.layui-tab-title li').eq(i).width())+30;
免费vpn vpn下载 if (less_width > sum_title+less_sum_title) {
vpn下载 less_width = less_width - temp_data;
vpn下载 免费vpn 免费vpn less_sum_title = less_width;
break;
} else {
免费vpn //console.log('ok');
免费vpn less_width += temp_width;
temp_data = temp_width;
sum_total=i;
}
}
vpn free
free vpn if (sum_total < temp_total-1) {
免费vpn //用列表记录菜单滚动所有宽度
免费vpn下载 free vpn vpn free vpn free total_list.push(-less_width);
免费vpn console.log(total_list,'个数');
vpn下载 free vpn 免费vpn var css = {
"left": -less_width,
vpn下载 免费vpn };
$('.layui-tab-title').css(css);
free vpn }
}
//监听导航点击
element.on('nav(test)', function (elem) {
免费vpn下载 free vpn free vpn //console.log(elem);
免费vpn下载 免费vpn var data_click = 免费vpn下载 $(this);
var url = elem.parent('dd').children('a').attr('data-url');
免费vpn var data_id = elem.parent('dd').children('a').attr('data-id');
var text_ch = elem.parent('dd').children('a').text();
免费vpn //只有获取到data_id才会执行,以防一级菜单点击后创建tab标签
免费vpn下载 if (data_id) {
vpn free //console.log('ok');
//console.log($('.layui-tab-title li[lay-id]'));
var isJudge free vpn = false;
free vpn var sum_width = 0;
免费vpn $.each($('.layui-tab-title li[lay-id]'), function () {
vpn下载 //console.log($(this).width(), 'widhth');
vpn下载 sum_width += parseInt($(this).width());
//console.log($(this).attr("lay-id"));
vpn free //console.log(data_click.attr("data-id"));
vpn free 免费vpn if (($(this).attr("lay-id")) == (data_click.attr("data-id"))) {
vpn free 免费vpn下载 isJudge = true;
vpn free vpn下载 }
vpn下载 });
免费vpn 免费vpn //如果tab标签没有就添加并移到相应位子
vpn下载 免费vpn vpn free if (!isJudge) {
免费vpn active.tabadd(url, data_id, text_ch);
free vpn active.tab_change(data_id);
vpn下载 var 免费vpn下载 tab_click_total=$('.layui-tab-title li[lay-id]').length;
vpn下载 vpn下载 for vpn free (var b=0;b<tab_click_total;b++){
//判断是否在tab标签内,并移动
vpn下载 vpn下载 var temp_b=$.inArray(data_id, tab_click_list);
免费vpn vpn下载 免费vpn下载 free vpn vpn下载 if (temp_b==-1){
vpn下载 vpn下载 vpn free $('#right_button').click();
免费vpn }else if(temp_b>0){
免费vpn tab_click_list=[];
免费vpn vpn下载 break;
免费vpn 免费vpn下载 免费vpn下载 }
vpn下载 }
vpn free console.log(tab_click_list);
isJudge = false;
}else {
免费vpn下载 active.tab_change(data_id);
免费vpn下载 vpn下载 vpn下载 tab_click_list=[];
var css = {
免费vpn vpn下载 免费vpn "left": 0
免费vpn 免费vpn 免费vpn vpn下载 };
vpn下载 free vpn $('.layui-tab-title').css(css);
免费vpn //清除所有已赋值的变量
vpn free less_width = 0;sum_total = 0;less_sum_title = 0; vpn free 免费vpn下载 total_list = [];
免费vpn下载 免费vpn var tab_click_total=$('.layui-tab-title li[lay-id]').length;
免费vpn下载 vpn下载 for (var b=0;b<tab_click_total;b++){
vpn free vpn下载 //判断是否在tab标签内,并移动
免费vpn下载 console.log(tab_click_list,"tab_click_list");
免费vpn 免费vpn vpn free var temp_b=$.inArray(data_id, tab_click_list);
vpn下载 免费vpn if (temp_b==-1){
free vpn vpn下载 免费vpn 免费vpn vpn下载 $('#right_button').click();
免费vpn下载 }else if(temp_b>0){
tab_click_list=[];
vpn下载 免费vpn下载 break;
vpn下载 vpn下载 }
vpn下载 免费vpn }
}
}
免费vpn vpn下载 });
vpn下载
//监听Tab切换,以改变地址hash值
element.on('tab(test1)', function () {
free vpn下载 vpn 免费vpn下载 location.hash = 'test1=' + this.getAttribute('lay-id');
console.log(location.hash);
免费vpn vpn free free vpn });
free vpn var layid = location.hash.replace(/^#test1=/, '');
element.tabChange('test1', layid);
free vpn 免费vpn下载 vpn下载 });
</script>
free vpn
</body>
</html>
The End


大气响应式网络建站服务公司织梦模板
高端大气html5设计公司免费vpn源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)