feat(store): 添加门店、门店验证

This commit is contained in:
R524809
2026-09-04 10:27:29 +08:00
parent 66ca8b496c
commit 70d9d5b92a
19 changed files with 602 additions and 26 deletions
+8 -2
View File
@@ -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}`}