我试图连续打开两个视图,都作为 Appgyver 项目中的模式。当我这样做时supersonic.ui.modal.hide()
,supersonic.ui.modal.show(some_view)
第二个视图不显示。如果我在 and 之间加上一个,alert('here')
它似乎有效。这里有什么问题?连续和连续都是一样的。modal.hide()
modal.show()
supsersonic.ui.layers.pop()
supersonic.ui.layers.push(another_view)
使用示例:
}else if (option === 'chooseLocation'){
$scope.currentOption = "location you chose.";
$scope.f = true;
supersonic.ui.modal.hide().then(function(){
supersonic.ui.modal.show("chooseLocation");
$localStorage.locationOption = 'lastUsed';
});
}
我今天早上尝试的另一个片段与模态无关,但也不起作用:
supersonic.ui.layers.popAll().then(function(){
var view = new supersonic.ui.View("searchresults#index?"+paramText);
supersonic.ui.layers.push(view);
});
我在日志屏幕上遇到的错误:
landing#drawer 11:23:29.382 error
"supersonic.ui.layers.popAll rejected: {}"