const { ensureMobileRole } = require('../../utils/roleGuard'); Page({ async onShow() { const ok = await ensureMobileRole('order_entry'); if (!ok) return; }, });