7***@qq.com
7***@qq.com
  • 发布:2019-04-11 10:47
  • 更新:2019-04-11 10:54
  • 阅读:588

#插件讨论# 【 cmd-person个人中心模板 - D_Slimmer 】不能刷新

分类:uni-app

底部导航里的页面不能下拉刷新?

2019-04-11 10:47 负责人:无 分享
已邀请:
D_TsMask

D_TsMask - 很高兴与大家分享

一个页面多个组件页,暂时用开启下拉刷新,在页面做监听,然后在用ref调组件页里面的刷新方法

D_TsMask

D_TsMask - 很高兴与大家分享

pages.json 文件内的pages/bottom-nav/index页面

            // 设置为true表示当前页面开启下拉刷新  
            "enablePullDownRefresh": true,  
            "app-plus": {  
                "pullToRefresh": {  
                    "support": true,  
                    "color": "#fc0f0f",  
                    "style": "circle",  
                    "offset": "146upx",  
                    "range": "56px"  
                }  
            }  

pages/bottom-nav/index页面

onPullDownRefresh() {
if (this.current == 0) {
console.log('首页刷新了');
uni.stopPullDownRefresh();
}
}

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