diff --git a/api/agent.js b/api/agent.js
index dfb7570..3f4c1c8 100644
--- a/api/agent.js
+++ b/api/agent.js
@@ -28,6 +28,10 @@ export function getSingleAgentInfo(id) {
export function getAgentConfig() {
return request.get(`agent/get_config`);
}
+// 佣金明细
+export function commissionList(data) {
+ return request.get(`agent/commission_list`, data);
+}
diff --git a/pages.json b/pages.json
index 89c2fd0..78ffe0e 100644
--- a/pages.json
+++ b/pages.json
@@ -1347,6 +1347,12 @@
"style": {
"navigationBarTitleText": "下级管理"
}
+ },
+ {
+ "path": "user/commission",
+ "style": {
+ "navigationBarTitleText": "佣金明细"
+ }
}
diff --git a/pages/agent/center.vue b/pages/agent/center.vue
index d3d554e..9c54bd1 100644
--- a/pages/agent/center.vue
+++ b/pages/agent/center.vue
@@ -203,6 +203,15 @@ export default {
icon: 'iconfont icon-yonghu1',
});
}
+ // 除内勤外都有佣金明细
+ if(!['4'].includes(String(agentType))){
+ menuList.push({
+ title: '佣金明细',
+ type: 'link',
+ url: '/pages/agent/user/commission',
+ icon: 'iconfont icon-yonghu1',
+ });
+ }
return menuList;
diff --git a/pages/agent/user/commission.vue b/pages/agent/user/commission.vue
new file mode 100644
index 0000000..82d773e
--- /dev/null
+++ b/pages/agent/user/commission.vue
@@ -0,0 +1,230 @@
+
+
+
+
+
+ {{ total }}
+ 总获得佣金
+
+
+
+
+
+ {{ item.source == 1 ? '邀请下级奖励' : '用户购买会员卡奖励' }}
+ + {{ item.brokerage || '0.00' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+