diff --git a/src/api/system/smUser.js b/src/api/system/smUser.js index 5d1b9c0..86ee5c1 100644 --- a/src/api/system/smUser.js +++ b/src/api/system/smUser.js @@ -44,15 +44,6 @@ export function updateSmUser(data) { }) } -// 修改普通用户服务费 -export function updateServiceRate(data) { - return request({ - url: '/system/smUser/updateServiceRate', - method: 'put', - data: data - }) -} - // 删除普通用户信息 export function delSmUser(userId) { return request({ @@ -60,3 +51,11 @@ export function delSmUser(userId) { method: 'delete' }) } + +// 重置用户服务费 +export function resetSmUserService(userId) { + return request({ + url: `/system/smUser/${userId}/resetService`, + method: 'put' + }) +} diff --git a/src/utils/constants.js b/src/utils/constants.js index d5f9c04..a200627 100644 --- a/src/utils/constants.js +++ b/src/utils/constants.js @@ -2,3 +2,11 @@ export const views = { user: 'user', } + +// 收款账户类型 +export const AccountType = { + BANK_CARD: "1", // 银行卡 + WECHAT: "2", // 微信 + ALI_PAY: "3", // 支付宝 + OFFLINE_IMAGE: "4" // 线下收款 +} diff --git a/src/utils/mixins.js b/src/utils/mixins.js index 73d301e..e68a313 100644 --- a/src/utils/mixins.js +++ b/src/utils/mixins.js @@ -65,7 +65,7 @@ export const $showColumns = { }, } -// 服务费 +// 充值服务费 export const $serviceType = { computed: { // 服务费单位 @@ -76,3 +76,15 @@ export const $serviceType = { } } } + +// 提现服务费 +export const $withdrawServiceType = { + computed: { + // 提现服务费单位 + withdrawServiceUnit() { + return (type) => { + return type === '2' ? '元' : '%'; + } + } + } +} diff --git a/src/views/ss/account/index.vue b/src/views/ss/account/index.vue index 8296c9e..07572b2 100644 --- a/src/views/ss/account/index.vue +++ b/src/views/ss/account/index.vue @@ -78,6 +78,7 @@ :prop="column.key" :align="column.align" :min-width="column.minWidth" + :width="column.width" :sort-orders="orderSorts" :sortable="column.sortable" :show-overflow-tooltip="column.overflow" @@ -86,12 +87,18 @@ -