方法 可以使用onShow方法,在onShow中能够获取当前页面的options onShow: function () { // 页面栈 let pages = getCurrentPages(); // 当前页面 let currentPage = pages[pages.length-