|
|
|
@ -9,8 +9,7 @@ import useStyleStore from '@/stores/StyleStore';
|
|
|
|
|
|
|
|
|
|
|
|
function GeneratePayment() {
|
|
|
|
function GeneratePayment() {
|
|
|
|
|
|
|
|
|
|
|
|
const { notification } = App.useApp()
|
|
|
|
const { message, notification } = App.useApp()
|
|
|
|
const [messageApi, contextHolder] = message.useMessage()
|
|
|
|
|
|
|
|
const [mobile, setMobile] = useStyleStore((state) => [state.mobile, state.setMobile]);
|
|
|
|
const [mobile, setMobile] = useStyleStore((state) => [state.mobile, state.setMobile]);
|
|
|
|
|
|
|
|
|
|
|
|
const [generateForm] = Form.useForm()
|
|
|
|
const [generateForm] = Form.useForm()
|
|
|
|
@ -187,7 +186,7 @@ function GeneratePayment() {
|
|
|
|
</Tooltip>
|
|
|
|
</Tooltip>
|
|
|
|
<span>支付按钮</span>
|
|
|
|
<span>支付按钮</span>
|
|
|
|
</Flex>
|
|
|
|
</Flex>
|
|
|
|
<HtmlPreview value={generatedObject.payhtml} loading={isHtmlLoading} onCopied={() => messageApi.success('已复制')} />
|
|
|
|
<HtmlPreview value={generatedObject.payhtml} loading={isHtmlLoading} onCopied={() => message.success('已复制😀')} />
|
|
|
|
<Flex gap='small'>
|
|
|
|
<Flex gap='small'>
|
|
|
|
<Tooltip placement='topLeft' title='发送 WhatsApp 使用'>
|
|
|
|
<Tooltip placement='topLeft' title='发送 WhatsApp 使用'>
|
|
|
|
<InfoCircleOutlined />
|
|
|
|
<InfoCircleOutlined />
|
|
|
|
@ -197,7 +196,7 @@ function GeneratePayment() {
|
|
|
|
size='small'
|
|
|
|
size='small'
|
|
|
|
onClick={() => {
|
|
|
|
onClick={() => {
|
|
|
|
navigator.clipboard.writeText(generatedObject.paylink)
|
|
|
|
navigator.clipboard.writeText(generatedObject.paylink)
|
|
|
|
messageApi.success('复制成功😀')
|
|
|
|
message.success('已复制😀')
|
|
|
|
}}>
|
|
|
|
}}>
|
|
|
|
复制链接
|
|
|
|
复制链接
|
|
|
|
</Button>
|
|
|
|
</Button>
|
|
|
|
@ -205,7 +204,6 @@ function GeneratePayment() {
|
|
|
|
<Typography.Text>{generatedObject.paylink}</Typography.Text>
|
|
|
|
<Typography.Text>{generatedObject.paylink}</Typography.Text>
|
|
|
|
</Flex>
|
|
|
|
</Flex>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{contextHolder}
|
|
|
|
|
|
|
|
</Flex>
|
|
|
|
</Flex>
|
|
|
|
</>
|
|
|
|
</>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|