yygg
yygg
  • 发布:2020-08-09 16:57
  • 更新:2021-11-15 14:24
  • 阅读:1034

我的遮罩层用的是subNVues subNVue.hide以后 click事件就不能用了

分类:nvue
//App.vue  
onLaunch: function() {  
            let _this = this;  
//底部菜单中间按钮被点击的时候  显示遮罩层  
            uni.onTabBarMidButtonTap(()=>{  
                let subNVue = uni.getSubNVueById('send')  
                subNVue.show('slide-in-bottom', 300, function(){});   
                uni.$emit('onTabBarMidButtonTap',{})  
            })  
        },  
//pages.json  
{  
            "path" : "pages/index/index",  
            "style" : {  
                "navigationBarTitleText":"消息列表",  
                "navigationBarShadow" : "grey",  
                "app-plus": {  
                    "scrollIndicator" : "none",  
                    "subNVues":[{//弹出层  
                        "id": "send",  
                        "path": "pages/subnvue/send",  
                        "type" : "popup",  
                        "style": {  
                            "height" : "100%",    
                            "background": "transparent",  
                            "popGesture": "none"  
                        }  

                    }]  
                }  
            }  
        }  

//send.nvue  

//关闭遮罩层  
closeMask() {  
                let _this = this  
                let subNVue = uni.getSubNVueById('send')    
                subNVue.hide('slide-out-bottom', 300)  
                _this.animationData = {}  
                _this.mask = false  
            },  
2020-08-09 16:57 负责人:无 分享
已邀请:
yygg

yygg (作者)

第一次打开的时候 @click 能够实现跳转 但是第二次往后 @click 就不再触发了

yygg

yygg (作者)

附件中 有视频能看到bug

yygg

yygg (作者)

还有一个奇葩的点就是 点击遮罩层的@click 可以使用 但是 点击image的 就不能使用了

宇物

宇物

请问最后怎么解决的

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