Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5a9764c0
authored
Sep 03, 2023
by
owen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
member: 分销配置
parent
13020895
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
0 deletions
+41
-0
src/api/member/point/config/index.ts
+10
-0
src/utils/constants.ts
+27
-0
src/utils/dict.ts
+4
-0
src/views/member/point/config/index.vue
+0
-0
No files found.
src/api/member/point/config/index.ts
View file @
5a9764c0
...
...
@@ -6,6 +6,16 @@ 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
[]
}
// 查询积分设置详情
...
...
src/utils/constants.ts
View file @
5a9764c0
...
...
@@ -272,3 +272,30 @@ export const PromotionDiscountTypeEnum = {
name
:
'折扣'
}
}
/**
* 分销关系绑定模式枚举
*/
export
const
BrokerageBindModeEnum
=
{
ANYTIME
:
{
mode
:
0
,
name
:
'没有推广人'
},
REGISTER
:
{
mode
:
1
,
name
:
'新用户'
}
}
/**
* 分佣模式枚举
*/
export
const
BrokerageEnabledConditionEnum
=
{
ALL
:
{
condition
:
0
,
name
:
'人人分销'
},
ADMIN
:
{
condition
:
1
,
name
:
'指定分销'
}
}
src/utils/dict.ts
View file @
5a9764c0
...
...
@@ -143,6 +143,10 @@ export enum DICT_TYPE {
// ========== MALL - 会员模块 ==========
MEMBER_POINT_BIZ_TYPE
=
'member_point_biz_type'
,
// 积分的业务类型
BROKERAGE_ENABLED_CONDITION
=
'brokerage_enabled_condition'
,
// 分佣模式
BROKERAGE_BIND_MODE
=
'brokerage_bind_mode'
,
// 分销关系绑定模式
BROKERAGE_BANK_NAME
=
'brokerage_bank_name'
,
// 佣金提现银行
BROKERAGE_WITHDRAW_TYPE
=
'brokerage_withdraw_type'
,
// 佣金冻结时间
// ========== MALL - 商品模块 ==========
PRODUCT_UNIT
=
'product_unit'
,
// 商品单位
...
...
src/views/member/point/config/index.vue
View file @
5a9764c0
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment