Home  >  Article  >  Web Front-end  >  How to hide the back button in uniapp

How to hide the back button in uniapp

coldplay.xixi
coldplay.xixiOriginal
2020-12-09 14:07:079890browse

Uniapp method to hide the return button: 1. Hide the scroll bar, the code is ["scrollIndicator": "none"]; 2. Turn off the bounce effect, the code is ["bounce": "none"]; 3 , configure the button, the code is ["text":"Cancel"].

How to hide the back button in uniapp

The operating environment of this tutorial: windows7 system, uni-app2.5.1 version, thinkpad t480 computer.

Recommended (free): uni-app development tutorial

How to hide the back button in uniapp:

Use syntax to hide

"autoBackButton":false,
{
            "path" : "pages/search/search",
            "style" : {
                "enablePullDownRefresh":true,
                "app-plus":{
                     "scrollIndicator":"none",//隐藏滚动条
                     "bounce":"none",//关闭反弹效果
                     "titleNView":{
                         "autoBackButton":false,
                         // 搜索框配置
                         "searchInput":{
                             "align":"left",
                             "backgroundColor":"#F7F7F7",
                             "borderRadius":"4px",
                             "placeholder":"搜索糗事",
                             "placeholderColor":"#CCCCCC",
                             "disabled":false
                         },
                         //配置按钮
                         "buttons":[
                             // 右边
                             {
                                 "color":"#000000",                                 
                                 "colorPressed":"#BBBBBB",
                                 "float":"right",
                                 "fontSize":"16px",
                                 "text":"取消"
                             }
                         ]
                     }
                }
            }
        }

Related free learning recommendations: Programming video

The above is the detailed content of How to hide the back button in uniapp. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn