1***@163.com
1***@163.com
  • 发布:2024-11-04 15:41
  • 更新:2024-11-05 16:19
  • 阅读:151

【报Bug】page.json 设置的tabbar、导航标题栏文字 多语言h5 和 小程序都不生效

分类:uni-app

产品分类: uniapp/H5

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: window10

HBuilderX类型: 正式

HBuilderX版本号: 4.29

浏览器平台: Chrome

浏览器版本: 130.0.6723.71

项目创建方式: HBuilderX

App下载地址或H5⽹址: https://apps.apple.com/za/app/%E6%B8%AF%E6%B9%BE%E6%88%BF%E4%B8%9C/id6572296283

示例代码:

"tabBar": {
"color": "#909399",
"selectedColor": "#303133",
"backgroundColor": "#FFFFFF",
"borderStyle": "black",
"list": [{
"pagePath": "pages/guide/guide",
"iconPath": "static/tab-images/home.png",
"selectedIconPath": "static/tab-images/home-active.png",
"text": "%homepage%"
},
// {
// "pagePath": "pages/index/index",
// "iconPath": "static/tab-images/services.png",
// "selectedIconPath": "static/tab-images/services-active.png",
// "text": "短租服务"
// },

     // {  
        //      "pagePath": "pages/house/index",  
        //  "iconPath": "static/tab-images/news.png",  
        //  "selectedIconPath": "static/tab-images/news-active.png",  
        //  "text": "%house1%"  
        // },  
        {  
            "pagePath": "pages/message/message",  
            "iconPath": "static/tab-images/notify.png",  
            "selectedIconPath": "static/tab-images/notify-active.png",  
            "text": "%messageXx%"  
        }, {  
            "pagePath": "pages/mine/mine",  
            "iconPath": "static/tab-images/services.png",  
            "selectedIconPath": "static/tab-images/services-active.png",  
            "text": "%mine1%"  
        }  

    ]  

},  

pages标题都是这样配置的{
"path": "personalCenter/personalCenter",
"style": {
"navigationBarTitleText": "%personalCenter%",
"enablePullDownRefresh": false
}
},

操作步骤:

"tabBar": {
"color": "#909399",
"selectedColor": "#303133",
"backgroundColor": "#FFFFFF",
"borderStyle": "black",
"list": [{
"pagePath": "pages/guide/guide",
"iconPath": "static/tab-images/home.png",
"selectedIconPath": "static/tab-images/home-active.png",
"text": "%homepage%"
},
// {
// "pagePath": "pages/index/index",
// "iconPath": "static/tab-images/services.png",
// "selectedIconPath": "static/tab-images/services-active.png",
// "text": "短租服务"
// },

     // {  
        //      "pagePath": "pages/house/index",  
        //  "iconPath": "static/tab-images/news.png",  
        //  "selectedIconPath": "static/tab-images/news-active.png",  
        //  "text": "%house1%"  
        // },  
        {  
            "pagePath": "pages/message/message",  
            "iconPath": "static/tab-images/notify.png",  
            "selectedIconPath": "static/tab-images/notify-active.png",  
            "text": "%messageXx%"  
        }, {  
            "pagePath": "pages/mine/mine",  
            "iconPath": "static/tab-images/services.png",  
            "selectedIconPath": "static/tab-images/services-active.png",  
            "text": "%mine1%"  
        }  

    ]  

},

预期结果:

page.json 设置的tabbar、导航标题栏文字 多语言h5 和 小程序生效

实际结果:

page.json 设置的tabbar、导航标题栏文字 多语言h5 和 小程序都不生效

bug描述:

page.json 设置的tabbar、所有的导航标题栏文字 多语言h5 和 小程序都不生效 ,manifest.json里面小程序特有相关描述和 h5的title怎样配置多语言?

2024-11-04 15:41 负责人:无 分享
已邀请:
1***@163.com

1***@163.com (作者)

这里的添加了name 安卓真机调试就报错

要回复问题请先登录注册