pages.json的定义
{//弹出层
"id": "bottom",
"path": "pages/user/routePlanning/subNVue/bottom/bottom",
"type": "popup",
"style": {
"position": "absolute",
"bottom":"0",
"width":"100%",
"height":"100px"
}
}
然后页面上的
const subNVue = uni.getSubNVueById('bottom');
setTimeout(()=>{
subNVue.show('fade-in',1000,()=>{
console.log('subNVue 原生子窗体显示成功');
});
},1000)
这个动画在初始的时候执行一次之后就不执行动画了是为什么?
0 个回复