雨悸
雨悸
  • 发布:2020-07-29 18:20
  • 更新:2020-07-29 18:34
  • 阅读:279

安卓手机midButton不显示凸起按钮,IOS能显示。。。怎么回事啊?急!

分类:uni-app

HbuiderX :2.8.3.20200728

"tabBar": {
"borderStyle": "#E6E6E6",
"color": "#646464",
"selectedColor": "#E60000",
"midButton": {
// "width":"80rpx",
"height":"80rpx",
"iconWidth":"60rpx",
"iconPath": "static/img/index/tab-open.png",
"text": "一键开门"
},
"list": [{
"pagePath": "pages/tabbar/new/featured/featured",
"iconPath": "static/img/index/tab1-g.png",
"selectedIconPath": "static/img/index/tab1.png",
"text": "精选"
},
{
/ pages/tabbar/discover/discover/
"pagePath": "pages/tabbar/new/servicePage/servicePage",
"iconPath": "static/img/index/tab2-g.png",
"selectedIconPath": "static/img/index/tab2.png",
"text": "服务"
},
// #ifndef APP-PLUS
{ / pages/tabbar/index/placeHolder /
"pagePath": "pages/tabbar/index/openDoor/openDoor",
"iconPath": "static/img/index/tab-open.png",
"selectedIconPath": "static/img/index/tab-open.png",
"text": "一键开门"
},
// #endif
{
"pagePath": "pages/tabbar/market/market",
"iconPath": "static/img/index/tab3-g.png",
"selectedIconPath": "static/img/index/tab3.png",
"text": "严选"
},
{
/ pages/tabbar/me/me /
"pagePath": "pages/tabbar/new/mePage/mePage",
"iconPath": "static/img/index/tab4-g.png",
"selectedIconPath": "static/img/index/tab4.png",
"text": "我"
}

        ]  
    }
2020-07-29 18:20 负责人:无 分享
已邀请:
chenli

chenli

height和iconWidth使用px单位看下

  • 雨悸 (作者)

    换成px能显示,这是怎么回事

    2020-07-29 18:34

  • chenli

    回复 雨悸: 环境配置文件里涉及到单位的应该都是使用px或者百分号

    2020-07-29 18:37

雨悸

雨悸 (作者)

"midButton": {  
 "width":"80px",  
"height":"80px",  
"iconWidth":"60px",  
"iconPath": "static/img/index/tab-open.png",  
"text": "一键开门"  
},

把rpx变成px就可以显示了。。。但是怎么统一啊,,,,苹果能显示,安卓竟然不能,是bug吗?

  • chenli

    不是bug,接收的就是px单位,可能是ios刚没有约束吧。使用px单位ios也可以显示吧

    2020-07-29 18:36

  • 雨悸 (作者)

    回复 chenli: 换成px苹果也可以显示的

    2020-07-29 18:41

要回复问题请先登录注册