亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

微信小程序tabbar不顯示解決辦法

 更新時間:2017年06月08日 11:33:42   投稿:lqh  
這篇文章主要介紹了微信小程序tabbar不顯示解決辦法的相關資料,需要的朋友可以參考下

微信小程序tabbar不顯示解決辦法

"pages":[ 
  "pages/logs/logs", 
  "pages/index/index" 
 ], 

微信小程序在測試tabbar的時候怎么都不顯示。

我就不貼api了。直接上代碼

{ 
 "pages":[ 
  "pages/logs/logs", 
  "pages/index/index" 
 ], 
 "window":{ 
  "backgroundTextStyle":"light", 
  "navigationBarBackgroundColor": "#fff", 
  "navigationBarTitleText": "小程序", 
  "navigationBarTextStyle":"black" 
 }, 
 "tabBar":{ 
  "selectedColor":"#dddddd", 
  "color": "#3cc51f", 
  "backgroundColor":"#ffffff", 
  "list":[{ 
   "text" : "登錄", 
   "pagePath" : "pages/logs/logs", 
   "iconPath" : "image/12.png", 
   "selectedIconPath" : "image/12.png" 
  },{ 
   "text":"注銷", 
   "pagePath" : "pages/index/index", 
   "iconPath" : "image/12.png", 
   "selectedIconPath" : "image/12.png" 
  },{ 
   "text" : "日志", 
   "pagePath" : "pages/logs/logs", 
   "iconPath" : "image/12.png", 
   "selectedIconPath" : "image/12.png" 
  }] 
 } 
} 

這個json看了一天,直覺告訴我沒什么問題。實際上也沒什么問題。

但是tabbar怎么都不顯示。最后發(fā)現(xiàn)是

"pages":[ 
  pages/logs/logs", 
  "pages/index/index" 
 ], 

看標紅的問題。第一行絕對是不能配置為"pages/index/index"。所以我換成了pages/logs/logs要不然是不會顯示tabbar的

感謝閱讀,希望能幫助到大家,謝謝大家對本站的支持!

相關文章

最新評論