提交 413b2206 authored 作者: 王鹏飞's avatar 王鹏飞

feat: 更新支付方式支持Apple内购,并优化订单详情提示信息

上级 4b1259a6
......@@ -69,8 +69,14 @@ export default function OrdersListView() {
? wechatIcon
: record.pay_type_name === '支付宝'
? alipayIcon
: coinIcon
return <img src={source} width={30} alt={record.pay_type_name ?? '支付方式'} />
: record.pay_type_name === '紫荆币'
? coinIcon
: null
return source ? (
<img src={source} width={30} alt={record.pay_type_name ?? '支付方式'} />
) : (
record.pay_type_name || '—'
)
},
},
{
......@@ -143,6 +149,7 @@ export default function OrdersListView() {
{ value: '1', label: '微信' },
{ value: '2', label: '支付宝' },
{ value: '3', label: '紫荆币' },
{ value: '4', label: 'Apple内购' },
]}
/>
),
......
......@@ -66,8 +66,8 @@ export function OrderDetailView() {
<Alert
type='info'
showIcon
message='扫码支付待接入'
description='该订单仍可支付;桌面端的支付二维码和状态轮询链路尚未接入,请使用移动端完成支付。'
message='待支付'
description='请使用移动端完成支付。'
/>
) : null}
<Card title='订单信息'>
......@@ -87,6 +87,8 @@ export function OrderDetailView() {
? '支付宝'
: order.payType === 3
? '紫荆币'
: order.payType === 4
? 'Apple内购'
: '—',
},
{ key: 'original', label: '商品金额', children: `¥${order.totalPrice || '0.00'}` },
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论