From 35664d1f3296712e741b4f7e93830c4fdd76e799 Mon Sep 17 00:00:00 2001 From: owen Date: Tue, 5 Sep 2023 22:31:35 +0800 Subject: [PATCH 1/6] =?UTF-8?q?trade:=20=E5=A2=9E=E5=8A=A0=E4=BA=A4?= =?UTF-8?q?=E6=98=93=E4=B8=AD=E5=BF=83=E9=85=8D=E7=BD=AE=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mall/trade/config/index.ts | 24 +++ src/api/member/point/config/index.ts | 10 -- src/views/mall/trade/config/index.vue | 209 ++++++++++++++++++++++++ src/views/member/point/config/index.vue | 131 +-------------- 4 files changed, 235 insertions(+), 139 deletions(-) create mode 100644 src/api/mall/trade/config/index.ts create mode 100644 src/views/mall/trade/config/index.vue diff --git a/src/api/mall/trade/config/index.ts b/src/api/mall/trade/config/index.ts new file mode 100644 index 00000000..3a1771d8 --- /dev/null +++ b/src/api/mall/trade/config/index.ts @@ -0,0 +1,24 @@ +import request from '@/config/axios' + +export interface ConfigVO { + brokerageEnabled: boolean + brokerageEnabledCondition: number + brokerageBindMode: number + brokeragePostUrls: string + brokerageFirstPercent: number + brokerageSecondPercent: number + brokerageWithdrawMinPrice: number + brokerageBankNames: string + brokerageFrozenDays: number + brokerageWithdrawType: string +} + +// 查询交易中心配置详情 +export const getTradeConfig = async () => { + return await request.get({ url: `/trade/config/get` }) +} + +// 保存交易中心配置 +export const saveTradeConfig = async (data: ConfigVO) => { + return await request.put({ url: `/trade/config/save`, data }) +} diff --git a/src/api/member/point/config/index.ts b/src/api/member/point/config/index.ts index 9fbd0447..9a3c4c48 100644 --- a/src/api/member/point/config/index.ts +++ b/src/api/member/point/config/index.ts @@ -6,16 +6,6 @@ export interface ConfigVO { tradeDeductUnitPrice: number tradeDeductMaxPrice: number tradeGivePoint: number - brokerageEnabled: boolean - brokerageEnabledCondition: number - brokerageBindMode: number - brokeragePostUrls: string[] - brokerageFirstPercent: number - brokerageSecondPercent: number - brokerageWithdrawMinPrice: number - brokerageBankNames: number[] - brokerageFrozenDays: number - brokerageWithdrawType: number[] } // 查询积分设置详情 diff --git a/src/views/mall/trade/config/index.vue b/src/views/mall/trade/config/index.vue new file mode 100644 index 00000000..7ffe4091 --- /dev/null +++ b/src/views/mall/trade/config/index.vue @@ -0,0 +1,209 @@ + + + diff --git a/src/views/member/point/config/index.vue b/src/views/member/point/config/index.vue index bd0fe733..ed000537 100644 --- a/src/views/member/point/config/index.vue +++ b/src/views/member/point/config/index.vue @@ -13,7 +13,7 @@ - + 下单积分是否抵用订单金额 @@ -46,111 +46,6 @@ - - - - 商城是否开启分销模式 - - - - - {{ dict.label }} - - - - 人人分销:每个用户都可以成为推广员 - - - 指定分销:仅可在后台手动设置推广员 - - - - - - {{ dict.label }} - - - - 没有推广人:只要用户没有推广人,随时都可以绑定推广关系 - - - 新用户:只有新用户注册时或首次进入系统时才可以绑定推广关系 - - - - - - 个人中心分销海报图片,建议尺寸600x1000 - - - - - - 订单交易成功后给推广人返佣的百分比 - - - - - - 订单交易成功后给推广人的推荐人返佣的百分比 - - - - - - 防止用户退款,佣金被提现了,所以需要设置佣金冻结时间,单位:天 - - - - - - 用户提现最低金额限制,单位:元 - - - - - - {{ dict.label }} - - - 商城开通提现的付款方式 - - - - - - 商城开通提现的银行列表 - - @@ -161,8 +56,6 @@ - - From 2ed5d12be8c01bf8ed280086ef5b870f82553966 Mon Sep 17 00:00:00 2001 From: owen Date: Wed, 6 Sep 2023 00:33:59 +0800 Subject: [PATCH 2/6] =?UTF-8?q?trade:=20=E5=88=86=E9=94=80=E4=B8=9A?= =?UTF-8?q?=E5=8A=A1=E4=BB=8E=20member=20=E6=A8=A1=E5=9D=97=20=E8=BD=AC?= =?UTF-8?q?=E7=A7=BB=E5=88=B0=20trade=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/{member => mall/trade}/brokerage/record/index.ts | 4 ++-- src/views/{member => mall/trade}/brokerage/record/index.vue | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) rename src/api/{member => mall/trade}/brokerage/record/index.ts (66%) rename src/views/{member => mall/trade}/brokerage/record/index.vue (95%) diff --git a/src/api/member/brokerage/record/index.ts b/src/api/mall/trade/brokerage/record/index.ts similarity index 66% rename from src/api/member/brokerage/record/index.ts rename to src/api/mall/trade/brokerage/record/index.ts index 33b6ab18..88a9f886 100644 --- a/src/api/member/brokerage/record/index.ts +++ b/src/api/mall/trade/brokerage/record/index.ts @@ -1,11 +1,11 @@ import request from '@/config/axios' // 查询佣金记录列表 -export const getMemberBrokerageRecordPage = async (params: any) => { +export const getBrokerageRecordPage = async (params: any) => { return await request.get({ url: `/member/member-brokerage-record/page`, params }) } // 查询佣金记录详情 -export const getMemberBrokerageRecord = async (id: number) => { +export const getBrokerageRecord = async (id: number) => { return await request.get({ url: `/member/member-brokerage-record/get?id=` + id }) } diff --git a/src/views/member/brokerage/record/index.vue b/src/views/mall/trade/brokerage/record/index.vue similarity index 95% rename from src/views/member/brokerage/record/index.vue rename to src/views/mall/trade/brokerage/record/index.vue index f9c8400a..0e62a778 100644 --- a/src/views/member/brokerage/record/index.vue +++ b/src/views/mall/trade/brokerage/record/index.vue @@ -107,9 +107,9 @@ From 726331541222c7822695b88f709a7db8f1df9d10 Mon Sep 17 00:00:00 2001 From: owen Date: Fri, 8 Sep 2023 22:51:04 +0800 Subject: [PATCH 5/6] =?UTF-8?q?trade:=20=E4=BC=98=E5=8C=96=E5=88=86?= =?UTF-8?q?=E9=94=80=E7=94=A8=E6=88=B7=E7=BB=91=E5=AE=9A=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=BC=96=E5=8F=B7=E3=80=81=E7=BB=91=E5=AE=9A=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mall/trade/brokerage/user/index.ts | 4 ++-- src/views/mall/trade/brokerage/user/index.vue | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/api/mall/trade/brokerage/user/index.ts b/src/api/mall/trade/brokerage/user/index.ts index ec46e9a8..736cf6e7 100644 --- a/src/api/mall/trade/brokerage/user/index.ts +++ b/src/api/mall/trade/brokerage/user/index.ts @@ -2,8 +2,8 @@ import request from '@/config/axios' export interface BrokerageUserVO { id: number - brokerageUserId: number - brokerageBindTime: Date + bindUserId: number + bindUserTime: Date brokerageEnabled: boolean brokerageTime: Date brokeragePrice: number diff --git a/src/views/mall/trade/brokerage/user/index.vue b/src/views/mall/trade/brokerage/user/index.vue index 70a97676..37e17a3d 100644 --- a/src/views/mall/trade/brokerage/user/index.vue +++ b/src/views/mall/trade/brokerage/user/index.vue @@ -8,9 +8,9 @@ :inline="true" label-width="85px" > - + - + @@ -179,7 +179,7 @@ const list = ref([]) // 列表的数据 const queryParams = reactive({ pageNo: 1, pageSize: 10, - brokerageUserId: null, + bindUserId: null, brokerageEnabled: null, createTime: [] }) From e9d5027e72d86c308b766d08936e15d4217301c1 Mon Sep 17 00:00:00 2001 From: owen Date: Fri, 8 Sep 2023 23:10:04 +0800 Subject: [PATCH 6/6] =?UTF-8?q?trade:=20=E4=BC=98=E5=8C=96=E5=88=86?= =?UTF-8?q?=E9=94=80=E7=94=A8=E6=88=B7=E4=BD=A3=E9=87=91=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mall/trade/brokerage/user/index.ts | 4 ++-- src/views/mall/trade/brokerage/user/index.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/mall/trade/brokerage/user/index.ts b/src/api/mall/trade/brokerage/user/index.ts index 736cf6e7..95f3a6a1 100644 --- a/src/api/mall/trade/brokerage/user/index.ts +++ b/src/api/mall/trade/brokerage/user/index.ts @@ -6,8 +6,8 @@ export interface BrokerageUserVO { bindUserTime: Date brokerageEnabled: boolean brokerageTime: Date - brokeragePrice: number - frozenBrokeragePrice: number + price: number + frozenPrice: number } // 查询分销用户列表 diff --git a/src/views/mall/trade/brokerage/user/index.vue b/src/views/mall/trade/brokerage/user/index.vue index 37e17a3d..f2459e64 100644 --- a/src/views/mall/trade/brokerage/user/index.vue +++ b/src/views/mall/trade/brokerage/user/index.vue @@ -76,11 +76,11 @@ /> - +