- 后端:RlzDispatch/Profit/Promotion/Region 控制器、服务、Mapper、领域模型 - 权限:MethodSecurityConfig + PermissionInterceptor - 管理后台:派单/分润/推广/区域 页面与 API - Android 陪护端:派单/运营/退款 Fragment 及布局 - 小程序:推广员子包、派单/运营/退款/检索子包、自定义 tabBar - 文档:多角色系统方案、角色权限矩阵、用户操作手册等 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
28 lines
1000 B
JavaScript
28 lines
1000 B
JavaScript
var app = getApp();
|
|
var { request } = require('../../../utils/request');
|
|
|
|
Page({
|
|
data: {
|
|
stats: { inviteCount: 0, teamCount: 0, totalCommission: '0', settledCommission: '0', pendingCommission: '0', orderCount: 0, promotionCode: '' },
|
|
loading: true
|
|
},
|
|
|
|
onShow() { this.loadStats(); },
|
|
|
|
onPullDownRefresh() { this.loadStats().finally(function() { wx.stopPullDownRefresh(); }); },
|
|
|
|
async loadStats() {
|
|
this.setData({ loading: true });
|
|
try {
|
|
var res = await request({ url: '/system/promotion/myStats', method: 'GET', loading: false });
|
|
if (res.code === 200 && res.data) {
|
|
this.setData({ stats: res.data, loading: false });
|
|
}
|
|
} catch (e) { this.setData({ loading: false }); }
|
|
},
|
|
|
|
goTeam() { wx.navigateTo({ url: '/subPackages/pages-promoter/team/team' }); },
|
|
goCommission() { wx.navigateTo({ url: '/subPackages/pages-promoter/commission/commission' }); },
|
|
goShare() { wx.navigateTo({ url: '/subPackages/pages-promoter/share/share' }); }
|
|
});
|