|
[App引擎]
api.openTabLayout 打开后如何关闭上一个界面
[复制链接]
setTimeout(()=>{
api.openTabLayout({
name: 'tabLayout',
url: 'widget://pages/index.stml',
hideTabBar: false,
tabBar: {
selectedColor: '#45C01A',
list: [{
text: '页面一',
iconPath: 'widget://image/tab_1.png',
selectedIconPath: 'widget://image/tab_1_hov.png'
}, {
text: '页面二',
iconPath: 'widget://image/tab_2.png',
selectedIconPath: 'widget://image/tab_2_hov.png'
}, {
text: '页面三',
iconPath: 'widget://image/tab_3.png',
selectedIconPath: 'widget://image/tab_3_hov.png'
}],
frames: [{
name: 'page1',
url: 'widget://pages/main1/main1.stml'
}, {
name: 'page2',
url: 'widget://pages/main1/main2.stml'
}, {
name: 'page3',
url: 'widget://pages/main1/main3.stml'
}]
}
});
api.closeWin({name:'launchPage'});
},3000) |
|