| | |
| | | } else if (binding_type === 'login_check') { // appid 此时为目标地址 |
| | | param.v_type = 'login_check' |
| | | param.LoginUID = sessionStorage.getItem('LoginUID') || '' |
| | | url = appid.replace(/\/webapi(.*)/, '/webapi/dologon/s_visitor_login') |
| | | |
| | | if (!param.rduri) { |
| | | param.rduri = window.GLOB.baseurl + 'webapi/dologon/s_visitor_login' |
| | | } |
| | | |
| | | if (appid) { |
| | | url = appid.replace(/\/webapi(.*)/, '/webapi/dologon/s_visitor_login') |
| | | param.linkurl = appid.replace(/\/webapi(.*)/, '/index.html') |
| | | } else { |
| | | param.linkurl = window.GLOB.linkurl |
| | | } |
| | | } |
| | | |
| | | param.LText = md5(window.btoa(_SessionUid + param.timestamp + (param.linkurl || ''))) |
| | |
| | | GLOB.baseurl = document.location.origin + '/' + GLOB.service |
| | | GLOB.linkurl = GLOB.baseurl + 'index.html' |
| | | } else { |
| | | GLOB.linkurl = '' |
| | | GLOB.location = config.host |
| | | GLOB.service = config.service |
| | | GLOB.host = config.host.replace(/http(s)?:\/\//ig, '') + (config.service ? '_' + config.service.replace(/\//ig, '') : '') |
| | | GLOB.baseurl = GLOB.location + '/' + GLOB.service |
| | | GLOB.linkurl = GLOB.baseurl + 'index.html' |
| | | } |
| | | |
| | | let mark = sessionStorage.getItem('system_mark') |
| | |
| | | import React, {Component} from 'react' |
| | | import { Spin } from 'antd' |
| | | |
| | | import Api from '@/api' |
| | | import './index.scss' |
| | | |
| | | class MkIframe extends Component { |
| | |
| | | } |
| | | |
| | | UNSAFE_componentWillMount() { |
| | | // const { menuId, userId, loginUid, bid } = this.props.match.params |
| | | const { menuId, userId, loginUid, bid } = this.props.match.params |
| | | |
| | | sessionStorage.setItem('LoginUID', '202306221645124938E53FE0520A64CE2B486') |
| | | // sessionStorage.setItem('LoginUID', loginUid) |
| | | console.log(userId) |
| | | Api.getTouristMsg('login_check', 'http://demo.mk9h.cn/erp_new/webapi/dostars').then(res => { |
| | | console.log(res) |
| | | if (res.status) { |
| | | |
| | | } else { |
| | | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | componentDidMount() { |