diff --git a/src/api/coupon/index.js b/src/api/coupon/index.js
index 3386275..53cc0a0 100644
--- a/src/api/coupon/index.js
+++ b/src/api/coupon/index.js
@@ -666,6 +666,80 @@ export function distributionCashPay(data) {
});
}
+// 分销-分销员:添加分销员
+export function distributionUser(data, method = 'post') {
+ return request({
+ url: `${Market_BaseUrl}/admin/distribution/user`,
+ method: method,
+ data
+ });
+}
+
+// 分销员:分销员列表 下级用户列表
+export function distributionUserPage(params) {
+ return request({
+ url: `${Market_BaseUrl}/admin/distribution/user`,
+ method: 'get',
+ params
+ });
+}
+
+// 分销员:开通记录
+export function distributionOpenFlow(params) {
+ return request({
+ url: `${Market_BaseUrl}/admin/distribution/openFlow`,
+ method: 'get',
+ params
+ });
+}
+
+// 分销员:分销明细
+export function distributionFlowGet(params) {
+ return request({
+ url: `${Market_BaseUrl}/admin/distribution/distributionFlow`,
+ method: 'get',
+ params
+ });
+}
+
+// 分销员:用户提现列表
+export function distributionWithdrawFlow(params) {
+ return request({
+ url: `${Market_BaseUrl}/admin/distribution/withdrawFlow`,
+ method: 'get',
+ params
+ });
+}
+
+// 分销员:充值二维码获取
+export function distributionRechargeQrCode(params) {
+ return request({
+ url: `${Market_BaseUrl}/admin/distribution/rechargeQrCode`,
+ method: 'get',
+ params
+ });
+}
+
+// 店铺列表, 只允许管理员调用
+export function shopInfoList(params) {
+ return request({
+ url: `${Account_BaseUrl}/admin/shopInfo`,
+ method: 'get',
+ params
+ });
+}
+
+// 分销, 金额记录
+export function distributionShopFlow(params) {
+ return request({
+ url: `${Market_BaseUrl}/admin/distribution/flow`,
+ method: 'get',
+ params
+ });
+}
+
+
+
diff --git a/src/assets/fenxiao/10.png b/src/assets/fenxiao/10.png
new file mode 100644
index 0000000..172b92b
Binary files /dev/null and b/src/assets/fenxiao/10.png differ
diff --git a/src/assets/fenxiao/8.png b/src/assets/fenxiao/8.png
new file mode 100644
index 0000000..d96e357
Binary files /dev/null and b/src/assets/fenxiao/8.png differ
diff --git a/src/assets/fenxiao/9.png b/src/assets/fenxiao/9.png
new file mode 100644
index 0000000..e543725
Binary files /dev/null and b/src/assets/fenxiao/9.png differ
diff --git a/src/views/distribution_manage/components/addBlance.vue b/src/views/distribution_manage/components/addBlance.vue
new file mode 100644
index 0000000..6fbb899
--- /dev/null
+++ b/src/views/distribution_manage/components/addBlance.vue
@@ -0,0 +1,111 @@
+
+
+
+
+
+
+
+
+ form.expense = filterNumberInput(e)">
+ 元
+
+ 当前余额:{{ multiplyAndFormat(row.amount) }}
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/distribution_manage/components/record.vue b/src/views/distribution_manage/components/record.vue
new file mode 100644
index 0000000..4959796
--- /dev/null
+++ b/src/views/distribution_manage/components/record.vue
@@ -0,0 +1,172 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+ {{statusList.find(item => item.value === scope.row.type).label}}
+
+
+
+
+ {{ multiplyAndFormat(scope.row.changeAmount || 0) }}
+
+
+
+
+ {{ multiplyAndFormat(scope.row.amount || 0) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/distribution_manage/shop_recharge/index.vue b/src/views/distribution_manage/shop_recharge/index.vue
new file mode 100644
index 0000000..9d69504
--- /dev/null
+++ b/src/views/distribution_manage/shop_recharge/index.vue
@@ -0,0 +1,187 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.shopName }}
+
+
+ 正式
+ 试用版
+
+
+
+
+
+
+
+
+
{{shopTypeList.find(item => item.value == scope.row.shopType).label}}
+
(主店:{{ scope.row.headShopName }})
+
+
+
+
+
+
+ {{ multiplyAndFormat(scope.row.amount || 0) }}
+
+
+
+
+ 充值
+ 扣减
+ 查看记录
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/distribution_manage/user_withdraw_record/index.vue b/src/views/distribution_manage/user_withdraw_record/index.vue
new file mode 100644
index 0000000..4e937fb
--- /dev/null
+++ b/src/views/distribution_manage/user_withdraw_record/index.vue
@@ -0,0 +1,241 @@
+
+
+
+
+
用户提现记录
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+

+
+
+
提现中
+
{{ multiplyAndFormat(pending || 0) }}
+
+
+
+
+

