90后菜鸟
90后菜鸟
  • 发布:2019-06-27 15:16
  • 更新:2019-06-27 16:55
  • 阅读:911

原生导航栏带图片

分类:uni-app
"path": "pages/home/home",  
            "style": {  
                "navigationBarTitleText": "首页",  
                "app-plus": {  
                    "titleNView": {  
                        "tags": [{  
                            "tag": "img",  
                            "src": "/static/img.png",  
                            "position": {  
                                "left": "2px",  
                                "top": "auto",  
                                "width": "30px",  
                                "height": "30px"  
                            }  
                        }],  
                        "searchInput": {  
                            "backgroundColor": "#EEE",  
                            "borderRadius": "15px",  
                            "placeholder": "请输入关键词搜索相关内容",  
                            "placeholderColor": "#9B9B9B",  
                            "disabled": true //为true时点击输入框不置焦,可以跳到新页面搜索  
                        },  
                        "buttons": [{  
                            "type": "none",  
                            "float": "right",  
                            "fontSrc": "/static/iconfont.ttf",  
                            "text": "\ue602"  
                        }]  
                    }  
                }  
            }


输入框会挡住图片,有没有大神知道怎么解决
能不能动态设置那张图片

2019-06-27 15:16 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com - 啦啦

加个

"type": "transparent"
  • 90后菜鸟 (作者)

    没用

    2019-06-27 15:44

  • 1***@qq.com

    searchInput 不设置背景或者 直接设为transparent试试

    2019-06-27 16:46

1***@qq.com

1***@qq.com - 啦啦

"searchInput": {  
    "backgroundColor": "rgba(0, 0, 0, 0)",  
        "borderRadius": "15px",    
        "placeholder": "请输入关键词搜索相关内容",    
        "placeholderColor": "#9B9B9B",    
        "disabled": true //为true时点击输入框不置焦,可以跳到新页面搜索    
},

这样肯定是能透明的 具体自己调一下 rgba 透明度

该问题目前已经被锁定, 无法添加新回复