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 {