| | |
| | | if (!['shutter', 'linkage_navigation', 'linkage', 'menu_board', 'menu_board_navigation'].includes(res.menu_type)) { |
| | | res.menu_type = 'shutter' |
| | | } |
| | | |
| | | let loginOtop = '' |
| | | let loginOleft = '' |
| | | let windowWidth = window.innerWidth |
| | | let fix = null |
| | | res.login_screen_offset && res.login_screen_offset.forEach(item => { |
| | | if (!item.offset_x && !item.offset_y) return |
| | | |
| | | if (fix === null || Math.abs(windowWidth - item.resolution_width) < fix) { |
| | | fix = Math.abs(windowWidth - item.resolution_width) |
| | | loginOtop = item.offset_y + item.y_unit |
| | | loginOleft = item.offset_x + item.x_unit |
| | | } |
| | | }) |
| | | |
| | | let systemMsg = { |
| | | favicon: res.titlelogo || '', |
| | |
| | | app_version: res.app_version, |
| | | Member_Level: 0, |
| | | appname: res.appname || '', |
| | | loginOtop: res.loginOtop || '', |
| | | loginOleft: res.loginOleft || '' |
| | | loginOtop: loginOtop, |
| | | loginOleft: loginOleft |
| | | } |
| | | |
| | | if ([10, 20, 30, 40, 50, 60, 70, 80, 90, 100].includes(res.member_level)) { |