19 lines
807 B
JavaScript
19 lines
807 B
JavaScript
import React from 'react';
|
|
import QrCode from '../../../components/common/qrCode';
|
|
import { Result } from 'antd';
|
|
import Styles from './web.module.less';
|
|
export default function Render(props) {
|
|
const { oakFullpath, qrCodeUrl, loading, successful, type, size } = props.data;
|
|
const { refreshQrCode, t } = props.methods;
|
|
if (successful) {
|
|
return (<div className={Styles.qrCodeBox}>
|
|
<Result status="success" title={type === 'bind'
|
|
? t('weChat-account-successfully-bound')
|
|
: t('weChat-authorization-login-successful')}/>
|
|
</div>);
|
|
}
|
|
return (<div>
|
|
<QrCode loading={loading} url={qrCodeUrl} disableDownload={true} tips={<div>微信扫一扫</div>} size={size} onRefresh={() => refreshQrCode()}/>
|
|
</div>);
|
|
}
|