+
+
+
成功提现
+
{{ multiplyAndFormat(finish || 0) }}
+
+
+
+
+
+
+
+
+
+
{{ scope.row.nickName }}
+
{{ scope.row.phone }}
+
+
+
+
+
+ {{ multiplyAndFormat((scope.row.amount + scope.row.serviceFee) || 0) }}
+
+
+
+
+ {{ multiplyAndFormat(scope.row.serviceFee || 0) }}
+
+
+
+
+ {{ multiplyAndFormat(scope.row.amount || 0) }}
+
+
+
+
+
+ {{statusList.find(item => item.value == scope.row.status).label}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/marketing_center/components/selectUser.vue b/src/views/marketing_center/components/selectUser.vue
new file mode 100644
index 0000000..01737be
--- /dev/null
+++ b/src/views/marketing_center/components/selectUser.vue
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/marketing_center/components/tabHeader.vue b/src/views/marketing_center/components/tabHeader.vue
index 40a4a07..6997ec6 100644
--- a/src/views/marketing_center/components/tabHeader.vue
+++ b/src/views/marketing_center/components/tabHeader.vue
@@ -22,7 +22,7 @@ const props = defineProps({
}
})
-const emits = defineEmits(['update:modelValue'])
+const emits = defineEmits(['update:modelValue', 'change'])
const modelValue = defineModel('modelValue', {
type: [String, Number],
@@ -40,6 +40,8 @@ function changeHandle(index) {
}
})
leftValue.value = left + gap.value * index
+
+ emits('change', index)
}
const itemRefs = ref([])
diff --git a/src/views/marketing_center/distribution_page/components/activation_record.vue b/src/views/marketing_center/distribution_page/components/activation_record.vue
index e7ea9ae..05ae788 100644
--- a/src/views/marketing_center/distribution_page/components/activation_record.vue
+++ b/src/views/marketing_center/distribution_page/components/activation_record.vue
@@ -9,7 +9,7 @@
支付开通人数
-
90000
+
{{ multiplyAndFormat(totalCount || 0) }}
@@ -18,7 +18,7 @@
已支付金额(元)
-
99.99
+
{{ multiplyAndFormat(totalAmount || 0) }}
@@ -31,20 +31,27 @@
@change="selectTimeChange">
-
+
- 搜索
- 重置
+ 搜索
+ 重置
-
-
-
-
+
+
+
+
+
{{ scope.row.nickName }}
+
{{ scope.row.opAccount }}
+
+
+
+
+
@@ -57,9 +64,15 @@
+
+
\ No newline at end of file
diff --git a/src/views/marketing_center/distribution_page/components/distributionUserDetail.vue b/src/views/marketing_center/distribution_page/components/distributionUserDetail.vue
new file mode 100644
index 0000000..716ad22
--- /dev/null
+++ b/src/views/marketing_center/distribution_page/components/distributionUserDetail.vue
@@ -0,0 +1,263 @@
+
+
+
+
+
+
+
+
{{ rowInfo.shopUserName }}
+
{{ rowInfo.shopUserPhone }}
+
+
+
+
+
+

+
+
+
总收益
+
¥{{ multiplyAndFormat(rowInfo.totalIncome || 0) }}
+
+
+
+
+

+
+
+
待入账
+
¥{{ multiplyAndFormat(rowInfo.pendingIncome || 0) }}
+
+
+
+
+

+
+
+
已入账
+
¥{{ multiplyAndFormat(rowInfo.receivedIncome || 0) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
{{ scope.row.shopUserName }}
+
{{ scope.row.shopUserPhone }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/marketing_center/distribution_page/components/distribution_details.vue b/src/views/marketing_center/distribution_page/components/distribution_details.vue
index e66e1a4..9a60ebb 100644
--- a/src/views/marketing_center/distribution_page/components/distribution_details.vue
+++ b/src/views/marketing_center/distribution_page/components/distribution_details.vue
@@ -9,7 +9,7 @@
已入账金额(元)
-
90000
+
{{ multiplyAndFormat(infoObj.balanceAmount || 0) }}
@@ -18,7 +18,7 @@
待入账金额(元)
-
99.99
+
{{ multiplyAndFormat(infoObj.pendingAmount || 0) }}
@@ -27,7 +27,7 @@
运营余额(元)
-
99.99
+
{{ multiplyAndFormat(infoObj.successAmount || 0) }}
@@ -40,17 +40,17 @@
@change="selectTimeChange">
-
+
- 搜索
- 重置
+ 搜索
+ 重置
充值
- 查看记录
+ 查看记录
@@ -58,13 +58,13 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -78,17 +78,25 @@
+
+
\ No newline at end of file
diff --git a/src/views/marketing_center/distribution_page/components/recharge_dialog.vue b/src/views/marketing_center/distribution_page/components/recharge_dialog.vue
index 279bc80..4507eb3 100644
--- a/src/views/marketing_center/distribution_page/components/recharge_dialog.vue
+++ b/src/views/marketing_center/distribution_page/components/recharge_dialog.vue
@@ -26,12 +26,16 @@
+
+
+ 充值¥{{ multiplyAndFormat(form.amount || 0) }}
+