本页实列完整源码

<!DOCTYPE html> <html lang="zh-CN"> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>底部导航演示-aeui2.0-apicloud适配UI</title> <link href="../aeui2.0/aeui.css" rel="stylesheet" /> <link href="style.css" rel="stylesheet" /> </head> <body ontouchstart=""> <footer class="aeui-b-bar" id="footer"> <div class="aeui-b-bar-item aeui-this"> <div class="aeuifont icon-home"></div> <div class="bar-item-title">主页</div> </div> <div class="aeui-b-bar-item"> <div class="aeuifont icon-category"></div> <div class="bar-item-title">分页列表</div> </div> <div class="aeui-b-bar-item"> <div class="aeuifont icon-comments"></div> <div class="bar-item-title">消息中心</div> </div> <div class="aeui-b-bar-item"> <div class="aeuifont icon-account"></div> <div class="bar-item-title">我的</div> </div> </footer> <br /><br /> <script src="g.js"></script> <script src="../aeui2.0/aeui.js"></script> <script> aeui.use("bar",function(){ var both = aeui.bar.setBotBar("#footer",function(index){ console.log( index ) if(index==3){ alert("您尚未登陆,请登陆后再来"); return false;// 阻止该项目切换 } }); }); </script> </body> </html>







[点击关闭]快捷面板
手机扫码访问 qrcode