<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                [toc] # 1.5 底部導航和凸起按鈕配置 ## 1.5.1 實現效果圖 ![](https://img.kancloud.cn/20/03/2003cedc383a78f1763c80378af71e1e_750x1650.jpg) ## 1.5.2 創建底部導航 1. 在pages目錄下創建發現頁面和我的頁面 ![](https://img.kancloud.cn/07/17/0717565721fab79e7fa041e0b072ad4a_532x688.png) 2. 在pages.json文件內配置底部導航 * 參考地址: https://uniapp.dcloud.io/collocation/pages?id=tabbar ``` "tabBar": { "color":"#707070", "selectedColor":"#8745FF", "backgroundColor":"#ffffff", "borderStyle":"black", "midButton": { "iconPath":"static/tabbar/min.png", "iconWidth":"60px", "height" : "65px" }, "list": [ { "iconPath":"static/tabbar/find.png", "selectedIconPath":"static/tabbar/find-selected.png", "text" : "發現", "pagePath":"pages/index/index" }, { "iconPath":"static/tabbar/my.png", "selectedIconPath":"static/tabbar/find-selected.png", "text":"我的", "pagePath":"pages/my/my" } ] } ``` * 效果演示 ![](https://img.kancloud.cn/16/77/16778c50e628ae1a58b028204a106779_596x1158.png) ## 1.5.3 給tabbar中間按鈕設置點擊效果 * 參考地址: https://uniapp.dcloud.io/api/ui/tabbar?id=ontabbarmidbuttontap * 在App.vue組件中的onLaunch方法定義監聽點擊中間按鈕觸發的方法 ``` <script> export default { onLaunch: function() { //處理nvue加載自定義圖標 const domModule = weex.requireModule('dom') domModule.addRule('fontFace', { 'fontFamily': "iconfont", 'src': "url('http://at.alicdn.com/t/font_1859985_7mxozsfdvib.ttf')" }); //監聽中間按鈕的點擊事件 uni.onTabBarMidButtonTap(function(){ console.log("點擊了中間按鈕") }) }, onShow: function() { console.log('App Show') }, onHide: function() { console.log('App Hide') } } </script> ``` 4. tabbar圖標的制作 * 使用阿里矢量圖標庫進行制作
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看