📖 code review:【分销】我的团队

pull/36/MERGE
YunaiV 2024-01-04 13:46:47 +08:00
parent 9e25f8e944
commit 2317d14ef5
3 changed files with 473 additions and 436 deletions

View File

@ -1,99 +1,165 @@
<!-- 页面 TODO 芋艿检查未开发 --> <!-- 页面 TODO 芋艿该页面的实现代码需要优化包括 js css以及相关的样式设计 -->
<template> <template>
<s-layout title="我的团队" :class="state.scrollTop ? 'team-wrap' : ''" navbar="inner"> <s-layout title="我的团队" :class="state.scrollTop ? 'team-wrap' : ''" navbar="inner">
<view class="promoter-list"> <view class="promoter-list">
<view class='promoterHeader bg-color' style='backgroundColor:#e93323!important;height:218rpx;color:#fff'> <view
<view class='headerCon acea-row row-between' style='padding: 28px 29px 0 29px;'> class="promoterHeader bg-color"
<view> style="backgroundcolor: #e93323 !important; height: 218rpx; color: #fff"
<view class='name' style="color:#fff">推广人数</view> >
<view><text class='num' <view class="headerCon acea-row row-between" style="padding: 28px 29px 0 29px">
style="color:#fff">{{(state.getSummary.firstBrokerageUserCount+ state.getSummary.secondBrokerageUserCount)|| 0 }}</text> <view>
</view> <view class="name" style="color: #fff">推广人数</view>
</view> <view>
<view class='iconfont icon-tuandui'></view> <text class="num" style="color: #fff">
</view> {{
</view> state.summary.firstBrokerageUserCount + state.summary.secondBrokerageUserCount ||
<view style='padding: 0 30rpx;'> 0
<view class='nav acea-row row-around l1'> }}
<view :class="state.level == 1 ? 'item on' : 'item'" @click='setType(1)'> </text>
一级({{state.getSummary.firstBrokerageUserCount || 0 }})</view>
<view :class="state.level == 2 ? 'item on' : 'item'" @click='setType(2)'> </view>
二级({{state.getSummary.secondBrokerageUserCount || 0 }}) </view>
</view> <view class="iconfont icon-tuandui" />
</view> </view>
<view class='search acea-row row-between-wrapper' </view>
style="display: flex;height: 100rpx;align-items: center;"> <view style="padding: 0 30rpx">
<view class='input'> <view class="nav acea-row row-around l1">
<input placeholder='点击搜索会员名称' v-model="state.nickname" confirm-type='search' name="search" <view :class="state.level == 1 ? 'item on' : 'item'" @click="setType(1)">
@confirm="submitForm" /> 一级({{ state.summary.firstBrokerageUserCount || 0 }})
</view>
<view :class="state.level == 2 ? 'item on' : 'item'" @click="setType(2)">
二级({{ state.summary.secondBrokerageUserCount || 0 }})
</view>
</view>
<view
class="search acea-row row-between-wrapper"
style="display: flex; height: 100rpx; align-items: center"
>
<view class="input">
<input
placeholder="点击搜索会员名称"
v-model="state.nickname"
confirm-type="search"
name="search"
@confirm="submitForm"
/>
</view>
<image
src="/static/images/search.png"
mode=""
style="width: 60rpx; height: 64rpx"
@click="submitForm"
/>
</view>
<view class="list">
<view class="sortNav acea-row row-middle" style="display: flex; align-items: center">
<view
class="sortItem"
@click="setSort('userCount', 'asc')"
v-if="sort === 'userCountDESC'"
>
团队排序
<!-- TODO 芋艿看看怎么从项目里拿出去 -->
<image src="/static/images/sort1.png" />
</view>
<view
class="sortItem"
@click="setSort('userCount', 'desc')"
v-else-if="sort === 'userCountASC'"
>
团队排序
<image src="/static/images/sort3.png" />
</view>
<view class="sortItem" @click="setSort('userCount', 'desc')" v-else>
团队排序
<image src="/static/images/sort2.png" />
</view>
<view class="sortItem" @click="setSort('price', 'asc')" v-if="sort === 'priceDESC'">
金额排序
<image src="/static/images/sort1.png" />
</view>
<view
class="sortItem"
@click="setSort('price', 'desc')"
v-else-if="sort === 'priceASC'"
>
金额排序
<image src="/static/images/sort3.png" />
</view>
<view class="sortItem" @click="setSort('price', 'desc')" v-else>
金额排序
<image src="/static/images/sort2.png" />
</view>
<view
class="sortItem"
@click="setSort('orderCount', 'asc')"
v-if="sort === 'orderCountDESC'"
>
订单排序
<image src="/static/images/sort1.png" />
</view>
<view
class="sortItem"
@click="setSort('orderCount', 'desc')"
v-else-if="sort === 'orderCountASC'"
>
订单排序
<image src="/static/images/sort3.png" />
</view>
<view class="sortItem" @click="setSort('orderCount', 'desc')" v-else>
订单排序
<image src="/static/images/sort2.png" />
</view>
</view>
<block v-for="(item, index) in state.pagination.list" :key="index">
<view class="item acea-row row-between-wrapper" style="display: flex">
<view
class="picTxt acea-row row-between-wrapper"
style="display: flex; align-items: center"
>
<view class="pictrue">
<image :src="item.avatar" />
</view>
<view class="text">
<view class="name line1">{{ item.nickname }}</view>
<view>
加入时间:
{{ sheep.$helper.timeFormat(item.brokerageTime, 'yyyy-mm-dd hh:MM:ss') }}
</view>
</view>
</view>
<view
class="right"
style="
justify-content: center;
flex-direction: column;
display: flex;
margin-left: auto;
"
>
<view>
<text class="num font-color">{{ item.brokerageUserCount || 0 }} </text>
</view>
<view>
<text class="num">{{ item.orderCount || 0 }}</text
></view
>
<view>
<text class="num">{{ item.brokeragePrice || 0 }}</text
>
</view>
</view>
</view>
</block>
<block v-if="state.pagination.list.length === 0">
<view style="text-align: center">暂无推广人数</view>
</block>
</view>
</view>
</view>
<!-- <home></home> -->
</view> <!-- <view class="header-box" :style="[
<image src="/static/images/search.png" mode="" style='width: 60rpx;height: 64rpx;' @click="submitForm"></image>
</view>
<view class='list'>
<view class="sortNav acea-row row-middle" style="display: flex;align-items: center;">
<view class="sortItem" @click='setSort("userCount","asc")' v-if="sort === 'userCountDESC'">
团队排序
<image src='/static/images/sort1.png'></image>
</view>
<view class="sortItem" @click='setSort("userCount", "desc")'
v-else-if="sort === 'userCountASC'">团队排序
<image src='/static/images/sort3.png'></image>
</view>
<view class="sortItem" @click='setSort("userCount","desc")' v-else>
<image src='/static/images/sort2.png'></image>
</view>
<view class="sortItem" @click='setSort("price","asc")' v-if="sort === 'priceDESC'">
金额排序
<image src='/static/images/sort1.png'></image>
</view>
<view class="sortItem" @click='setSort("price", "desc")' v-else-if="sort === 'priceASC'">
金额排序
<image src='/static/images/sort3.png'></image>
</view>
<view class="sortItem" @click='setSort("price","desc")' v-else>
<image src='/static/images/sort2.png'></image>
</view>
<view class="sortItem" @click='setSort("orderCount","asc")' v-if="sort === 'orderCountDESC'">
订单排序
<image src='/static/images/sort1.png'></image>
</view>
<view class="sortItem" @click='setSort("orderCount", "desc")'
v-else-if="sort === 'orderCountASC'">订单排序
<image src='/static/images/sort3.png'></image>
</view>
<view class="sortItem" @click='setSort("orderCount","desc")' v-else>
<image src='/static/images/sort2.png'></image>
</view>
</view>
<block v-for="(item,index) in state.pagination.data" :key="index">
<view class='item acea-row row-between-wrapper' style="display: flex;">
<view class="picTxt acea-row row-between-wrapper" style="display: flex;align-items: center;">
<view class='pictrue'>
<image :src='item.avatar'></image>
</view>
<view class='text'>
<view class='name line1'>{{item.nickname}}</view>
<view>加入时间: {{ sheep.$helper.timeFormat(item.brokerageTime, 'yyyy-mm-dd hh:MM:ss') }}</view>
</view>
</view>
<view class="right" style='justify-content:center;flex-direction: column;display: flex;margin-left: auto;'>
<view><text class='num font-color'>{{ item.brokerageUserCount || 0}}</text>
</view>
<view><text class="num">{{ item.orderCount|| 0}}</text></view>
<view><text class="num">{{ item.brokeragePrice || 0 }}</text></view>
</view>
</view>
</block>
<block v-if="state.pagination.data.length == 0">
<view style='text-align: center;'>暂无推广人数</view>
</block>
</view>
</view>
</view>
<!-- <home></home> -->
<!-- <view class="header-box" :style="[
{ {
marginTop: '-' + Number(statusBarHeight + 88) + 'rpx', marginTop: '-' + Number(statusBarHeight + 88) + 'rpx',
paddingTop: Number(statusBarHeight + 108) + 'rpx', paddingTop: Number(statusBarHeight + 108) + 'rpx',
@ -111,17 +177,17 @@
<view class="total-item"> <view class="total-item">
<view class="item-title">团队总人数</view> <view class="item-title">团队总人数</view>
<view class="total-num"> <view class="total-num">
{{ (state.getSummary.firstBrokerageUserCount+ state.getSummary.secondBrokerageUserCount)|| 0 }} {{ (state.summary.firstBrokerageUserCount+ state.summary.secondBrokerageUserCount)|| 0 }}
</view> </view>
</view> </view>
<view class="category-item ss-flex"> <view class="category-item ss-flex">
<view class="ss-flex-1"> <view class="ss-flex-1">
<view class="item-title">一级成员</view> <view class="item-title">一级成员</view>
<view class="category-num">{{ state.getSummary.firstBrokerageUserCount || 0 }}</view> <view class="category-num">{{ state.summary.firstBrokerageUserCount || 0 }}</view>
</view> </view>
<view class="ss-flex-1"> <view class="ss-flex-1">
<view class="item-title">二级成员</view> <view class="item-title">二级成员</view>
<view class="category-num">{{ state.getSummary.secondBrokerageUserCount || 0 }}</view> <view class="category-num">{{ state.summary.secondBrokerageUserCount || 0 }}</view>
</view> </view>
</view> </view>
</view> </view>
@ -162,375 +228,354 @@
</view> </view>
<s-empty v-if="state.pagination.total === 0" icon="/static/data-empty.png" text="暂无团队信息"> <s-empty v-if="state.pagination.total === 0" icon="/static/data-empty.png" text="暂无团队信息">
</s-empty> --> </s-empty> -->
</s-layout> </s-layout>
</template> </template>
<script setup> <script setup>
import sheep from '@/sheep'; import sheep from '@/sheep';
import { import { onLoad, onReachBottom } from '@dcloudio/uni-app';
onLoad, import { computed, reactive, ref } from 'vue';
onReachBottom import _ from 'lodash';
} from '@dcloudio/uni-app'; import { onPageScroll } from '@dcloudio/uni-app';
import { import BrokerageApi from '@/sheep/api/trade/brokerage';
computed,
reactive,
ref
} from 'vue';
import _ from 'lodash';
import {
onPageScroll
} from '@dcloudio/uni-app';
const statusBarHeight = sheep.$platform.device.statusBarHeight * 2;
// const agentInfo = computed(() => sheep.$store('user').agentInfo);
const userInfo = computed(() => sheep.$store('user').userInfo);
const headerBg = sheep.$url.css('/static/img/shop/user/withdraw_bg.png');
onPageScroll((e) => {
state.scrollTop = e.scrollTop <= 100;
});
let sort = ref();
const state = reactive({
summary: {},
pagination: {
pageNo: 1,
pageSize: 8,
list: [],
total: 0,
},
loadStatus: '',
// ui
level: 1,
nickname: ref(''),
sortKey: '',
isAsc: '',
});
function filterUserNum(num) {
if (_.isNil(num)) {
return '';
}
return `下级团队${num}`;
}
const statusBarHeight = sheep.$platform.device.statusBarHeight * 2; function submitForm() {
const agentInfo = computed(() => sheep.$store('user').agentInfo); state.pagination.list = [];
const userInfo = computed(() => sheep.$store('user').userInfo); getTeamList();
const headerBg = sheep.$url.css('/static/img/shop/user/withdraw_bg.png'); }
onPageScroll((e) => { async function getTeamList() {
if (e.scrollTop > 100) { state.loadStatus = 'loading';
state.scrollTop = false; let { code, data } = await BrokerageApi.getBrokerageUserChildSummaryPage({
} else { pageNo: state.pagination.pageNo,
state.scrollTop = true; pageSize: state.pagination.pageSize,
} level: state.level,
}); 'sortingField.order': state.isAsc,
let sort=ref(); 'sortingField.field': state.sortKey,
const state = reactive({ nickname: state.nickname,
getSummary: {}, });
pagination: { if (code !== 0) {
data: [], return;
current_page: 1, }
total: 1, state.pagination.list = _.concat(state.pagination.list, data.list);
last_page: 1, state.pagination.total = data.total;
}, state.loadStatus = state.pagination.list.length < state.pagination.total ? 'more' : 'noMore';
loadStatus: '', }
// ui
level: 1,
nickname: ref(''),
sortKey:'',
isAsc:''
});
function setType(e) {
state.pagination.list = [];
state.level = e + '';
getTeamList();
}
function filterUserNum(num) { function setSort(sortKey, isAsc) {
if (_.isNil(num)) { state.pagination.list = [];
return ''; sort = sortKey + isAsc.toUpperCase();
} state.isAsc = isAsc;
return `下级团队${num}`; state.sortKey = sortKey;
} getTeamList();
}
function submitForm() { onLoad(async () => {
state.pagination.data = [] await getTeamList();
getTeamList(); //
} let { data } = await BrokerageApi.getBrokerageUserSummary();
async function getTeamList(page = 1, list_rows = 8) { state.summary = data;
state.loadStatus = 'loading'; });
// nickname: this.nickname,
//
function loadMore() {
if (state.loadStatus === 'noMore') {
return;
}
state.pagination.pageNo++;
getTeamList();
}
let res = await sheep.$api.commission.team({ //
pageSize: list_rows, onReachBottom(() => {
pageNo: page, loadMore();
level: state.level, });
'sortingField.order': 'desc',
'sortingField.field': 'userCount',
nickname: state.nickname
});
console.log(res, '分销团队列表');
if (res.code === 0) {
let orderList = _.concat(state.pagination.data, res.data.list);
state.pagination = {
...res.data,
data: orderList,
};
if (state.pagination.data.length < state.pagination.total) {
state.loadStatus = 'more';
} else {
state.loadStatus = 'noMore';
}
}
}
function setType(e) {
state.pagination.data = []
state.level = e + '';
getTeamList( )
}
function setSort(sortKey, isAsc) {
state.pagination.data = []
sort = sortKey + isAsc.toUpperCase();
state.isAsc=isAsc;
state.sortKey=sortKey;
getTeamList();
}
onLoad(async () => {
getTeamList();
let res = await sheep.$api.commission.getSummary();
state.getSummary = res.data;
});
//
function loadmore() {
if (state.loadStatus !== 'noMore') {
getTeamList(state.pagination.current_page + 1);
}
}
//
onReachBottom(() => {
loadmore();
});
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.l1 { .l1 {
background-color: #fff; background-color: #fff;
height: 86rpx; height: 86rpx;
line-height: 86rpx; line-height: 86rpx;
font-size: 28rpx; font-size: 28rpx;
color: #282828; color: #282828;
border-bottom: 1rpx solid #eee; border-bottom: 1rpx solid #eee;
border-top-left-radius: 14rpx; border-top-left-radius: 14rpx;
border-top-right-radius: 14rpx; border-top-right-radius: 14rpx;
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
} }
.header-box { .header-box {
box-sizing: border-box; box-sizing: border-box;
padding: 0 20rpx 20rpx 20rpx; padding: 0 20rpx 20rpx 20rpx;
width: 750rpx; width: 750rpx;
z-index: 3; z-index: 3;
position: relative; position: relative;
background: v-bind(headerBg) no-repeat, background: v-bind(headerBg) no-repeat,
linear-gradient(90deg, var(--ui-BG-Main), var(--ui-BG-Main-gradient)); linear-gradient(90deg, var(--ui-BG-Main), var(--ui-BG-Main-gradient));
background-size: 750rpx 100%; background-size: 750rpx 100%;
// //
.team-data-box { .team-data-box {
.data-card { .data-card {
width: 305rpx; width: 305rpx;
background: #ffffff; background: #ffffff;
border-radius: 20rpx; border-radius: 20rpx;
padding: 20rpx; padding: 20rpx;
.item-title { .item-title {
font-size: 22rpx; font-size: 22rpx;
font-weight: 500; font-weight: 500;
color: #999999; color: #999999;
line-height: 30rpx; line-height: 30rpx;
margin-bottom: 10rpx; margin-bottom: 10rpx;
} }
.total-item { .total-item {
margin-bottom: 30rpx; margin-bottom: 30rpx;
} }
.total-num { .total-num {
font-size: 38rpx; font-size: 38rpx;
font-weight: 500; font-weight: 500;
color: #333333; color: #333333;
font-family: OPPOSANS; font-family: OPPOSANS;
} }
.category-num { .category-num {
font-size: 26rpx; font-size: 26rpx;
font-weight: 500; font-weight: 500;
color: #333333; color: #333333;
font-family: OPPOSANS; font-family: OPPOSANS;
} }
} }
} }
} }
.list-box { .list-box {
z-index: 3; z-index: 3;
position: relative; position: relative;
} }
.chat-custom-right { .chat-custom-right {
.time-text { .time-text {
font-size: 22rpx; font-size: 22rpx;
font-weight: 400; font-weight: 400;
color: #999999; color: #999999;
} }
.tag-box { .tag-box {
background: rgba(0, 0, 0, 0.2); background: rgba(0, 0, 0, 0.2);
border-radius: 21rpx; border-radius: 21rpx;
line-height: 30rpx; line-height: 30rpx;
padding: 5rpx 10rpx; padding: 5rpx 10rpx;
width: 140rpx; width: 140rpx;
.tag-img { .tag-img {
width: 34rpx; width: 34rpx;
height: 34rpx; height: 34rpx;
margin-right: 6rpx; margin-right: 6rpx;
border-radius: 50%; border-radius: 50%;
} }
.tag-title { .tag-title {
font-size: 18rpx; font-size: 18rpx;
font-weight: 500; font-weight: 500;
color: rgba(255, 255, 255, 1); color: rgba(255, 255, 255, 1);
line-height: 20rpx; line-height: 20rpx;
} }
} }
} }
// //
.referrer-box { .referrer-box {
font-size: 28rpx; font-size: 28rpx;
font-weight: 500; font-weight: 500;
color: #ffffff; color: #ffffff;
padding: 20rpx; padding: 20rpx;
.referrer-avatar { .referrer-avatar {
width: 34rpx; width: 34rpx;
height: 34rpx; height: 34rpx;
border-radius: 50%; border-radius: 50%;
} }
} }
.promoter-list .nav { .promoter-list .nav {
background-color: #fff; background-color: #fff;
height: 86rpx; height: 86rpx;
line-height: 86rpx; line-height: 86rpx;
font-size: 28rpx; font-size: 28rpx;
color: #282828; color: #282828;
border-bottom: 1rpx solid #eee; border-bottom: 1rpx solid #eee;
border-top-left-radius: 14rpx; border-top-left-radius: 14rpx;
border-top-right-radius: 14rpx; border-top-right-radius: 14rpx;
margin-top: -30rpx; margin-top: -30rpx;
} }
.promoter-list .nav .item.on { .promoter-list .nav .item.on {
border-bottom: 5rpx solid; border-bottom: 5rpx solid;
// $theme-color // $theme-color
color: red; color: red;
// $theme-color // $theme-color
} }
.promoter-list .search { .promoter-list .search {
width: 100%; width: 100%;
background-color: #fff; background-color: #fff;
height: 100rpx; height: 100rpx;
padding: 0 24rpx; padding: 0 24rpx;
box-sizing: border-box; box-sizing: border-box;
border-bottom-left-radius: 14rpx; border-bottom-left-radius: 14rpx;
border-bottom-right-radius: 14rpx; border-bottom-right-radius: 14rpx;
} }
.promoter-list .search .input { .promoter-list .search .input {
width: 592rpx; width: 592rpx;
height: 60rpx; height: 60rpx;
border-radius: 50rpx; border-radius: 50rpx;
background-color: #f5f5f5; background-color: #f5f5f5;
text-align: center; text-align: center;
position: relative; position: relative;
} }
.promoter-list .search .input input { .promoter-list .search .input input {
height: 100%; height: 100%;
font-size: 26rpx; font-size: 26rpx;
width: 610rpx; width: 610rpx;
text-align: center; text-align: center;
} }
.promoter-list .search .input .placeholder { .promoter-list .search .input .placeholder {
color: #bbb; color: #bbb;
} }
.promoter-list .search .input .iconfont { .promoter-list .search .input .iconfont {
position: absolute; position: absolute;
right: 28rpx; right: 28rpx;
color: #999; color: #999;
font-size: 28rpx; font-size: 28rpx;
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
} }
.promoter-list .search .iconfont { .promoter-list .search .iconfont {
font-size: 32rpx; font-size: 32rpx;
color: #515151; color: #515151;
height: 60rpx; height: 60rpx;
line-height: 60rpx; line-height: 60rpx;
} }
.promoter-list .list { .promoter-list .list {
margin-top: 20rpx; margin-top: 20rpx;
} }
.promoter-list .list .sortNav { .promoter-list .list .sortNav {
background-color: #fff; background-color: #fff;
height: 76rpx; height: 76rpx;
border-bottom: 1rpx solid #eee; border-bottom: 1rpx solid #eee;
color: #333; color: #333;
font-size: 28rpx; font-size: 28rpx;
border-top-left-radius: 14rpx; border-top-left-radius: 14rpx;
border-top-right-radius: 14rpx; border-top-right-radius: 14rpx;
} }
.promoter-list .list .sortNav .sortItem { .promoter-list .list .sortNav .sortItem {
text-align: center; text-align: center;
flex: 1; flex: 1;
} }
.promoter-list .list .sortNav .sortItem image { .promoter-list .list .sortNav .sortItem image {
width: 24rpx; width: 24rpx;
height: 24rpx; height: 24rpx;
margin-left: 6rpx; margin-left: 6rpx;
vertical-align: -3rpx; vertical-align: -3rpx;
} }
.promoter-list .list .item { .promoter-list .list .item {
background-color: #fff; background-color: #fff;
border-bottom: 1rpx solid #eee; border-bottom: 1rpx solid #eee;
height: 152rpx; height: 152rpx;
padding: 0 24rpx; padding: 0 24rpx;
font-size: 24rpx; font-size: 24rpx;
color: #666; color: #666;
} }
.promoter-list .list .item .picTxt .pictrue { .promoter-list .list .item .picTxt .pictrue {
width: 106rpx; width: 106rpx;
height: 106rpx; height: 106rpx;
border-radius: 50%; border-radius: 50%;
} }
.promoter-list .list .item .picTxt .pictrue image { .promoter-list .list .item .picTxt .pictrue image {
width: 100%; width: 100%;
height: 100%; height: 100%;
border-radius: 50%; border-radius: 50%;
border: 3rpx solid #fff; border: 3rpx solid #fff;
box-shadow: 0 0 10rpx #aaa; box-shadow: 0 0 10rpx #aaa;
box-sizing: border-box; box-sizing: border-box;
} }
.promoter-list .list .item .picTxt .text { .promoter-list .list .item .picTxt .text {
// width: 304rpx; // width: 304rpx;
font-size: 24rpx; font-size: 24rpx;
color: #666; color: #666;
margin-left: 14rpx; margin-left: 14rpx;
} }
.promoter-list .list .item .picTxt .text .name { .promoter-list .list .item .picTxt .text .name {
font-size: 28rpx; font-size: 28rpx;
color: #333; color: #333;
margin-bottom: 13rpx; margin-bottom: 13rpx;
} }
.promoter-list .list .item .right { .promoter-list .list .item .right {
text-align: right; text-align: right;
font-size: 22rpx; font-size: 22rpx;
color: #333; color: #333;
} }
.promoter-list .list .item .right .num { .promoter-list .list .item .right .num {
margin-right: 7rpx; margin-right: 7rpx;
} }
</style> </style>

View File

@ -1,16 +0,0 @@
import request from '@/sheep/request';
export default {
// 我的团队
team: (params) =>
request({
url: '/app-api/trade/brokerage-user/child-summary-page',
method: 'GET',
params,
}),
getSummary: (data) =>
request({
url: '/app-api/trade/brokerage-user/get-summary',
method: 'GET',
})
};

View File

@ -74,6 +74,14 @@ const BrokerageApi = {
method: 'GET', method: 'GET',
}); });
}, },
// 获得下级分销统计分页
getBrokerageUserChildSummaryPage: (params) => {
return request({
url: '/app-api/trade/brokerage-user/child-summary-page',
method: 'GET',
params,
})
}
} }
export default BrokerageApi export default BrokerageApi