11.2 单点页新建完成
This commit is contained in:
52
src/pages/LoadingPage/MiddleLoading/ChoiceLogin.tsx
Normal file
52
src/pages/LoadingPage/MiddleLoading/ChoiceLogin.tsx
Normal file
@ -0,0 +1,52 @@
|
||||
import React, { useEffect, useRef } from 'react';
|
||||
import '@/assets/zjl_style.less';
|
||||
import chionceLoginPic01 from '@/assets/choiceLogin/chionceLoginPic01.png';
|
||||
import chionceLoginPic02 from '@/assets/choiceLogin/chionceLoginPic02.png';
|
||||
import { history } from 'umi';
|
||||
import { getToSecondUrl } from '../service';
|
||||
|
||||
export default () => {
|
||||
const urlRef = useRef(null);
|
||||
//跳转到2.0
|
||||
const contentLeftClick = async () => {
|
||||
urlRef.current && window.open(urlRef.current);
|
||||
}
|
||||
//跳转到3.0
|
||||
const contentRightClick = () => {
|
||||
history.replace({ pathname: '/Dashboard' });
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
const getUrl = async () => {
|
||||
const response = await getToSecondUrl();
|
||||
if (response?.success) {
|
||||
urlRef.current = response?.data;
|
||||
}
|
||||
}
|
||||
getUrl();
|
||||
}, [])
|
||||
return (
|
||||
<div className="choiceLoginBody">
|
||||
<div className="choiceLoginBlock">
|
||||
<div className="choiceLoginContent">
|
||||
<div className="contentLeft" onClick={contentLeftClick}>
|
||||
<img src={chionceLoginPic01} alt="联通电子招投标交易平台" />
|
||||
<h4>联通电子招投标<br />交易平台</h4>
|
||||
</div>
|
||||
<div className="contentRight" onClick={contentRightClick}>
|
||||
<img src={chionceLoginPic02} alt="联通智慧供应链招标采购中心" />
|
||||
<h4>联通智慧供应链<br />招标采购中心</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div className="loginMassage">
|
||||
<p><span>重要提示:</span></p>
|
||||
<p>2021年,<span>联通集团总部、31个省分公司</span>已全部上线联通智慧供应链平台。</p>
|
||||
<p>2022年6月13日,<span>联通软件研究院、联通集团财务有限公司</span>上线联通智慧供应链平台。</p>
|
||||
<p>自上线之日起,集团总部、省分公司及上述子公司新发起的公开招标、邀请招标、公开比选、单一来源采购、竞争性谈判等采购业务将在<span>智慧供应链平台招标采购中心</span>进行操作,在途项目仍按照原流程在交易平台执行并完成线上归档。联通子公司采购业务不受影响,仍按原流程执行。</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
|
||||
}
|
@ -66,5 +66,11 @@ export async function getDictionaries() {
|
||||
export async function getProjectById(id?: any) {
|
||||
return request('/api/biz-service-ebtp-project/v1/projectRecord/' + id);
|
||||
}
|
||||
/**
|
||||
* 获取跳转2.0的URL
|
||||
*/
|
||||
export async function getToSecondUrl() {
|
||||
return request('/api/core-service-ebtp-userinfo/zglt/v1/getUrl');
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user