feat(commission): 支持计奖商品参与设置、独立分成与多规格规则,完善团队中心与微信快捷登录

这个提交包含在:
chen
2026-09-17 19:27:17 +08:00
父节点 3c7df9688b
当前提交 829e88cfa9
共有 54 个文件被更改,包括 3536 次插入 和 666 次删除

查看文件

@@ -12,6 +12,19 @@
</view>
</view>
<!-- 穿透查看成员明细提示条 -->
<view v-if="state.buyerId > 0" class="buyer-filter-bar ss-flex ss-row-between ss-col-center">
<view class="ss-flex ss-col-center">
<uni-icons type="person-filled" size="16" color="#ff6000"></uni-icons>
<text class="filter-tip-text ss-m-l-10">
正在筛选成员:<text class="buyer-highlight">【{{ state.buyerName || ('ID:' + state.buyerId) }}】</text>的贡献
</text>
</view>
<button class="ss-reset-button clear-filter-btn" @tap="onClearBuyerFilter">
查看全部
</button>
</view>
<su-sticky>
<su-tabs
:list="tabMaps"
@@ -139,6 +152,8 @@
loadStatus: '',
showDetail: false,
current: null,
buyerId: 0,
buyerName: '',
overview: {
month_income: '0.00',
skip_count: 0,
@@ -179,11 +194,15 @@
async function getLogList(page = 1, list_rows = 10) {
state.loadStatus = 'loading';
try {
const res = await sheep.$api.partner.rewards({
tab: tabMaps[state.currentTab]?.value || 'all',
const params = {
tab: tabMaps.value[state.currentTab]?.value || 'all',
page,
list_rows,
});
};
if (state.buyerId > 0) {
params.buyer_id = state.buyerId;
}
const res = await sheep.$api.partner.rewards(params);
if (res?.code === 1) {
const pageData = pickList(res.data);
state.pagination = {
@@ -220,7 +239,20 @@
state.showDetail = true;
}
onLoad(() => {
function onClearBuyerFilter() {
state.buyerId = 0;
state.buyerName = '';
state.pagination = { ...emptyPagination };
getLogList(1);
}
onLoad((options) => {
if (options?.buyer_id) {
state.buyerId = Number(options.buyer_id) || 0;
}
if (options?.buyer_name) {
state.buyerName = decodeURIComponent(options.buyer_name);
}
getOverview();
getLogList();
});
@@ -239,6 +271,29 @@
</script>
<style lang="scss" scoped>
.buyer-filter-bar {
margin: 16rpx 24rpx;
padding: 16rpx 24rpx;
background: #fff4e5;
border-radius: 12rpx;
border: 1rpx solid #ffd8a8;
.filter-tip-text {
font-size: 24rpx;
color: #a17545;
}
.buyer-highlight {
font-weight: bold;
color: #ff6000;
}
.clear-filter-btn {
font-size: 22rpx;
padding: 6rpx 18rpx;
border-radius: 20rpx;
background: #ff6000;
color: #ffffff;
}
}
.header-box {
background-color: $white;
padding: 30rpx;