feat: 参考原型图 ui优化提交 企业端-企业中心 相关的页面
This commit is contained in:
@@ -27,6 +27,8 @@ import {
|
||||
PayPalBrandIcon,
|
||||
} from '../../components/common/icons/BrandIcons';
|
||||
import { getCurrencyConfig } from '../../helpers/render';
|
||||
import { CUSTOMER_SERVICE_OPEN_EVENT } from '../../components/customer-service';
|
||||
import { showInfo } from '../../helpers';
|
||||
import AmountCard from './AmountCard';
|
||||
import { useMinimumLoadingTime } from '../../hooks/common/useMinimumLoadingTime';
|
||||
|
||||
@@ -40,7 +42,17 @@ const formatCny = (value) =>
|
||||
export const InvoiceNote = ({ t }) => (
|
||||
<p className='rc-invoice'>
|
||||
{t('需要发票?')}
|
||||
<span>{t('联系在线客服')}</span>
|
||||
<button
|
||||
type='button'
|
||||
onClick={() => {
|
||||
const handled = !window.dispatchEvent(
|
||||
new CustomEvent(CUSTOMER_SERVICE_OPEN_EVENT, { cancelable: true }),
|
||||
);
|
||||
if (!handled) showInfo(t('暂无可用客服'));
|
||||
}}
|
||||
>
|
||||
{t('联系在线客服')}
|
||||
</button>
|
||||
</p>
|
||||
);
|
||||
|
||||
@@ -146,7 +158,8 @@ const RechargePanel = ({
|
||||
Boolean(preset) &&
|
||||
Boolean(selectedMethod) &&
|
||||
!isMethodDisabled(selectedMethod) &&
|
||||
Boolean(payable);
|
||||
Boolean(payable) &&
|
||||
!amountLoading;
|
||||
|
||||
if (statusLoading) {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user