feat(store): 添加门店、门店验证
This commit is contained in:
@@ -157,7 +157,11 @@ const ShopsPage = () => {
|
||||
|
||||
const openCreate = () => {
|
||||
createForm.resetFields();
|
||||
createForm.setFieldsValue({ is_default: stores.length === 0 });
|
||||
createForm.setFieldsValue({
|
||||
is_default: stores.length === 0,
|
||||
currency_code:
|
||||
currentPlatform?.default_currency_code ?? currencyOptions[0]?.value,
|
||||
});
|
||||
setCreateOpen(true);
|
||||
};
|
||||
|
||||
@@ -347,7 +351,9 @@ const ShopsPage = () => {
|
||||
return (
|
||||
<Space size={4} wrap>
|
||||
<Tag color={status.color}>{status.text}</Tag>
|
||||
<Tag color={credential.color}>{credential.text}</Tag>
|
||||
{store.status !== 'verifying' && (
|
||||
<Tag color={credential.color}>{credential.text}</Tag>
|
||||
)}
|
||||
{store.last_error && (
|
||||
<Tooltip
|
||||
title={`${store.last_error.code}:${store.last_error.message}`}
|
||||
|
||||
Reference in New Issue
Block a user