芜湖老码农
芜湖老码农
  • 发布:2021-12-04 18:45
  • 更新:2021-12-04 18:45
  • 阅读:799

app-plus titleNView transparent时,如何指定button原始文字颜色?

分类:uni-app

如下设置,buttonscolor是页面上推后的文字颜色,background是页面未上推之前的背景色,那在页面未上推之前文字颜色怎么设置?现在全是白色。

{  
    "pages": [{  
        "path": "pages/index/index",  
        "style": {  
            "navigationBarTitleText": "autoTitle", //通用titlt文字  
            "navigationBarTextStyle": "black",  
            "app-plus": {  
                "navigationBarTitleText": "AppTitle1", //APP下的Title  
                "titleNView": {  
                    "type": "transparent", //滚动透明渐变  
                    "backgroundColor": "#abcdef", //页面上推时标题栏背景色  
                    "titleColor": "#ff00ff", //页面上推时标题及按钮颜色  
                    "buttons": [{  
                            "float": "left",  
                            "background": "#00f", //未上推时按钮背景色  
                            "color": "#ffff00", //页面上推时按钮字体色  
                            "fontSize": "14px",  
                            "text": "取消",  
                            "width": "60px"  
                        },  
                        {  
                            "background": "#f00",  
                            "float": "right",  
                            "color": "#5555ff",  
                            "text": "发表",  
                            "fontSize": "14px",  
                            "width": "60px"  
                        }  
                    ],  
                    "autoBackButton": false //取消返回按钮,由buttons中实现  
                }  
            }  
        }  
    }],  
    "globalStyle": {  
        "navigationBarTextStyle": "black",  
        "navigationBarTitleText": "uni-app",  
        "navigationBarBackgroundColor": "#F8F8F8",  
        "backgroundColor": "#F8F8F8"  
    }  
}  
2021-12-04 18:45 负责人:无 分享
已邀请:

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