文件
fenleixinxi/uniapp/common/api/distribution.js
MiAn 589d6aa216 feat: 新增提现详情页与撤销微信转账功能
新增分销提现单详情页面及接口,支持查看提现单据完整信息;新增后台撤销转账中提现单功能,前端添加对应操作按钮与交互逻辑;完善提现记录跳转逻辑,支持点击进入详情页,同时新增部署脚本同步线上代码。
2026-10-28 17:46:51 +08:00

27 行
1.3 KiB
JavaScript

/**
* 接口模块 · 分销中心(用户端)
* 对应模块:分销首页 / 团队管理 / 收益明细 / 推广海报 / 佣金提现
*/
import { get, post } from '../utils/request.js'
export const distributionApi = {
/** 佣金概览(含邀请码/分销规则) */
overview: () => get('/distribution/overview', {}, { silent: true }),
/** 一/二级下线列表与业绩 */
team: (params = {}) => get('/distribution/team', params, { silent: true }),
/** 分销收益明细账单(佣金流水) */
commissions: (params = {}) => get('/distribution/commissions', params, { silent: true }),
/** 专属推广海报要素(支持传入 postId 获取详情页小程序码) */
poster: (params = {}) => get('/distribution/poster', params, { silent: true }),
/** 申请提现(提现至微信零钱) */
withdraw: (payload) => post('/distribution/withdraw', payload, { silent: true }),
/** 提现记录 */
withdrawRecords: () => get('/distribution/withdraw-records', {}, { silent: true }),
/** 提现单详情 */
withdrawDetail: (params = {}) => get('/distribution/withdraw-detail', params, { silent: true }),
/** 绑定分销推荐人(扫码自动补绑 / 手动填写邀请码绑定) */
bind: (payload = {}) => post('/distribution/bind', payload, { silent: true }),
}
export default distributionApi