|
本帖最后由 Z_BY 于 2021-8-30 16:21 编辑
api.addEventListener({
name:'viewappear'
}, function(ret, err){
let uid = api.getPrefs({
sync: true,
key: 'uid'
});
if(!uid) {
let param = {
name: 'login',
url: "../login/login.stml",
bgColor: '#fff',
title: 'navigationBar',
hideNavigationBar:true
};
api.openTabLayout(param);
}});
监听事件能执行成功,但是页面不能跳转(没有任何反应,仍然在首页)
|
|