b***@163.com
b***@163.com
  • 发布:2023-02-26 16:13
  • 更新:2023-03-07 08:18
  • 阅读:335

【报Bug】NVUE ,subNVue在子页面(非首页下)存在遮罩层丢失问题

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Mac

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

HBuilderX类型: 正式

HBuilderX版本号: 3.7.3

手机系统: Android

手机系统版本号: Android 12

手机厂商: 华为

手机机型: nova10

页面类型: nvue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

示例代码:

showsub(){
let subNVue = uni.getSubNVueById('share');
// 打开 nvue 子窗体
subNVue.show('slide-in-left', 300, function() {
// console.log("subNVue.show")
// 在 subNVue/vue 页面触发事件
});
},
showsubmap(){
let subNVue = uni.getSubNVueById('map');
// 打开 nvue 子窗体
subNVue.show('slide-in-left', 300, function() {
// console.log("subNVue.show")
// 在 subNVue/vue 页面触发事件
});
},

Page.js
{
"pages": [{
"path": "pages/index",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false,
"app-plus": {
"subNVues": [{
"id": "share",
"path": "pages/subnvue/share",
"type": "popup",
"style": {
"margin": "auto",
"width": "600rpx",
"height": "280rpx",
"background": "transparent"
}
},
{
"id": "map",
"path": "pages/subnvue/map",
"type": "popup",
"style": {
"margin": "auto",
"width": "700rpx",
"height": "280rpx",
"background": "transparent"
}
}
]
}
}

}    ,{  
        "path" : "pages/tab2",  
        "style" :                                                                                      
        {  
            "navigationBarTitleText": "",  
            "enablePullDownRefresh": false  
        }  

    }  
    ,{  
        "path" : "pages/page3”,//页面3有配置就能显示出遮罩层,  
        "style" :                                                                                      
        {  
            "navigationBarTitleText": "",  
            "enablePullDownRefresh": false,  
            "app-plus": {  
                "subNVues": [{  
                        "id": "share3",  
                        "path": "pages/subnvue/share",  
                        "type": "popup",  
                        "style": {  
                            "margin": "auto",  
                            "width": "600rpx",  
                            "height": "280rpx",  
                            "background": "transparent"  
                        }  
                    },  
                    {  
                        "id": "map3",  
                        "path": "pages/subnvue/map",  
                        "type": "popup",  
                        "style": {  
                            "margin": "auto",  
                            "width": "700rpx",  
                            "height": "280rpx",  
                            "background": "transparent"  
                        }  
                    }  
                ]  
            }  
        }  

    }  
    ,{  
        "path" : "pages/page4",//页面4没有配置遮罩层丢失,  
        "style" :                                                                                      
        {  
            "navigationBarTitleText": "",  
            "enablePullDownRefresh": false  
        }  

    }  
],  
"tabBar": {  
    "selectedColor": "#F58A33",  
    "iconfontSrc": "static/iconfont.ttf",  
    "list": [{  
            "text": "首页",  
            "pagePath": "pages/index",  
            "iconfont": {  
                "text": "\ue965",  
                "selectedText": "\ue965",  
                "fontSize": "20px",  
                "color": "#7A7E83",  
                "selectedColor": "#F58A33"  
            }  
        },  
        {  
            "text": "美食",  
            "pagePath": "pages/tab2",  
            "iconfont": {  
                "text": "\ue673",  
                "selectedText": "\ue673",  
                "fontSize": "20px",  
                "color": "#7A7E83",  
                "selectedColor": "#F58A33"  
            }  
        }   
    ]  
},  

"globalStyle": {  
    "navigationBarTextStyle": "black",  
    "navigationBarTitleText": "uni-app",  
    "navigationBarBackgroundColor": "#F8F8F8",  
    "backgroundColor": "#F8F8F8"  
},  
"uniIdRouter": {}  

}

操作步骤:

每次必现

预期结果:

subnvue只定义一次,在全部页面都能显示遮罩层

实际结果:

除首页外,为定义的subnvue页面,遮罩层丢失

bug描述:

NVUE ,subNVue在子页面(非首页下)存在遮罩层丢失问题

首页有遮罩层
子页面无遮罩层

2023-02-26 16:13 负责人:无 分享
已邀请:
b***@163.com

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

经测试,如果是tabBar有配置的页面,是有遮罩层,如果没有遮罩层是会丢失

b***@163.com

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

周一打卡

b***@163.com

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

请技术员帮忙解决一下BUG,期待下一版本能修正,产品上线前能使用到

b***@163.com

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

nvue subnvue的其他问题, 希望也能解决
https://ask.dcloud.net.cn/question/87561?item_id=230542&rf=false

b***@163.com

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

周三打卡,求关注,求解决

b***@163.com

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

周四打卡,求关注,求解决

b***@163.com

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

周五打卡,求关注,求解决

b***@163.com

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

周一打卡,求关注,求解决

j***@163.com

j***@163.com

这玩意确实难用,nvuebug很多

note744917

note744917 - 我的联系方式:wx: note744917

哈哈哈哈哈哈哈哈

要回复问题请先登录注册