From a5dd7f4a81c29cc8a18aeb243a859c7d10834957 Mon Sep 17 00:00:00 2001 From: owen Date: Sun, 24 Sep 2023 23:18:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E9=94=80=EF=BC=9A=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E5=88=86=E4=BA=AB=E6=B5=B7=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mall/trade/config/index.ts | 2 +- src/views/mall/trade/config/index.vue | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/api/mall/trade/config/index.ts b/src/api/mall/trade/config/index.ts index 486b89b6..66a81147 100644 --- a/src/api/mall/trade/config/index.ts +++ b/src/api/mall/trade/config/index.ts @@ -4,7 +4,7 @@ export interface ConfigVO { brokerageEnabled: boolean brokerageEnabledCondition: number brokerageBindMode: number - brokeragePostUrls: string + brokeragePosterUrls: string brokerageFirstPercent: number brokerageSecondPercent: number brokerageWithdrawMinPrice: number diff --git a/src/views/mall/trade/config/index.vue b/src/views/mall/trade/config/index.vue index bf98c3bf..c43940a8 100644 --- a/src/views/mall/trade/config/index.vue +++ b/src/views/mall/trade/config/index.vue @@ -66,7 +66,7 @@ - + 个人中心分销海报图片,建议尺寸600x1000 @@ -172,7 +172,7 @@ const formData = ref({ brokerageEnabled: true, brokerageEnabledCondition: BrokerageEnabledConditionEnum.ALL.condition, brokerageBindMode: BrokerageBindModeEnum.ANYTIME.mode, - brokeragePostUrls: [], + brokeragePosterUrls: [], brokerageFirstPercent: 0, brokerageSecondPercent: 0, brokerageWithdrawMinPrice: 0, @@ -212,7 +212,7 @@ const submitForm = async () => { formLoading.value = true try { const data = formData.value as unknown as ConfigApi.ConfigVO - data.brokeragePostUrls = formData.value.brokeragePostUrls.map((item: any) => { + data.brokeragePosterUrls = formData.value.brokeragePosterUrls.map((item: any) => { return item?.url ? item.url : item }) await ConfigApi.saveTradeConfig(data) @@ -228,7 +228,7 @@ const getConfig = async () => { try { const data = await ConfigApi.getTradeConfig() if (data != null) { - data.brokeragePostUrls = data.brokeragePostUrls.map((url) => ({ url })) + data.brokeragePosterUrls = data.brokeragePosterUrls.map((url) => ({ url })) formData.value = data } } finally {