import React, { useEffect } from 'react';
import { Button, message, Spin } from 'antd';
import request from '@/utils/request';
import { JumpToOutside } from '@/utils/CommonUtils';
const Loading: React.FC<{}> = () => {

  useEffect(() => {
    // request('/auth/oauth/authorize', {
    //   method: 'get',
    //   params: {
    //     response_type: 'code',
    //     client_id: 'KgPEkttG',
    //     redirect_uri: 'http://10.242.31.158:18022/redirect?page=xunjia&pid=123&vid=456&qid=789',
    //     mall3_token: sessionStorage.getItem('Authorization'),
    //   },
    // }).then(res => {
      
    // })

  }, []);
  return (
    <div style={{ textAlign: 'center', height: '100%', background: 'rgba(0,0,0,.05)', position: 'relative' }}>
      <div style={{ position: 'absolute', left: '50%', top: '48%' }}>
        <Spin tip="Loading..." />
        <Button onClick={() => JumpToOutside("http://10.242.31.158:18022/redirect?page=xunjia%26pid=123%26vid=456%26qid=789")}>再点一次</Button>
      </div>
    </div>
  );
}
export default Loading;