| | |
| | | let _param = JSON.parse(window.decodeURIComponent(window.atob(this.props.match.params.param))) |
| | | |
| | | if (typeof(_param) === 'object') { |
| | | this.authLogin(_param.appid, _param.openid, _param.memberId, _param.key) |
| | | this.authLogin(_param.appid, _param.openid, _param.memberId, _param.key, _param.menuId || '') |
| | | } else { |
| | | this.props.history.replace('/login') |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | authLogin = (appid, openid, memberid, scanId) => { |
| | | authLogin = (appid, openid, memberid, scanId, menuId) => { |
| | | Api.getTouristMsg('mk', appid, openid, memberid, scanId).then(res => { |
| | | if (res.status) { |
| | | sessionStorage.setItem('UserID', res.UserID) |
| | |
| | | sessionStorage.setItem('organization', res.organization || '') |
| | | sessionStorage.setItem('mk_user_type', res.mk_user_type || '') |
| | | |
| | | this.getMessage() |
| | | this.getMessage(menuId) |
| | | } else { |
| | | notification.warning({ |
| | | top: 92, |
| | |
| | | }) |
| | | } |
| | | |
| | | getMessage = () => { |
| | | getMessage = (menuId) => { |
| | | let _param = { |
| | | func: 's_Get_style', |
| | | TypeCharOne: 'PC', |
| | |
| | | document.getElementsByTagName('head')[0].appendChild(link) |
| | | } |
| | | |
| | | if (menuId) { |
| | | sessionStorage.setItem('ThirdMenu', menuId) |
| | | } |
| | | |
| | | this.props.history.replace('/main') |
| | | } else { |
| | | notification.warning({ |