jQuery实现B2B网站后台管理系统侧导航
网络编程 2021-07-04 14:06www.168986.cn编程入门
这篇文章主要介绍了jQuery实现B2B网站后台管理系统侧导航,文中示例代码非常详细,帮助大家更好的理解和学习,感兴趣的朋友可以了解下
效果图
1.html部分
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>index</title> <link rel="stylesheet" href="https://cdn.bootcss./font-awesome/4.6.0/css/font-awesome.min.css" rel="external nofollow" > <link rel="stylesheet" href="css/style.css" rel="external nofollow" > </head> <body> <div class="aount-l fl"> <a class="list-title">账户概览</a> <ul id="aordion" class="aordion"> <li> <div class="link"><i class="fa fa-leaf"></i>产品管理<i class="fa fa-chevron-down"></i></div> <ul class="submenu"> <li id="shop"><a>查看店铺</a></li> <li id="publicproducts"><a>发布产品</a></li> <li id="productlists"><a>查看产品</a></li> <li id="mysaled"><a>已卖出产品</a></li> </ul> </li> <li> <div class="link"><i class="fa fa-shopping-cart"></i>采购管理<i class="fa fa-chevron-down"></i></div> <ul class="submenu"> <li id="publishpurchase"><a>发布采购</a></li> <li id="postneeds"><a>查看采购</a></li> <li id="getneeds"><a>已收到的报价单</a></li> <li id="mypricesheet"><a>我的报价单</a></li> <li id="concernshop"><a>已关注的店铺</a></li> <li id="concerngood"><a>已关注的商品</a></li> </ul> </li> <li> <div class="link"><i class="fa fa-pencil-square-o"></i>询盘管理<i class="fa fa-chevron-down"></i></div> <ul class="submenu"> <li id="buyerxunpanlist"><a>收到的询盘</a></li> <li id="publishrequire"><a>我的询盘</a></li> </ul> </li> <li> <div class="link"><i class="fa fa-file-text"></i>订单管理<i class="fa fa-chevron-down"></i></div> <ul class="submenu"> <li id="myorder"><a>我的订单</a></li> <li id="myrefund"><a>退款申请</a></li> </ul> </li> <li> <div class="link"><i class="fa fa-globe"></i>金融管理<i class="fa fa-chevron-down"></i></div> <ul class="submenu"> <li id="myloan"><a>我的借贷</a></li> <li id="financialmanage"><a>需求申请</a></li> <li id="myapplication"><a>我的申请</a></li> </ul> </li> <li> <div class="link"><i class="fa fa-unlock-alt"></i>安全管理<i class="fa fa-chevron-down"></i></div> <ul class="submenu"> <li id="baseInfo"><a>基本信息</a></li> <li id="authenchange"><a>认证信息</a></li> <li id="phoneAuth"><a>手机认证</a></li> <li id="bankCardAuth"><a>银行卡认证</a></li> <li id="emailAuth"><a>邮箱认证</a></li> <li id="passwordmodify"><a>密码修改</a></li> <li id="paymentpsdmodify"><a>支付密码</a></li> <li id="address"><a>收货地址</a></li> </ul> </li> <li> <div class="link"><i class="fa fa-star"></i>评价管理<i class="fa fa-chevron-down"></i></div> <ul class="submenu"> <li id="userments"><a>我的评价</a></li> </ul> </li> <li> <div class="link"><i class="fa fa-bell"></i>消息管理<i class="fa fa-chevron-down"></i></div> <ul class="submenu"> <li id="mymsg"><a>我的消息</a></li> </ul> </li> <li> <div class="link"><i class="fa fa-signal"></i>统计管理<i class="fa fa-chevron-down"></i></div> <ul class="submenu"> <li id="censusmanager"><a>月贸易量</a></li> <li id="statisticmanager"><a>月订单量</a></li> </ul> </li> <li> <div class="link"><i class="fa fa-credit-card"></i>白条管理<i class="fa fa-chevron-down"></i></div> <ul class="submenu"> <li id="oweindex"><a>开通白条</a></li> <li id="myIous"><a>我的白条</a></li> <li id="louorderlist"><a>订单列表</a></li> </ul> </li> </ul> </div> <script src='https://libs.baidu./jquery/1.10.2/jquery.min.js'></script> <script src='js/script.js'></script> </body> </html>
2.css部分
{ margin:0; padding:0; -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box } body { background:#fff; font:12px Microsoft YaHei,arial,sans-serif } ul { list-style-type:none } a { color:#f39800; text-decoration:none } .list-title { display:inline-block; width:100%; max-width:200px; border-:solid 1px #c; border-left:solid 1px #c; border-right:solid 1px #c; background:#fff; text-align:center; height:60px; line-height:60px; font-size:20px; color:#f39800; font-weight:700; cursor:pointer } h1 { color:#fff; font-size:24px; font-weight:400; text-align:center; margin-:80px } h1 a { color:#f39800; font-size:16px } .aordion { width:100%; max-width:200px; border:solid 1px #c; background:#fff } .aordion .link { cursor:pointer; display:block; padding:15px 15px 15px 42px; color:#4d4d4d; font-size:14px; font-weight:700; border-bottom:1px solid #c; position:relative; -webkit-transition:all .4s ease; -o-transition:all .4s ease; transition:all .4s ease } .aordion li:last-child .link { border-bottom:0 } .aordion li { cursor:pointer } .aordion li i { position:absolute; :16px; left:12px; font-size:18px; color:#595959; -webkit-transition:all .4s ease; -o-transition:all .4s ease; transition:all .4s ease } .aordion li i.fa-chevron-down { right:12px; left:auto; font-size:16px } .aordion li.open .link { color:#f39800 } .aordion li.open i { color:#f39800 } .aordion li.open i.fa-chevron-down { -webkit-transform:rotate(180deg); -ms-transform:rotate(180deg); -o-transform:rotate(180deg); transform:rotate(180deg) } .submenu { display:none; background:#f5f5f5; font-size:14px } .submenu li { border-bottom:1px solid #d6d7dc } .submenu a { display:block; text-decoration:none; color:#666; padding:12px; padding-left:42px; -webkit-transition:all .25s ease; -o-transition:all .25s ease; transition:all .25s ease } .submenu a:hover,.submenu li.current a { background:#f39800; color:#fff }
3.js部分
$(function() { var Aordion = function(el, multiple) { this.el = el || {}; this.multiple = multiple || false; var links = this.el.find('.link'); links.on('click', { el: this.el, multiple: this.multiple }, this.dropdown) }; Aordion.prototype.dropdown = function(e) { var $el = e.data.el; $this = $(this); $next = $this.next(); $next.slideToggle(); $this.parent().toggleClass('open'); if (!e.data.multiple) { $el.find('.submenu').not($next).slideUp().parent().removeClass('open'); } }; var aordion = new Aordion($('#aordion'), false); $('.submenu li').click(function() { $(this).addClass('current').siblings('li').removeClass('current'); }); });
以上就是jQuery实现B2B网站后台管理系统侧导航的详细内容,更多关于jQuery 实现侧导航的资料请关注狼蚁SEO其它相关文章!
编程语言
- 如何快速学会编程 如何快速学会ug编程
- 免费学编程的app 推荐12个免费学编程的好网站
- 电脑怎么编程:电脑怎么编程网咯游戏菜单图标
- 如何写代码新手教学 如何写代码新手教学手机
- 基础编程入门教程视频 基础编程入门教程视频华
- 编程演示:编程演示浦丰投针过程
- 乐高编程加盟 乐高积木编程加盟
- 跟我学plc编程 plc编程自学入门视频教程
- ug编程成航林总 ug编程实战视频
- 孩子学编程的好处和坏处
- 初学者学编程该从哪里开始 新手学编程从哪里入
- 慢走丝编程 慢走丝编程难学吗
- 国内十强少儿编程机构 中国少儿编程机构十强有
- 成人计算机速成培训班 成人计算机速成培训班办
- 孩子学编程网上课程哪家好 儿童学编程比较好的
- 代码编程教学入门软件 代码编程教程