From 2c22ef8ef1744b8fd1b70868c177ba180404a9e2 Mon Sep 17 00:00:00 2001 From: owen Date: Sun, 24 Sep 2023 22:32:10 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=88=86=E9=94=80=EF=BC=9A=E9=87=8D?= =?UTF-8?q?=E5=91=BD=E5=90=8D=E6=8F=90=E7=8E=B0=E7=B1=BB=E5=9E=8B=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= 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 3a1771d8..486b89b6 100644 --- a/src/api/mall/trade/config/index.ts +++ b/src/api/mall/trade/config/index.ts @@ -10,7 +10,7 @@ export interface ConfigVO { brokerageWithdrawMinPrice: number brokerageBankNames: string brokerageFrozenDays: number - brokerageWithdrawType: string + brokerageWithdrawTypes: string } // 查询交易中心配置详情 diff --git a/src/views/mall/trade/config/index.vue b/src/views/mall/trade/config/index.vue index 6fa41cad..bf98c3bf 100644 --- a/src/views/mall/trade/config/index.vue +++ b/src/views/mall/trade/config/index.vue @@ -121,8 +121,8 @@ 提现手续费百分比,范围0-100,0为无提现手续费,例:设置10,即收取10%手续费,提现100元,到账90元,10元手续费 - - + + Date: Sun, 24 Sep 2023 23:18:50 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=88=86=E9=94=80=EF=BC=9A=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=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 {